GaldurAnimations
classclient uniquementdepuis 0.1.0com.galdurstudio.galdurui.api.anim.GaldurAnimations
Pas encore traduit : texte d’origine en anglais.
Global switch and durations of the Galdur UI animations.
The player can turn every animation off (Mods → Galdur UI → Config, or
config/galdurui-client.toml); changes are then instant. An animation written by a mod
should check enabled(); AnimatedValue already does.
Champs 5
HOVER_MS
staticHover fade (buttons, tabs), in milliseconds.
TOGGLE_MS
staticCheckbox mark growing or shrinking, in milliseconds.
OPEN_MS
staticScreen opening, in milliseconds.
PAGE_MS
staticTab content sliding in, in milliseconds.
SCROLL_SMOOTHING_MS
staticTime constant of smooth scrolling, in milliseconds.
Méthodes 4
enabled
staticRENVOIEboolean — true unless the player turned animations off
now
staticRENVOIElong — the animation clock, in milliseconds
progress
staticPARAMÈTRES
RENVOIEdouble — the progress of an animation started at start, from 0 to
1
approach
staticPARAMÈTRES
RENVOIEdouble — current moved towards target with frame-rate independent
exponential smoothing