mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-22 09:39:48 +00:00
Enabled fly button in movement, and set max value for fields as Integer.MAX_VALUE for various fields.
This commit is contained in:
1 parent
17eb612fb8
commit
44d4e74279
10 files changed
+30
-27
No files matched your search
@@ -34,31 +34,31 @@ public class SubGuiNpcRangeProperties extends SubGuiInterface implements ITextfi
|
||||
addTextField(new GuiNpcTextField(2,this, fontRendererObj, guiLeft + 85, y += 22, 50, 18, stats.rangedRange+""));
|
||||
addLabel(new GuiNpcLabel(2,"stats.rangedrange", guiLeft + 5, y + 5));
|
||||
getTextField(2).numbersOnly = true;
|
||||
getTextField(2).setMinMaxDefault(1, 64, 2);
|
||||
getTextField(2).setMinMaxDefault(1, Integer.MAX_VALUE, 2);
|
||||
addTextField(new GuiNpcTextField(3,this, fontRendererObj, guiLeft + 85, y += 22, 50, 18, stats.minDelay+""));
|
||||
addLabel(new GuiNpcLabel(3,"stats.mindelay", guiLeft + 5, y + 5));
|
||||
getTextField(3).numbersOnly = true;
|
||||
getTextField(3).setMinMaxDefault(1, 9999, 20);
|
||||
getTextField(3).setMinMaxDefault(1, Integer.MAX_VALUE, 20);
|
||||
addTextField(new GuiNpcTextField(4,this, fontRendererObj, guiLeft + 85, y += 22, 50, 18, stats.maxDelay+""));
|
||||
addLabel(new GuiNpcLabel(4,"stats.maxdelay", guiLeft + 5, y + 5));
|
||||
getTextField(4).numbersOnly = true;
|
||||
getTextField(4).setMinMaxDefault(1, 9999, 20);
|
||||
getTextField(4).setMinMaxDefault(1, Integer.MAX_VALUE, 20);
|
||||
|
||||
addTextField(new GuiNpcTextField(5, this, fontRendererObj, guiLeft + 85, y += 22, 50, 18, stats.fireRate + ""));
|
||||
addLabel(new GuiNpcLabel(5, "stats.burstspeed", guiLeft + 5, y + 5));
|
||||
getTextField(5).numbersOnly = true;
|
||||
getTextField(5).setMinMaxDefault(0, 30, 0);
|
||||
getTextField(5).setMinMaxDefault(0, Integer.MAX_VALUE, 0);
|
||||
addTextField(new GuiNpcTextField(6, this, fontRendererObj, guiLeft + 85, y += 22, 50, 18, stats.burstCount + ""));
|
||||
addLabel(new GuiNpcLabel(6, "stats.burstcount", guiLeft + 5, y + 5));
|
||||
getTextField(6).numbersOnly = true;
|
||||
getTextField(6).setMinMaxDefault(1, 100, 20);
|
||||
getTextField(6).setMinMaxDefault(1, Integer.MAX_VALUE, 20);
|
||||
addTextField(new GuiNpcTextField(7,this, fontRendererObj, guiLeft + 85, y += 22, 100, 20, stats.fireSound));
|
||||
addLabel(new GuiNpcLabel(7, "stats.firesound:", guiLeft + 5, y + 5));
|
||||
addButton(new GuiNpcButton(7, guiLeft + 187, y, 60, 20, "mco.template.button.select"));
|
||||
addTextField(new GuiNpcTextField(8, this, fontRendererObj, guiLeft + 85, y += 22, 50, 18, stats.shotCount + ""));
|
||||
addLabel(new GuiNpcLabel(8, "stats.shotcount", guiLeft + 5, y + 5));
|
||||
getTextField(8).numbersOnly = true;
|
||||
getTextField(8).setMinMaxDefault(1, 10, 1);
|
||||
getTextField(8).setMinMaxDefault(1, Integer.MAX_VALUE, 1);
|
||||
|
||||
addButton(new GuiNpcButtonYesNo(9, guiLeft + 100, y += 22, stats.aimWhileShooting));
|
||||
addLabel(new GuiNpcLabel(9, "stats.aimWhileShooting", guiLeft + 5, y + 5));
|
||||
|
||||
Reference in new issue
Block a user