From a446289004b00571fbd837319edb87e0a601f0a8 Mon Sep 17 00:00:00 2001 From: Ellpeck Date: Sun, 13 Sep 2015 21:30:32 +0200 Subject: [PATCH] Removed WIP text --- .../java/ellpeck/actuallyadditions/booklet/GuiBooklet.java | 5 ----- .../java/ellpeck/actuallyadditions/event/TooltipEvent.java | 4 ++-- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/src/main/java/ellpeck/actuallyadditions/booklet/GuiBooklet.java b/src/main/java/ellpeck/actuallyadditions/booklet/GuiBooklet.java index 7be362d21..eba23750e 100644 --- a/src/main/java/ellpeck/actuallyadditions/booklet/GuiBooklet.java +++ b/src/main/java/ellpeck/actuallyadditions/booklet/GuiBooklet.java @@ -247,11 +247,6 @@ public class GuiBooklet extends GuiScreen{ this.unicodeRenderer.drawString(strg, this.guiLeft+this.xSize/2-this.unicodeRenderer.getStringWidth(strg)/2, this.guiTop-20, StringUtil.DECIMAL_COLOR_WHITE); } } - else{ - //TODO WIP Text - this.unicodeRenderer.drawSplitString(!KeyUtil.isShiftPressed() ? EnumChatFormatting.ITALIC+"Press Shift!" : EnumChatFormatting.UNDERLINE+"WIP INFO:"+EnumChatFormatting.RESET+"\nThis book is not completely finished yet! \nThings still to come: \n-Items for a Crafting Recipe shown in the book getting automatically put into a Crafting Table On A Stick through a button \n-Seeing an Item's page by clicking a keybind while the item is getting hovered over in the player's inventory", this.guiLeft+this.xSize+3, this.guiTop+3, 80, StringUtil.DECIMAL_COLOR_WHITE); - - } super.drawScreen(x, y, f); this.searchField.drawTextBox(); diff --git a/src/main/java/ellpeck/actuallyadditions/event/TooltipEvent.java b/src/main/java/ellpeck/actuallyadditions/event/TooltipEvent.java index 0bd6445f8..4ea6ee0eb 100644 --- a/src/main/java/ellpeck/actuallyadditions/event/TooltipEvent.java +++ b/src/main/java/ellpeck/actuallyadditions/event/TooltipEvent.java @@ -62,9 +62,9 @@ public class TooltipEvent{ for(BookletPage page : InitBooklet.pagesWithItemStackData){ if(page.getItemStackForPage() != null && page.getItemStackForPage().isItemEqual(stack)){ int keyCode = KeyBinds.keybindOpenBooklet.getKeyCode(); - event.toolTip.add(EnumChatFormatting.GOLD+StringUtil.localizeFormatted("booklet."+ModUtil.MOD_ID_LOWER+".keyToSeeRecipe", keyCode > 0 && keyCode < Keyboard.KEYBOARD_SIZE ? "'"+Keyboard.getKeyName(keyCode)+"'" : "[KEY NOT DEFINED!]")); + event.toolTip.add(EnumChatFormatting.GOLD+StringUtil.localizeFormatted("booklet."+ModUtil.MOD_ID_LOWER+".keyToSeeRecipe", keyCode > 0 && keyCode < Keyboard.KEYBOARD_SIZE ? "'"+Keyboard.getKeyName(keyCode)+"'" : "[NONE]")); - //Do something better for checking if the key is pressed + //TODO Find a better method to do this eventually if(Keyboard.isKeyDown(KeyBinds.keybindOpenBooklet.getKeyCode())){ GuiBooklet book = new GuiBooklet(); Minecraft.getMinecraft().getSoundHandler().playSound(PositionedSoundRecord.func_147674_a(new ResourceLocation("gui.button.press"), 1.0F));