mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-21 12:42:19 +00:00
Double clicking events in the hook list will now paste them into your code. More scripting functions added for NPCs.
This commit is contained in:
1 parent
547f5ab82d
commit
f14bc107d3
5 files changed
+586
-30
No files matched your search
@@ -45,12 +45,12 @@ public class GuiNPCInv extends GuiContainerNPCInterface2 implements ISliderListe
|
||||
addLabel(new GuiNpcLabel(0,"inv.minExp", guiLeft + 118, guiTop + 18));
|
||||
addTextField(new GuiNpcTextField(0,this, fontRendererObj, guiLeft + 108, guiTop + 29, 60, 20, npc.inventory.minExp + ""));
|
||||
getTextField(0).integersOnly = true;
|
||||
getTextField(0).setMinMaxDefault(0, Short.MAX_VALUE, 0);
|
||||
getTextField(0).setMinMaxDefault(0, npc.inventory.maxExp, 0);
|
||||
|
||||
addLabel(new GuiNpcLabel(1,"inv.maxExp", guiLeft + 118, guiTop + 52));
|
||||
addTextField(new GuiNpcTextField(1,this, fontRendererObj, guiLeft + 108, guiTop + 63, 60, 20, npc.inventory.maxExp + ""));
|
||||
getTextField(1).integersOnly = true;
|
||||
getTextField(1).setMinMaxDefault(0, Short.MAX_VALUE, 0);
|
||||
getTextField(1).setMinMaxDefault(npc.inventory.maxExp, Short.MAX_VALUE, 0);
|
||||
|
||||
addButton(new GuiNpcButton(10, guiLeft + 88, guiTop + 88, 80, 20, new String[]{"stats.normal", "inv.auto"}, npc.inventory.lootMode));
|
||||
|
||||
|
||||
Reference in new issue
Block a user