made animation timeline buttons clickable. when paused, clicking the buttons will take you to that point in the animation.

This commit is contained in:
Luis C.M committed 2023-11-09 23:07:52 -06:00
1 parent f8d96a8c6c
commit f35b5a32ac
3 files changed
+62 -14

No files matched your search

@@ -251,4 +251,15 @@ public class Animation implements IAnimation {
}
}
}
@SideOnly(Side.CLIENT)
public void setPausedValues() {
this.currentFrameTime = 0;
Frame frame = (Frame) this.currentFrame();
for (EnumAnimationPart part : EnumAnimationPart.values()) {
if (frame.frameParts.containsKey(part)) {
frame.frameParts.get(part).setPausedValues();
}
}
}
}