mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-12 17:47:32 +00:00
Increment Frame when you Add/Copy a Frame
This commit is contained in:
1 parent
fa6dd50d50
commit
a79e60fa7c
1 file changed
+4
@@ -400,16 +400,20 @@ public class GuiNPCEditAnimation extends GuiModelInterface implements ITextfield
|
||||
if (guibutton.id == 11) {
|
||||
if (frameIndex < animation.frames.size() - 1) {
|
||||
animation.frames.add(frameIndex + 1, new Frame(10));
|
||||
this.frameIndex = frameIndex + 1;
|
||||
} else {
|
||||
animation.frames.add(new Frame(10));
|
||||
this.frameIndex = frameIndex + 1;
|
||||
}
|
||||
} else if (guibutton.id == 12) {
|
||||
animation.frames.remove(frameIndex);
|
||||
} else if (guibutton.id == 13 && editingFrame != null) {
|
||||
if (frameIndex < animation.frames.size() - 1) {
|
||||
animation.frames.add(frameIndex + 1, editingFrame.copy());
|
||||
this.frameIndex = frameIndex + 1;
|
||||
} else {
|
||||
animation.frames.add(editingFrame.copy());
|
||||
this.frameIndex = frameIndex + 1;
|
||||
}
|
||||
} else if (guibutton.id == 14) {
|
||||
frameIndex--;
|
||||
|
||||
Reference in new issue
Block a user