Repository navigation
Add the ToastStack and FloatingText extensions - #2384
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Two new custom objects (events only), with ready-to-use variants in the asset store (GDevelop-assets#778), and a small improvement of the Toast.
ToastStack ("Toast stack")
Several toast notifications at the same time. The interface is one action, "Show a toast" (title, message, kind), used as many times as needed:
A maximum of 1 with "Replace the oldest" behaves like a single toast. No toast is shown until the action is used.
The stack contains a Toast (of the Toast extension). In the variant, it is the model of every toast: its position is the one of the newest toast, and its own variant gives the style. So every existing toast style can be used in a stack. Each toast is a Toast created by the stack and deleted when it disappeared; the waiting ones are hidden toasts.
Toast 1.0.3
FloatingText ("Floating text")
A text, with an optional icon before it, that moves and fades out, then is deleted: damage numbers, "+10 coins", "Perfect!", "Game saved"...
Tests
Gameplay tests in GDevelop.
ToastStack:
FloatingText:
The tests of the Toast still pass.
npm run build,npm testandnpm run check-post-buildpass.