Skip to content

Add animation params for Touchscreen "model" element - #101

Merged
OgelGames merged 2 commits into
mt-mods:masterfrom
qqqweqwe2:touchscreen-model-animation
Oct 12, 2026
Merged

OgelGames merged 2 commits into
mt-mods:masterfrom
qqqweqwe2:touchscreen-model-animation

Conversation

@qqqweqwe2

Copy link
Copy Markdown
Contributor

Formspec supports animation parameters (starting frame, ending frame, fps) for "model" element.
This PR exposes these parameters in the touchscreen API, allowing to optionally enable and tune animation for the models which have it.

Tested on 5.18-dev.

@SwissalpS SwissalpS added the enhancement New feature or request label Oct 11, 2026
@qqqweqwe2

Copy link
Copy Markdown
Contributor Author

Now also tested to work on clients 5.17.0 - 5.4.0.
5.4.x does not support animation_speed and it will always be some default value. Frame start/end values do work so the default behavior is exactly the same, animation is not enabled unless they are specified.

@OgelGames

Copy link
Copy Markdown
Contributor

Thanks, the touchscreen will need an update with all the new formspec elements at some point too.

@OgelGames
OgelGames merged commit e7cb2ee into mt-mods:master Oct 12, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants