diff options
| author | OnyxDarkKnight <sor1n.iliutza16@gmail.com> | 2015-05-08 18:12:00 +0100 |
|---|---|---|
| committer | OnyxDarkKnight <sor1n.iliutza16@gmail.com> | 2015-05-08 18:12:00 +0100 |
| commit | 9d08d6c58a0622d31494d612d5b401a1fed186df (patch) | |
| tree | 4365f5aef42a61a9279271dd0bf0e6b65ca9640d /src/main/java/darkknight/jewelrycraft/client/gui/GuiTabIntroduction.java | |
| parent | 2342897a409d08e2431b66191c4a7c4491e5222d (diff) | |
Fixed a few things as well as working towards having the ability to translate everything
Diffstat (limited to 'src/main/java/darkknight/jewelrycraft/client/gui/GuiTabIntroduction.java')
| -rw-r--r-- | src/main/java/darkknight/jewelrycraft/client/gui/GuiTabIntroduction.java | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/src/main/java/darkknight/jewelrycraft/client/gui/GuiTabIntroduction.java b/src/main/java/darkknight/jewelrycraft/client/gui/GuiTabIntroduction.java index de84af0..25acf21 100644 --- a/src/main/java/darkknight/jewelrycraft/client/gui/GuiTabIntroduction.java +++ b/src/main/java/darkknight/jewelrycraft/client/gui/GuiTabIntroduction.java @@ -2,14 +2,16 @@ package darkknight.jewelrycraft.client.gui; import net.minecraft.init.Items; import net.minecraft.item.ItemStack; +import net.minecraft.util.StatCollector; import darkknight.jewelrycraft.client.Page; import darkknight.jewelrycraft.item.ItemList; +import darkknight.jewelrycraft.util.Variables; public class GuiTabIntroduction extends GuiTab { public GuiTabIntroduction(int id) { - super("Introduction", id); + super(id); } @Override @@ -17,6 +19,11 @@ public class GuiTabIntroduction extends GuiTab { return new ItemStack(ItemList.ring); } + + public String getName() + { + return StatCollector.translateToLocal("guide." + Variables.MODID + ".tab.introduction"); + } @Override public void drawBackground(GuiGuide gui, int x, int y, int page) @@ -26,15 +33,15 @@ public class GuiTabIntroduction extends GuiTab switch(page) { case 1: - text = "Welcome to Jewelrycraft 2! This mod is about making jewelry that you can modify to your own will. To find out how to create a jewelry, please consult the book and look at the Smelter block. To add modifiers to it you need to perform a ritual. To see how to do that, look at the Cursed Eye"; + text = StatCollector.translateToLocal("guide." + Variables.MODID + ".tab.introduction."+page); Page.addTextPage(gui, gui.getLeft() + xPos, gui.getTop(), text); break; case 2: - text = "block in this guide. Please be aware that even if you can add anything as a modifier and can have multiple modifiers on one jewelry, this mod is still in alpha and does not have that many modifiers implemented and currently don't have any different effects depending on"; + text = StatCollector.translateToLocal("guide." + Variables.MODID + ".tab.introduction."+page); Page.addTextPage(gui, gui.getLeft() + xPos, gui.getTop(), text); break; case 3: - text = "the gem used. To see what modifiers are currently implemented, just look in the Modifiers tab located in this guide (it is the one with the blaze powder as an icon). This mod was made by OnyxDarkKnight and the help of domi1819, pau101, Damien Hazard, boni and MineMarteen."; + text = StatCollector.translateToLocal("guide." + Variables.MODID + ".tab.introduction."+page); Page.addTextPage(gui, gui.getLeft() + xPos, gui.getTop(), text); break; } |
