From 3d83f14faa22d3bd7f33a24ede21cbc4ef66559a Mon Sep 17 00:00:00 2001 From: kirillsaint Date: Sun, 6 Aug 2023 14:12:38 +0600 Subject: [PATCH] Update LiteMainMenu.java --- .../silentclient/client/gui/lite/LiteMainMenu.java | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/src/main/java/net/silentclient/client/gui/lite/LiteMainMenu.java b/src/main/java/net/silentclient/client/gui/lite/LiteMainMenu.java index d81f5df..63d69c0 100644 --- a/src/main/java/net/silentclient/client/gui/lite/LiteMainMenu.java +++ b/src/main/java/net/silentclient/client/gui/lite/LiteMainMenu.java @@ -33,11 +33,17 @@ public class LiteMainMenu extends GuiScreen this.buttonList.add(new IconButton(4, 70, 5, new ResourceLocation("silentclient/icons/language.png"))); this.buttonList.add(new IconButton(5, 92, 5, new ResourceLocation("silentclient/icons/back.png"))); - this.buttonList.add(new Button(6, this.width / 2 - 90, this.height / 2 - 18, 180, 18, "Singleplayer")); - this.buttonList.add(new Button(7, this.width / 2 - 90, this.height / 2 + 5, 180, 18, "Multiplayer")); + int buttonY = this.height / 2 - 18; - this.buttonList.add(new Button(8, this.width / 2 - 90, this.height / 2 + 28, 87, 18, "Options")); - this.buttonList.add(new Button(9, this.width / 2 + 2, this.height / 2 + 28, 88, 18, "Quit Game")); + if(buttonY - 90 > 50) { + buttonY = 110; + } + + this.buttonList.add(new Button(6, this.width / 2 - 90, buttonY, 180, 18, "Singleplayer")); + this.buttonList.add(new Button(7, this.width / 2 - 90, buttonY + 18 + 5, 180, 18, "Multiplayer")); + + this.buttonList.add(new Button(8, this.width / 2 - 90, buttonY + 18 + 5 + 18 + 5, 87, 18, "Options")); + this.buttonList.add(new Button(9, this.width / 2 + 2, buttonY + 18 + 5 + 18 + 5, 88, 18, "Quit Game")); } @Override