mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-22 17:49:48 +00:00
1.7.10 Files
Files added
This commit is contained in:
1 parent
393ea9b463
commit
a31efb2dc3
1768 files changed
+84831
No files matched your search
@@ -0,0 +1,72 @@
|
||||
package noppes.npcs.client.gui.mainmenu;
|
||||
|
||||
import net.minecraft.client.gui.GuiButton;
|
||||
import noppes.npcs.NoppesStringUtils;
|
||||
import noppes.npcs.client.NoppesUtil;
|
||||
import noppes.npcs.client.gui.advanced.GuiNPCLinesMenu;
|
||||
import noppes.npcs.client.gui.global.GuiNPCManageLinkedNpc;
|
||||
import noppes.npcs.client.gui.global.GuiNpcManagePlayerData;
|
||||
import noppes.npcs.client.gui.global.GuiNpcNaturalSpawns;
|
||||
import noppes.npcs.client.gui.util.GuiNPCInterface2;
|
||||
import noppes.npcs.client.gui.util.GuiNpcButton;
|
||||
import noppes.npcs.constants.EnumGuiType;
|
||||
import noppes.npcs.entity.EntityNPCInterface;
|
||||
|
||||
public class GuiNPCGlobalMainMenu extends GuiNPCInterface2{
|
||||
public GuiNPCGlobalMainMenu(EntityNPCInterface npc){
|
||||
super(npc,5);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void initGui(){
|
||||
super.initGui();
|
||||
int y = guiTop + 10;
|
||||
this.addButton(new GuiNpcButton(2, guiLeft + 85, y, "global.banks"));
|
||||
this.addButton(new GuiNpcButton(3, guiLeft + 85, y += 22, "menu.factions"));
|
||||
this.addButton(new GuiNpcButton(4, guiLeft + 85, y += 22, "dialog.dialogs"));
|
||||
this.addButton(new GuiNpcButton(11, guiLeft + 85, y += 22, "quest.quests"));
|
||||
this.addButton(new GuiNpcButton(12, guiLeft + 85, y += 22, "global.transport"));
|
||||
this.addButton(new GuiNpcButton(13, guiLeft + 85, y += 22, "global.playerdata"));
|
||||
this.addButton(new GuiNpcButton(14, guiLeft + 85, y += 22, "global.recipes"));
|
||||
this.addButton(new GuiNpcButton(15, guiLeft + 85, y += 22, NoppesStringUtils.translate("global.naturalspawn", "(WIP)")));
|
||||
this.addButton(new GuiNpcButton(16, guiLeft + 85, y += 22, "global.linked"));
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void actionPerformed(GuiButton guibutton) {
|
||||
int id = guibutton.id;
|
||||
if (id == 11) {
|
||||
NoppesUtil.requestOpenGUI(EnumGuiType.ManageQuests);
|
||||
}
|
||||
if (id == 2) {
|
||||
NoppesUtil.requestOpenGUI(EnumGuiType.ManageBanks);
|
||||
}
|
||||
if (id == 3) {
|
||||
NoppesUtil.requestOpenGUI(EnumGuiType.ManageFactions);
|
||||
}
|
||||
if (id == 4) {
|
||||
NoppesUtil.requestOpenGUI(EnumGuiType.ManageDialogs);
|
||||
}
|
||||
if (id == 12) {
|
||||
NoppesUtil.requestOpenGUI(EnumGuiType.ManageTransport);
|
||||
}
|
||||
if (id == 13) {
|
||||
NoppesUtil.openGUI(player, new GuiNpcManagePlayerData(npc, this));
|
||||
}
|
||||
if (id == 14) {
|
||||
NoppesUtil.requestOpenGUI(EnumGuiType.ManageRecipes, 4, 0, 0);
|
||||
}
|
||||
if (id == 15) {
|
||||
NoppesUtil.openGUI(player, new GuiNpcNaturalSpawns(npc));
|
||||
}
|
||||
if (id == 16) {
|
||||
NoppesUtil.requestOpenGUI(EnumGuiType.ManageLinked);
|
||||
}
|
||||
}
|
||||
@Override
|
||||
public void save() {
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user