From 5c5ea915c14b809816abc4dbf94baade2529c976 Mon Sep 17 00:00:00 2001 From: Ellpeck Date: Thu, 17 Nov 2016 20:27:33 +0100 Subject: [PATCH] Made the config and achievements button only show when the tutorial is done so that it doesn't get cut off by the tutorial button --- .../mod/booklet/gui/GuiMainPage.java | 23 ++++++++++--------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/src/main/java/de/ellpeck/actuallyadditions/mod/booklet/gui/GuiMainPage.java b/src/main/java/de/ellpeck/actuallyadditions/mod/booklet/gui/GuiMainPage.java index 867303eb6..dd42dee86 100644 --- a/src/main/java/de/ellpeck/actuallyadditions/mod/booklet/gui/GuiMainPage.java +++ b/src/main/java/de/ellpeck/actuallyadditions/mod/booklet/gui/GuiMainPage.java @@ -97,18 +97,19 @@ public class GuiMainPage extends GuiBooklet{ this.tutorialButton = new GuiButton(666666, this.guiLeft+140/2-50, this.guiTop+146, 100, 20, "Please click me <3"); this.buttonList.add(this.tutorialButton); } + else{ + List configText = new ArrayList(); + configText.add(TextFormatting.GOLD+"Open Config GUI"); + configText.addAll(this.fontRendererObj.listFormattedStringToWidth("Press this to configure "+ModUtil.NAME+" in-game. \nSome changes will require a game restart!", 200)); + this.configButton = new TexturedButton(RES_LOC_GADGETS, -388, this.guiLeft+16, this.guiTop+this.ySize-30, 188, 14, 16, 16, configText); + this.buttonList.add(this.configButton); - List configText = new ArrayList(); - configText.add(TextFormatting.GOLD+"Open Config GUI"); - configText.addAll(this.fontRendererObj.listFormattedStringToWidth("Press this to configure "+ModUtil.NAME+" in-game. \nSome changes will require a game restart!", 200)); - this.configButton = new TexturedButton(RES_LOC_GADGETS, -388, this.guiLeft+16, this.guiTop+this.ySize-30, 188, 14, 16, 16, configText); - this.buttonList.add(this.configButton); - - List achievementText = new ArrayList(); - achievementText.add(TextFormatting.GOLD+"Open Achievements"); - achievementText.addAll(this.fontRendererObj.listFormattedStringToWidth("Press this to open the "+ModUtil.NAME+" Achievements.", 200)); - this.achievementButton = new TexturedButton(RES_LOC_GADGETS, -389, this.guiLeft+36, this.guiTop+this.ySize-30, 204, 14, 16, 16, achievementText); - this.buttonList.add(this.achievementButton); + List achievementText = new ArrayList(); + achievementText.add(TextFormatting.GOLD+"Open Achievements"); + achievementText.addAll(this.fontRendererObj.listFormattedStringToWidth("Press this to open the "+ModUtil.NAME+" Achievements.", 200)); + this.achievementButton = new TexturedButton(RES_LOC_GADGETS, -389, this.guiLeft+36, this.guiTop+this.ySize-30, 204, 14, 16, 16, achievementText); + this.buttonList.add(this.achievementButton); + } for(int i = 0; i < BUTTONS_PER_PAGE; i++){ if(ActuallyAdditionsAPI.BOOKLET_ENTRIES.size() > i){