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)
- Lesson 22, Practice 2
- It'd be a lot better if we saw all the code being used
- Lesson 19 Practice 1: Robot not moving HOT 1
- Selecting and indenting lines of code then running the code may cause an error?
- Chapter 12 Question issue
- Write explanation for mixed Tab+Space indentation error HOT 2
- Completing a practice with wrong code.
- Lesson 25 bug HOT 1
- Exclamation mark is missing
- Lesson 15 code is cut off and there is no way to scroll
- keyboard not working on mobile HOT 1
- Chapter 24 (Creating Dictionaries) incorrectly states that hash values are unique
- Small ambiguity in Practice Chapter 13
- Add option to switch text/background colors to black/white for better readability
- clicking the toggle full screen in select lessons screen crashes the game.
- major bug?
- Bug lesson 18-practice HOT 1
- Dyslexia accessible font option
- Tooltip message cut off from top when content exceeding window view and a minor issue with tooltip placement
- Error in spanish translate
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.