TeamWizardry / LibrarianLib

A library for the TeamWizardry mods
GNU Lesser General Public License v3.0
26 stars 21 forks source link

Add convenient method to create keyframe animations #153

Closed thecodewarrior closed 3 years ago

thecodewarrior commented 4 years ago

Currently, keyframe animations are implemented, however, they require manually adding the animation object and the keyframe animation object requires you to get the lerper, so it's quite involved. I imagine the API would look something like this. build() would return the animation object, so you could specify completion callbacks, repeating, etc.

getSomeProperty_im().animateKeyframes(delay)
    .add(duration, easing, value)
    .jump(value)
    .hold(duration)
    .build()
thecodewarrior commented 4 years ago

Implemented in f116cba