From 265dd29e8a3f1736d4f965c94e4208ab4f86090f Mon Sep 17 00:00:00 2001 From: Vasco Lavos Date: Wed, 11 Jun 2014 14:40:10 +0100 Subject: [PATCH] Quick documentation on that, some trimming too. --- MODSRC/vazkii/botania/client/render/item/RenderLexicon.java | 2 +- MODSRC/vazkii/botania/common/lexicon/LexiconData.java | 2 +- resources/assets/botania/lang/en_US.lang | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/MODSRC/vazkii/botania/client/render/item/RenderLexicon.java b/MODSRC/vazkii/botania/client/render/item/RenderLexicon.java index 98896c931..107776df0 100644 --- a/MODSRC/vazkii/botania/client/render/item/RenderLexicon.java +++ b/MODSRC/vazkii/botania/client/render/item/RenderLexicon.java @@ -67,7 +67,7 @@ public class RenderLexicon implements IItemRenderer { String title = ModItems.lexicon.getItemStackDisplayName(null); if(Minecraft.getMinecraft().thePlayer.getCurrentEquippedItem() != null) title = Minecraft.getMinecraft().thePlayer.getCurrentEquippedItem().getDisplayName(); - font.drawString(title, 0, 0, 0xD69700); + font.drawString(font.trimStringToWidth(title, 80), 0, 0, 0xD69700); GL11.glTranslatef(0F, 10F, 0F); GL11.glScalef(0.6F, 0.6F, 0.6F); font.drawString(EnumChatFormatting.ITALIC + "" + EnumChatFormatting.BOLD + String.format(StatCollector.translateToLocal("botaniamisc.edition"), ItemLexicon.getEdition()), 0, 0, 0xA07100); diff --git a/MODSRC/vazkii/botania/common/lexicon/LexiconData.java b/MODSRC/vazkii/botania/common/lexicon/LexiconData.java index 0b862f9a7..a4c85ed22 100644 --- a/MODSRC/vazkii/botania/common/lexicon/LexiconData.java +++ b/MODSRC/vazkii/botania/common/lexicon/LexiconData.java @@ -168,7 +168,7 @@ public final class LexiconData { apothecary.setPriority().setLexiconPages(new PageText("0"), new PageImage("1", LibResources.ENTRY_APOTHECARY), new PageText("2"), new PageText("3"), new PageCraftingRecipe("4", ModCrafingRecipes.recipesApothecary)); lexicon = new BLexiconEntry(LibLexicon.BASICS_LEXICON, categoryBasics); - lexicon.setPriority().setLexiconPages(new PageText("0"), new PageCraftingRecipe("1", ModCrafingRecipes.recipeLexicon)); + lexicon.setPriority().setLexiconPages(new PageText("0"), new PageCraftingRecipe("1", ModCrafingRecipes.recipeLexicon), new PageText("2")); wand = new BLexiconEntry(LibLexicon.BASICS_WAND, categoryBasics); wand.setPriority().setLexiconPages(new PageText("0"), new PageCraftingRecipe("1", ModCrafingRecipes.recipesTwigWand)); diff --git a/resources/assets/botania/lang/en_US.lang b/resources/assets/botania/lang/en_US.lang index 0193055de..92fb1e8b5 100644 --- a/resources/assets/botania/lang/en_US.lang +++ b/resources/assets/botania/lang/en_US.lang @@ -454,6 +454,7 @@ botania.category.misc=Miscellaneous botania.entry.lexicon=Lexica Botania botania.page.lexicon0=The &1Lexica Botania&0 is the repository of all knowledge for all botany related matters. But you probably knew that already.
All information is stored here, as expected. For convenience, if a block happens to have an entry, it can be shift-right clicked with the &1Lexica Botania&0 to open that entry. botania.page.lexicon1=Crafting the &1Lexica Botania&0. +botania.page.lexicon2=The &1Lexica Botania&0's title can also be customized. By placing it in an &1Anvil&0 and renaming it, one can not only change it's cover, but also the title.
The Edition of the lexica shown equates to the version of the &4Botania&0 you're running, and no, I don't care about the fourth wall. # -- MYSTICAL FLOWERS botania.entry.flowers=Mystical Flowers