mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-27 23:45:44 +00:00
34 lines
2.1 KiB
Diff
34 lines
2.1 KiB
Diff
--- ../src-base/minecraft/net/minecraft/client/gui/GuiIngameMenu.java
|
|
+++ ../src-work/minecraft/net/minecraft/client/gui/GuiIngameMenu.java
|
|
@@ -31,8 +31,9 @@
|
|
|
|
this.buttonList.add(new GuiButton(4, this.width / 2 - 100, this.height / 4 + 24 + i, I18n.format("menu.returnToGame", new Object[0])));
|
|
this.buttonList.add(new GuiButton(0, this.width / 2 - 100, this.height / 4 + 96 + i, 98, 20, I18n.format("menu.options", new Object[0])));
|
|
+ this.buttonList.add(new GuiButton(12, this.width / 2 + 2, this.height / 4 + 96 + i, 98, 20, I18n.format("fml.menu.modoptions")));
|
|
GuiButton guibutton;
|
|
- this.buttonList.add(guibutton = new GuiButton(7, this.width / 2 + 2, this.height / 4 + 96 + i, 98, 20, I18n.format("menu.shareToLan", new Object[0])));
|
|
+ this.buttonList.add(guibutton = new GuiButton(7, this.width / 2 - 100, this.height / 4 + 72 + i, 200, 20, I18n.format("menu.shareToLan", new Object[0])));
|
|
this.buttonList.add(new GuiButton(5, this.width / 2 - 100, this.height / 4 + 48 + i, 98, 20, I18n.format("gui.achievements", new Object[0])));
|
|
this.buttonList.add(new GuiButton(6, this.width / 2 + 2, this.height / 4 + 48 + i, 98, 20, I18n.format("gui.stats", new Object[0])));
|
|
guibutton.enabled = this.mc.isSingleplayer() && !this.mc.getIntegratedServer().getPublic();
|
|
@@ -75,13 +76,19 @@
|
|
this.mc.setIngameFocus();
|
|
break;
|
|
case 5:
|
|
+ if (this.mc.thePlayer != null)
|
|
this.mc.displayGuiScreen(new GuiAchievements(this, this.mc.thePlayer.getStatFileWriter()));
|
|
break;
|
|
case 6:
|
|
+ if (this.mc.thePlayer != null)
|
|
this.mc.displayGuiScreen(new GuiStats(this, this.mc.thePlayer.getStatFileWriter()));
|
|
break;
|
|
case 7:
|
|
this.mc.displayGuiScreen(new GuiShareToLan(this));
|
|
+ break;
|
|
+ case 12:
|
|
+ net.minecraftforge.fml.client.FMLClientHandler.instance().showInGameModOptions(this);
|
|
+ break;
|
|
}
|
|
}
|
|
|