Comments (3)
I'm working on this enhancement.
I'm considering using the existing tween object on a ColorRect (invisible by modulation) to change the size of the container without jumps. (Also adding a modulation tween to the resultview to ensure text doesn't "pop").
We could also animate the panel when showing a hint, see Consider adding optional hint to quizzes
With this I'll consider making a "_switch_view" function that takes two views and animates the transition between the elements.
from learn-gdscript.
Thanks for the help! Tweening the rect_min_size of some element would definitely be the way to go. Youĺl likely have to tween the size of the root container of the quiz UI so it properly moves elements around it in the lesson UI.
You can also set some container node to Clip Content during the transition to animate the container size. I think Revealer.tscn is a good example of how to approach UI animation like that.
And I see the referenced issue in my top post didn´t get linked correctly, itś #16
from learn-gdscript.
Thanks for the tips! I'll look into that.
Clipping content will probably look better in code (and practice) than the thing I attempted last night (yielding to timers to hide and show the items).
And I now see how the help is supposed to work, I'll deal with that once I've gotten it to actually change size properly.
Might add an internal function that just checks the size of it's own contents and then animates to fit. (Upon size change of the margin container perhaps)
from learn-gdscript.
Related Issues (20)
- Oh no! The script has an error, but the Script Verifier did not catch it
- Since godot is coming to mobile,put a pop up keyboard. HOT 1
- Lesson 4 Paragraph still in english while using spanish version
- Practice 7.2 Drawing Squares at 3 positions
- Lesson 25 - Displaying the Inventory Items
- Stress marks marked as unknown character
- Toggle for smooth scrolling feature?
- The keyboard doesn't show up in mobile (im using tablet (Xiaomi pad 6)) HOT 2
- Hey. I try to do the course on my ipad in my favorite cafe. But i can change the code, because i can’t find the keyboard option. When i click on the intended area where i want to delete something or type, the keyboard option doesn’t pop up. What am i missing? Or isn’t it available on ipad? HOT 4
- Error in code example logic in first lesson (1. What code is Like)
- Cannot open the .dmg
- 20.2 Variable not defined
- Wrong execution and visuals lead to success in L7P2
- My keyboard doesn't come on when ever it's needed
- Tests passing when they shouldn't - Claryfying code using variables (Lesson 12)
- Worse visibility in Firefox (lesson-17-while-loops)
- Lesson 17. Introduction to For Loops: Explain why we need to subtract 1 to board_size.x HOT 2
- Cut, Copy and Paste in the internal editor uses Control-X etc. instead of Command-X on MacOS Computers. HOT 1
- /lesson-23-append-to-arrays/practice-B7tKRHJM.tres array pop behavior
- Lesson 7 Exercise 2 issue HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from learn-gdscript.