Update LiteMainMenu.java

This commit is contained in:
kirillsaint 2023-08-06 14:12:38 +06:00
parent ce02daf2e0
commit 3d83f14faa

View File

@ -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