Uh oh!
There was an error while loading. Please reload this page.
UI: Add Transitions to arcade GUI [after 3.0 release] - #1420
Merged
Conversation
eruvanosforce-pushed
the
gui/transitions
branch
2 times, most recently
from
December 4, 2022 03:25
45b769d to
4feea13Compareeruvanos
commented
Jan 12, 2023
MemberAuthor
Talked to @einarf :
|
MemberAuthor
Will be added after 3.0 release. It is more important to release! |
eruvanos
marked this pull request as draft
November 8, 2023 21:31
eruvanosforce-pushed
the
gui/transitions
branch
2 times, most recently
from
December 26, 2025 22:11
060c1ff to
3bcdc28Compareeruvanos
marked this pull request as ready for review
July 9, 2026 20:32
Uh oh!
There was an error while loading. Please reload this page.
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 freeto 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.
Adds a complete GUI animation stack to Arcade, shipped under
arcade.gui.experimentalso the novel per-property takeover semantics, cached overdraw and hover-zone behavior can be iterated on without deprecations. Stabilization later is purely additive (e.g. promotinganimate()ontoUIWidgetonce proven).High-level API
UIAnimatedGroupis the main entry point. It wraps a single child (or a whole subtree), renders it into a cached surface, and tweens transform properties that do not affect layouting:Animatable transform properties:
scale,angle,alpha,offset_x,offset_y,tint.animate()supports:.then(...), completion callbacks via.on_finish(...), cancellation via.stop()repeat,yoyo), delays, easing (arcade.anim.Easing)rel()(e.g.angle=rel(-360))UIAnimatedGroupis interactive:hovered/pressed/on_clickare hit-tested against the group's untransformed rect, so the trigger zone stays stable while the visuals scale or rotate. The child subtree still receives mouse events transformed into its local coordinate system.UIRenderGroupis the non-interactive caching primitive underneath, available for use on its own.Low-level transitions
animate()is built on a small set of composableTransition*primitives (also exported fromarcade.gui.experimental), which can be combined with+(parallel) and|(sequential):TransitionAttr— tween a value over time (start → end)TransitionAttrIncr— increment a value over timeTransitionAttrSet— set a value after a delayTransitionParallel— run transitions in parallelTransitionChain— run transitions sequentiallyTransitionDelay— pause within a chainAnimationimplements theTransitionBaseprotocol, so animations and raw transitions compose freely.Examples
arcade.examples.gui.exp_animations— an animated main menu: staggered pop-in entrances, pulsing/swaying idle animations, hover pops, spinning tiles, fade-out on quit.arcade.examples.gui.exp_animations_2— hoverable cards that lift and enlarge.arcade.examples.gui.transitions— a minimal low-level showcase animatingoffset_x/offset_y.Docs & tests
doc/programming_guide/gui/animations.rstplus updates toconcepts.rst; the experimental API is indexed under GUI Experimental Features.tests/unit/gui/foranimate,transition, and the render/animated groups (parent-space hover, transform-invariant hit-testing, ticking, takeover semantics).Notes
surface.py+ thesurface_vs/fs.glslshaders), the reactiveproperty.pysystem (addsAliasProperty), andUIScrollAreacame along on this branch.arcade.gui.experimental— the stablearcade.guinamespace does not export any of it yet.