mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-17 20:25:13 +00:00
Implemented frame comments
This commit is contained in:
1 parent
266a6515e5
commit
84b65865a9
2 files changed
+18
No files matched your search
@@ -37,6 +37,9 @@ public class SubGuiAnimationFrame extends SubGuiInterface implements ITextfieldL
|
||||
this.getTextField(13).integersOnly = true;
|
||||
this.getTextField(13).setMinMaxDefault(1, Integer.MAX_VALUE, 50);
|
||||
}
|
||||
|
||||
this.addLabel(new GuiNpcLabel(14, "Comment", guiLeft + 5, guiTop + 106));
|
||||
this.addTextField(new GuiNpcTextField(14, this, guiLeft + 50, guiTop + 101, 120, 15, editingFrame.getComment()));
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -66,6 +69,8 @@ public class SubGuiAnimationFrame extends SubGuiInterface implements ITextfieldL
|
||||
this.editingFrame.speed = textfield.getFloat();
|
||||
} else if (textfield.id == 13) {
|
||||
this.editingFrame.tickDuration = textfield.getInteger();
|
||||
} else if (textfield.id == 14) {
|
||||
this.editingFrame.setComment(textfield.getText());
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user