mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-17 02:55:26 +00:00
made animation timeline buttons clickable. when paused, clicking the buttons will take you to that point in the animation.
This commit is contained in:
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();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user