mirror of
https://github.com/KAMKEEL/CustomNPC-Gecko-Addon.git
synced 2026-11-28 02:05:41 +00:00
Added "Extras" GUI with some settings
This commit is contained in:
1 parent
260df4d8af
commit
d9ee1bd10a
6 files changed
+111
-2
No files matched your search
@@ -2,6 +2,7 @@ package com.goodbird.npcgecko.mixin.impl;
|
||||
|
||||
import com.goodbird.npcgecko.client.gui.GuiStringSelection;
|
||||
import com.goodbird.npcgecko.client.gui.SubGuiModelAnimation;
|
||||
import com.goodbird.npcgecko.client.gui.SubGuiModelExtras;
|
||||
import com.goodbird.npcgecko.entity.EntityCustomModel;
|
||||
import com.goodbird.npcgecko.mixin.IDataDisplay;
|
||||
import kamkeel.addon.client.GeckoAddonClient;
|
||||
@@ -42,6 +43,7 @@ public class MixinGeckoAddonClient {
|
||||
|
||||
if(entity instanceof EntityCustomModel){
|
||||
creationScreen.addButton(new GuiNpcButton(202, creationScreen.guiLeft-60, creationScreen.guiTop+40, 180, 20, ((IDataDisplay)creationScreen.npc.display).getCustomModelData().getModel()));
|
||||
creationScreen.addButton(new GuiNpcButton(203, creationScreen.guiLeft-60, creationScreen.guiTop+62, 180, 20, "Extras"));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -64,6 +66,9 @@ public class MixinGeckoAddonClient {
|
||||
creationScreen.getButton(202).setDisplayText(name);
|
||||
}));
|
||||
}
|
||||
if(button.id == 203){
|
||||
creationScreen.setSubGui(new SubGuiModelExtras(creationScreen.npc));
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user