diff --git a/build.gradle b/build.gradle index 9e361a96..c34ab39b 100644 --- a/build.gradle +++ b/build.gradle @@ -17,7 +17,7 @@ buildscript { apply plugin: 'forge' -version = "1.7.10-v0.9.5-Beta-pre8" +version = "1.7.10-v0.9.5-Beta-pre10" group= "com.brandon3055.draconicevolution" // http://maven.apache.org/guides/mini/guide-naming-conventions.html archivesBaseName = "Draconic-Evolution" diff --git a/src/main/java/com/brandon3055/draconicevolution/client/interfaces/manual/BasePage.java b/src/main/java/com/brandon3055/draconicevolution/client/interfaces/manual/BasePage.java index 285c205c..8fe73893 100644 --- a/src/main/java/com/brandon3055/draconicevolution/client/interfaces/manual/BasePage.java +++ b/src/main/java/com/brandon3055/draconicevolution/client/interfaces/manual/BasePage.java @@ -21,6 +21,8 @@ public class BasePage extends GuiScreen { private final int ySize = 202; protected PageCollection collection; + public BasePage(){} + public BasePage(String referenceName, PageCollection collection) { this.REFERENCE_NAME = referenceName; this.mc = Minecraft.getMinecraft(); @@ -83,7 +85,7 @@ public class BasePage extends GuiScreen { @Override public void actionPerformed(GuiButton button) { - collection.changeActivePage("INDEX"); + if (button.id == 0)collection.changeActivePage("INDEX"); } @Override public void mouseMovedOrUp(int par1, int par2, int par3){super.mouseMovedOrUp(par1, par2, par3);} diff --git a/src/main/java/com/brandon3055/draconicevolution/client/interfaces/manual/CraftingPage.java b/src/main/java/com/brandon3055/draconicevolution/client/interfaces/manual/CraftingInfoPage.java similarity index 98% rename from src/main/java/com/brandon3055/draconicevolution/client/interfaces/manual/CraftingPage.java rename to src/main/java/com/brandon3055/draconicevolution/client/interfaces/manual/CraftingInfoPage.java index 626ca556..acd04525 100644 --- a/src/main/java/com/brandon3055/draconicevolution/client/interfaces/manual/CraftingPage.java +++ b/src/main/java/com/brandon3055/draconicevolution/client/interfaces/manual/CraftingInfoPage.java @@ -25,7 +25,7 @@ import java.util.Map; /** * Created by Brandon on 18/09/2014. */ -public class CraftingPage extends TitledPage { +public class CraftingInfoPage extends TitledPage { protected static RenderItem itemRenderer = new RenderItem(); public ItemStack result; private boolean isSmelting = false; @@ -35,7 +35,7 @@ public class CraftingPage extends TitledPage { private List formattedDescription; private float descriptionScale = 0.66f; - public CraftingPage(String name, PageCollection collection, ItemStack itemStack, String unlocalizedDescription) { + public CraftingInfoPage(String name, PageCollection collection, ItemStack itemStack, String unlocalizedDescription) { super(name, true, collection, itemStack.getUnlocalizedName()+".name", 0x00ff00); this.result = itemStack; this.recipe = getFirstRecipeForItem(itemStack); diff --git a/src/main/java/com/brandon3055/draconicevolution/client/interfaces/manual/DescriptionPage.java b/src/main/java/com/brandon3055/draconicevolution/client/interfaces/manual/DescriptionPage.java new file mode 100644 index 00000000..3f6b9078 --- /dev/null +++ b/src/main/java/com/brandon3055/draconicevolution/client/interfaces/manual/DescriptionPage.java @@ -0,0 +1,28 @@ +package com.brandon3055.draconicevolution.client.interfaces.manual; + +import net.minecraft.client.Minecraft; + +import java.util.List; + +/** + * Created by Brandon on 20/09/2014. + */ +public class DescriptionPage extends TutorialPage { + private String rawDescription; + public DescriptionPage(String name, PageCollection collection, String unlocalizedDescription) { + super(name, collection, null); + this.rawDescription = unlocalizedDescription; + this.formattedDescription = new List[1]; + } + + @Override + public void renderBackgroundLayer(Minecraft minecraft, int offsetX, int offsetY, int mouseX, int mouseY) { + super.renderBackgroundLayer(minecraft, offsetX, offsetY, mouseX, mouseY); + } + + @Override + public void drawScreen(Minecraft minecraft, int offsetX, int offsetY, int mouseX, int mouseY) { + super.drawScreen(minecraft, offsetX, offsetY, mouseX, mouseY); + addDescription(minecraft, offsetX, offsetY-50, getFormattedText(fontRendererObj, ttl(rawDescription), 0)); + } +} diff --git a/src/main/java/com/brandon3055/draconicevolution/client/interfaces/manual/EnderResurrectionTutorialPage.java b/src/main/java/com/brandon3055/draconicevolution/client/interfaces/manual/EnderResurrectionTutorialPage.java new file mode 100644 index 00000000..46c24d05 --- /dev/null +++ b/src/main/java/com/brandon3055/draconicevolution/client/interfaces/manual/EnderResurrectionTutorialPage.java @@ -0,0 +1,57 @@ +package com.brandon3055.draconicevolution.client.interfaces.manual; + +import com.brandon3055.draconicevolution.common.lib.References; +import net.minecraft.client.Minecraft; +import net.minecraft.util.ResourceLocation; +import net.minecraft.util.StatCollector; +import org.lwjgl.opengl.GL11; + +import java.util.List; + +/** + * Created by Brandon on 20/09/2014. + */ +public class EnderResurrectionTutorialPage extends TutorialPage { + public static final ResourceLocation image = new ResourceLocation(References.RESOURCESPREFIX + "textures/gui/images/Ritual_of_ender_Resurrection.png"); + public EnderResurrectionTutorialPage(String name, PageCollection collection) { + super(name, collection, StatCollector.translateToLocal("manual.de.roerth.txt")); + this.lastPage = 1; + this.formattedDescription = new List[6]; + } + + @Override + public void renderBackgroundLayer(Minecraft minecraft, int offsetX, int offsetY, int mouseX, int mouseY) { + super.renderBackgroundLayer(minecraft, offsetX, offsetY, mouseX, mouseY); + } + + @Override + public void drawScreen(Minecraft minecraft, int offsetX, int offsetY, int mouseX, int mouseY) { + super.drawScreen(minecraft, offsetX, offsetY, mouseX, mouseY); + GL11.glColor4f(1f, 1f, 1f, 1f); + switch (page) { + case 0: + page0(minecraft, offsetX, offsetY, mouseX, mouseY); + break; + case 1: + page1(minecraft, offsetX, offsetY, mouseX, mouseY); + break; + } + } + + private void page0(Minecraft minecraft, int offsetX, int offsetY, int mouseX, int mouseY){ + minecraft.renderEngine.bindTexture(image); + GL11.glPushMatrix(); + GL11.glScalef(0.5f, 0.5f, 1f); + drawTexturedModalRect((offsetX+64)*2, (offsetY+14)*2, 0, 0, 256, 256); + GL11.glPopMatrix(); + addDescription(minecraft, offsetX, offsetY+38, getFormattedText(fontRendererObj, ttl("manual.de.roertpage0a.txt"), 0)); + addDescription(minecraft, offsetX, offsetY+94, getFormattedText(fontRendererObj, ttl("manual.de.roertpage0b.txt"), 1)); + } + + private void page1(Minecraft minecraft, int offsetX, int offsetY, int mouseX, int mouseY){ + addDescription(minecraft, offsetX, offsetY-50, getFormattedText(fontRendererObj, ttl("manual.de.roertpage1a.txt"), 2)); + addDescription(minecraft, offsetX, offsetY-28, getFormattedText(fontRendererObj, ttl("manual.de.roertpage1b.txt"), 3)); + addDescription(minecraft, offsetX, offsetY-6, getFormattedText(fontRendererObj, ttl("manual.de.roertpage1c.txt"), 4)); + addDescription(minecraft, offsetX, offsetY+23, getFormattedText(fontRendererObj, ttl("manual.de.roertpage1d.txt"), 5)); + } +} diff --git a/src/main/java/com/brandon3055/draconicevolution/client/interfaces/manual/EnergyCoreTutorialPage.java b/src/main/java/com/brandon3055/draconicevolution/client/interfaces/manual/EnergyCoreTutorialPage.java new file mode 100644 index 00000000..9d761981 --- /dev/null +++ b/src/main/java/com/brandon3055/draconicevolution/client/interfaces/manual/EnergyCoreTutorialPage.java @@ -0,0 +1,231 @@ +package com.brandon3055.draconicevolution.client.interfaces.manual; + +import com.brandon3055.draconicevolution.common.lib.References; +import net.minecraft.client.Minecraft; +import net.minecraft.util.ResourceLocation; +import net.minecraft.util.StatCollector; +import org.lwjgl.opengl.GL11; + +import java.util.List; + +/** + * Created by Brandon on 20/09/2014. + */ +public class EnergyCoreTutorialPage extends TutorialPage { + public static final ResourceLocation Energy_Core = new ResourceLocation(References.RESOURCESPREFIX + "textures/gui/images/T5_Energy_Core.png"); + public static final ResourceLocation Stabilizer_Placement = new ResourceLocation(References.RESOURCESPREFIX + "textures/gui/images/Stabilizer_Placement.png"); + public static final ResourceLocation Core_Tiers = new ResourceLocation(References.RESOURCESPREFIX + "textures/gui/images/Core_Tiers.png"); + public static final ResourceLocation Pylon = new ResourceLocation(References.RESOURCESPREFIX + "textures/gui/images/Energy_Pylon.png"); + public static final ResourceLocation Pylon_Particles = new ResourceLocation(References.RESOURCESPREFIX + "textures/gui/images/Energy_Pylon_Particles.png"); + public static final ResourceLocation Pylon_Particles_2 = new ResourceLocation(References.RESOURCESPREFIX + "textures/gui/images/Energy_Pylon_Particles_2.png"); + public static final ResourceLocation Pylon_y_Placement = new ResourceLocation(References.RESOURCESPREFIX + "textures/gui/images/Pylon_y_Placement.png"); + + + public EnergyCoreTutorialPage(String name, PageCollection collection) { + super(name, collection, StatCollector.translateToLocal("manual.de.ecth.txt")); + this.lastPage = 11; + this.formattedDescription = new List[15]; + } + + @Override + public void renderBackgroundLayer(Minecraft minecraft, int offsetX, int offsetY, int mouseX, int mouseY) { + super.renderBackgroundLayer(minecraft, offsetX, offsetY, mouseX, mouseY); + + } + + @Override + public void drawScreen(Minecraft minecraft, int offsetX, int offsetY, int mouseX, int mouseY) { + super.drawScreen(minecraft, offsetX, offsetY, mouseX, mouseY); + GL11.glColor4f(1f, 1f, 1f, 1f); + switch (page){ + case 0: + page0(minecraft, offsetX, offsetY, mouseX, mouseY); + break; + case 1: + page1(minecraft, offsetX, offsetY, mouseX, mouseY); + break; + case 2: + page2(minecraft, offsetX, offsetY, mouseX, mouseY); + break; + case 3: + page3(minecraft, offsetX, offsetY, mouseX, mouseY); + break; + case 4: + page4(minecraft, offsetX, offsetY, mouseX, mouseY); + break; + case 5: + page5(minecraft, offsetX, offsetY, mouseX, mouseY); + break; + case 6: + page6(minecraft, offsetX, offsetY, mouseX, mouseY); + break; + case 7: + page7(minecraft, offsetX, offsetY, mouseX, mouseY); + break; + case 8: + page8(minecraft, offsetX, offsetY, mouseX, mouseY); + break; + case 9: + page9(minecraft, offsetX, offsetY, mouseX, mouseY); + break; + case 10: + page10(minecraft, offsetX, offsetY, mouseX, mouseY); + break; + case 11: + page11(minecraft, offsetX, offsetY, mouseX, mouseY); + break; + } + } + + private void page0(Minecraft minecraft, int offsetX, int offsetY, int mouseX, int mouseY){ + minecraft.renderEngine.bindTexture(Energy_Core); + GL11.glPushMatrix(); + GL11.glScalef(0.5f, 0.5f, 1f); + drawTexturedModalRect((offsetX+64)*2, (offsetY+35)*2, 0, 0, 256, 256); + GL11.glPopMatrix(); + addDescription(minecraft, offsetX, offsetY-60, getFormattedText(fontRendererObj, ttl("manual.de.ectdpage0a.txt"), 0)); + addDescription(minecraft, offsetX, offsetY+55, getFormattedText(fontRendererObj, ttl("manual.de.ectdpage0b.txt"), 1)); + } + + private void page1(Minecraft minecraft, int offsetX, int offsetY, int mouseX, int mouseY){ + minecraft.renderEngine.bindTexture(Stabilizer_Placement); + GL11.glPushMatrix(); + double imageScale = 0.75 ; + GL11.glScaled(imageScale, imageScale, 1D); + double scaleMult = 1.125; + drawTexturedModalRect((int)((offsetX+64)*scaleMult), (int)((offsetY+40)*scaleMult), 0, 0, 256, 256); + GL11.glPopMatrix(); + addDescription(minecraft, offsetX, offsetY-60, getFormattedText(fontRendererObj, ttl("manual.de.ectdpage1a.txt"), 2)); + addDescription(minecraft, offsetX, offsetY+45, getFormattedText(fontRendererObj, ttl("manual.de.ectdpage1b.txt"), 3)); + } + + private void page2(Minecraft minecraft, int offsetX, int offsetY, int mouseX, int mouseY){ + minecraft.renderEngine.bindTexture(Core_Tiers); + GL11.glPushMatrix(); + double imageScale = 5 ; + GL11.glScaled(imageScale, imageScale, 1D); + double scaleMult = 0.21; + + int yOffset = (int)((minecraft.getSystemTime()/2000 % 2)*22); + drawTexturedModalRect((int)((offsetX+49)*scaleMult), (int)((offsetY+15)*scaleMult), 180, 0+yOffset, 30, 20); + GL11.glPopMatrix(); + drawCenteredString(fontRendererObj, "Tier 2", offsetX+128, offsetY+107, 0xff0000); + addDescription(minecraft, offsetX, offsetY+45, getFormattedText(fontRendererObj, ttl("manual.de.ectdpage2.txt"), 4)); + } + + private void page3(Minecraft minecraft, int offsetX, int offsetY, int mouseX, int mouseY){ + minecraft.renderEngine.bindTexture(Core_Tiers); + GL11.glPushMatrix(); + double imageScale = 5 ; + GL11.glScaled(imageScale, imageScale, 1D); + double scaleMult = 0.21; + + int yOffset = (int)((minecraft.getSystemTime()/2000 % 2)*22); + drawTexturedModalRect((int)((offsetX+54)*scaleMult), (int)((offsetY+15)*scaleMult), 151, 0+yOffset, 28, 20); + GL11.glPopMatrix(); + drawCenteredString(fontRendererObj, "Tier 3", offsetX+128, offsetY+107, 0xff0000); + addDescription(minecraft, offsetX, offsetY+45, getFormattedText(fontRendererObj, ttl("manual.de.ectdpage3.txt"), 5)); + } + + private void page4(Minecraft minecraft, int offsetX, int offsetY, int mouseX, int mouseY){ + minecraft.renderEngine.bindTexture(Core_Tiers); + GL11.glPushMatrix(); + double imageScale = 5 ; + GL11.glScaled(imageScale, imageScale, 1D); + double scaleMult = 0.21; + + int yOffset = (int)((minecraft.getSystemTime()/2000 % 3)*22); + drawTexturedModalRect((int)((offsetX+54)*scaleMult), (int)((offsetY+15)*scaleMult), 123, 0+yOffset, 28, 20); + GL11.glPopMatrix(); + drawCenteredString(fontRendererObj, "Tier 4", offsetX+128, offsetY+107, 0xff0000); + addDescription(minecraft, offsetX, offsetY+45, getFormattedText(fontRendererObj, ttl("manual.de.ectdpage4.txt"), 6)); + } + + private void page5(Minecraft minecraft, int offsetX, int offsetY, int mouseX, int mouseY){ + minecraft.renderEngine.bindTexture(Core_Tiers); + GL11.glPushMatrix(); + double imageScale = 5 ; + GL11.glScaled(imageScale, imageScale, 1D); + double scaleMult = 0.21; + + int yOffset = (int)((minecraft.getSystemTime()/2000 % 4)*22); + drawTexturedModalRect((int)((offsetX+60)*scaleMult), (int)((offsetY+15)*scaleMult), 98, 0+yOffset, 25, 20); + GL11.glPopMatrix(); + drawCenteredString(fontRendererObj, "Tier 5", offsetX+128, offsetY+107, 0xff0000); + addDescription(minecraft, offsetX, offsetY+45, getFormattedText(fontRendererObj, ttl("manual.de.ectdpage5.txt"), 7)); + } + + private void page6(Minecraft minecraft, int offsetX, int offsetY, int mouseX, int mouseY){ + minecraft.renderEngine.bindTexture(Core_Tiers); + GL11.glPushMatrix(); + double imageScale = 3 ; + GL11.glScaled(imageScale, imageScale, 1D); + double scaleMult = 0.338; + + int yOffset = (int)((minecraft.getSystemTime()/2000 % 5)*43 ); + drawTexturedModalRect((int)((offsetX+60)*scaleMult), (int)((offsetY+15)*scaleMult), 53, 0+yOffset, 44, 41); + GL11.glPopMatrix(); + drawCenteredString(fontRendererObj, "Tier 6", offsetX+128, offsetY+130, 0xff0000); + addDescription(minecraft, offsetX, offsetY+65, getFormattedText(fontRendererObj, ttl("manual.de.ectdpage6.txt"), 8)); + } + + private void page7(Minecraft minecraft, int offsetX, int offsetY, int mouseX, int mouseY){ + minecraft.renderEngine.bindTexture(Core_Tiers); + GL11.glPushMatrix(); + double imageScale = 3 ; + GL11.glScaled(imageScale, imageScale, 1D); + double scaleMult = 0.338; + + int yOffset = (int)((minecraft.getSystemTime()/2000 % 6)*43 ); + drawTexturedModalRect((int)((offsetX+49)*scaleMult), (int)((offsetY+15)*scaleMult), 0, 0+yOffset, 52, 41); + GL11.glPopMatrix(); + drawCenteredString(fontRendererObj, "Tier 7", offsetX+128, offsetY+130, 0xff0000); + addDescription(minecraft, offsetX, offsetY+65, getFormattedText(fontRendererObj, ttl("manual.de.ectdpage7.txt"), 9)); + } + + private void page8(Minecraft minecraft, int offsetX, int offsetY, int mouseX, int mouseY){ + minecraft.renderEngine.bindTexture(Pylon); + GL11.glPushMatrix(); + double imageScale = 0.75 ; + GL11.glScaled(imageScale, imageScale, 1D); + double scaleMult = 1.34; + drawTexturedModalRect((int)((offsetX+32)*scaleMult), (int)((offsetY+15)*scaleMult), 0, 20, 256, 127); + GL11.glPopMatrix(); + addDescription(minecraft, offsetX, offsetY+35, getFormattedText(fontRendererObj, ttl("manual.de.ectdpage8a.txt"), 10)); + addDescription(minecraft, offsetX, offsetY+75, getFormattedText(fontRendererObj, ttl("manual.de.ectdpage8b.txt"), 11)); + } + + private void page9(Minecraft minecraft, int offsetX, int offsetY, int mouseX, int mouseY){ + minecraft.renderEngine.bindTexture(Pylon_Particles); + GL11.glPushMatrix(); + double imageScale = 0.75 ; + GL11.glScaled(imageScale, imageScale, 1D); + double scaleMult = 1.34; + drawTexturedModalRect((int)((offsetX+32)*scaleMult), (int)((offsetY+15)*scaleMult), 0, 30, 256, 177); + GL11.glPopMatrix(); + addDescription(minecraft, offsetX, offsetY+45, getFormattedText(fontRendererObj, ttl("manual.de.ectdpage9a.txt"), 11)); + addDescription(minecraft, offsetX, offsetY+75, getFormattedText(fontRendererObj, ttl("manual.de.ectdpage9b.txt"), 12)); + } + + private void page10(Minecraft minecraft, int offsetX, int offsetY, int mouseX, int mouseY){ + minecraft.renderEngine.bindTexture(Pylon_Particles_2); + GL11.glPushMatrix(); + double imageScale = 0.75 ; + GL11.glScaled(imageScale, imageScale, 1D); + double scaleMult = 1.34; + drawTexturedModalRect((int)((offsetX+32)*scaleMult), (int)((offsetY+15)*scaleMult), 0, 0, 256, 167); + GL11.glPopMatrix(); + addDescription(minecraft, offsetX, offsetY+75, getFormattedText(fontRendererObj, ttl("manual.de.ectdpage10.txt"), 13)); + } + + private void page11(Minecraft minecraft, int offsetX, int offsetY, int mouseX, int mouseY){ + minecraft.renderEngine.bindTexture(Pylon_y_Placement); + GL11.glPushMatrix(); + double imageScale = 0.75 ; + GL11.glScaled(imageScale, imageScale, 1D); + double scaleMult = 1.34; + drawTexturedModalRect((int)((offsetX+32)*scaleMult), (int)((offsetY+15)*scaleMult), 0, 4, 256, 197); + GL11.glPopMatrix(); + addDescription(minecraft, offsetX, offsetY+90, getFormattedText(fontRendererObj, ttl("manual.de.ectdpage11.txt"), 14)); + } +} diff --git a/src/main/java/com/brandon3055/draconicevolution/client/interfaces/manual/GuiButtonAHeight.java b/src/main/java/com/brandon3055/draconicevolution/client/interfaces/manual/GuiButtonAHeight.java index f45cbf23..85cafb81 100644 --- a/src/main/java/com/brandon3055/draconicevolution/client/interfaces/manual/GuiButtonAHeight.java +++ b/src/main/java/com/brandon3055/draconicevolution/client/interfaces/manual/GuiButtonAHeight.java @@ -49,7 +49,6 @@ public class GuiButtonAHeight extends GuiButton{ { l = 16777120; } - this.drawCenteredString(fontrenderer, this.displayString, this.xPosition + this.width / 2, this.yPosition + (this.height - 8) / 2, l); } } diff --git a/src/main/java/com/brandon3055/draconicevolution/client/interfaces/manual/GuiButtonTextOnly.java b/src/main/java/com/brandon3055/draconicevolution/client/interfaces/manual/GuiButtonTextOnly.java index c474032e..42d47864 100644 --- a/src/main/java/com/brandon3055/draconicevolution/client/interfaces/manual/GuiButtonTextOnly.java +++ b/src/main/java/com/brandon3055/draconicevolution/client/interfaces/manual/GuiButtonTextOnly.java @@ -12,10 +12,12 @@ import org.lwjgl.opengl.GL11; */ public class GuiButtonTextOnly extends GuiButton{ public String LINKED_PAGE; + public int textColour; - public GuiButtonTextOnly(int id, int xPos, int yPos, int width, int hight, String displayString, String linkedPage) { + public GuiButtonTextOnly(int id, int xPos, int yPos, int width, int hight, String displayString, String linkedPage, int colour) { super(id, xPos, yPos, width, hight, displayString); this.LINKED_PAGE = linkedPage; + this.textColour = colour; } @Override @@ -31,7 +33,6 @@ public class GuiButtonTextOnly extends GuiButton{ GL11.glBlendFunc(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA); this.mouseDragged(minecraft, mouseX, mouseY); - int l = 0x777777; String trimmedDisplayString = displayString; if (fontrenderer.getStringWidth(displayString) > width+30 && !this.field_146123_n){ @@ -47,15 +48,15 @@ public class GuiButtonTextOnly extends GuiButton{ if (this.field_146123_n) { trimmedDisplayString = EnumChatFormatting.BOLD+""+EnumChatFormatting.ITALIC+trimmedDisplayString; - l = 0x000000; - - } { GL11.glPushMatrix(); - GL11.glScalef(0.7F, 0.7F, 1); - fontrenderer.drawString(trimmedDisplayString, (int)(xPosition*1.45), (int)((yPosition + (height - 8) / 2)*1.45), l); + GL11.glColor4f(0f, 0f, 0f, 1f); + drawTexturedModalRect(xPosition, yPosition, 0, 46, (int)(fontrenderer.getStringWidth(trimmedDisplayString)*0.72)+2, 8); GL11.glPopMatrix(); } - + GL11.glPushMatrix(); + GL11.glScalef(0.7F, 0.7F, 1); + fontrenderer.drawString(trimmedDisplayString, (int)(xPosition*1.45), (int)((yPosition + (height - 8) / 2)*1.45), textColour); + GL11.glPopMatrix(); } } diff --git a/src/main/java/com/brandon3055/draconicevolution/client/interfaces/manual/GuiManual.java b/src/main/java/com/brandon3055/draconicevolution/client/interfaces/manual/GuiManual.java index 9aeccf4c..691dc46f 100644 --- a/src/main/java/com/brandon3055/draconicevolution/client/interfaces/manual/GuiManual.java +++ b/src/main/java/com/brandon3055/draconicevolution/client/interfaces/manual/GuiManual.java @@ -11,6 +11,7 @@ import net.minecraft.client.gui.GuiScreen; import net.minecraft.client.renderer.RenderHelper; import net.minecraft.inventory.Container; import net.minecraft.item.ItemStack; +import net.minecraft.util.StatCollector; import org.lwjgl.opengl.GL11; import org.lwjgl.opengl.GL12; @@ -42,63 +43,67 @@ public class GuiManual extends GuiScreen { pageCollection.addPage(new IntroPage("INTRO", pageCollection)); //pageCollection.addPage(new TitledPage("TITLED_PAGE_1", true, pageCollection, "manual.de.Page Title.txt", 0xff0000).setIndexName("manual.de.TitledPage.txt")); - pageCollection.addPage(new CraftingPage("CRAFTING_PAGE_"+getNextPageIndex(), pageCollection, new ItemStack(ModBlocks.draconiumOre), "")); - pageCollection.addPage(new CraftingPage("CRAFTING_PAGE_"+getNextPageIndex(), pageCollection, new ItemStack(ModItems.draconiumDust), "")); - pageCollection.addPage(new CraftingPage("CRAFTING_PAGE_"+getNextPageIndex(), pageCollection, new ItemStack(ModItems.draconiumBlend), "")); - pageCollection.addPage(new CraftingPage("CRAFTING_PAGE_"+getNextPageIndex(), pageCollection, new ItemStack(ModItems.draconiumIngot, 2), "")); - pageCollection.addPage(new CraftingPage("CRAFTING_PAGE_"+getNextPageIndex(), pageCollection, new ItemStack(ModItems.draconicCore), "")); - pageCollection.addPage(new CraftingPage("CRAFTING_PAGE_"+getNextPageIndex(), pageCollection, new ItemStack(ModItems.infusedCompound), "")); - pageCollection.addPage(new CraftingPage("CRAFTING_PAGE_"+getNextPageIndex(), pageCollection, new ItemStack(ModItems.dragonHeart), "")); - pageCollection.addPage(new CraftingPage("CRAFTING_PAGE_"+getNextPageIndex(), pageCollection, new ItemStack(ModItems.draconicCompound, 2), "")); - pageCollection.addPage(new CraftingPage("CRAFTING_PAGE_"+getNextPageIndex(), pageCollection, new ItemStack(ModItems.sunFocus), "")); + pageCollection.addPage(new CraftingInfoPage("BLOCK_PAGE."+getNextPageIndex(), pageCollection, new ItemStack(ModBlocks.draconiumOre), "")); + pageCollection.addPage(new CraftingInfoPage("ITEM_PAGE."+getNextPageIndex(), pageCollection, new ItemStack(ModItems.draconiumDust), "")); + pageCollection.addPage(new CraftingInfoPage("ITEM_PAGE."+getNextPageIndex(), pageCollection, new ItemStack(ModItems.draconiumBlend), "")); + pageCollection.addPage(new CraftingInfoPage("ITEM_PAGE."+getNextPageIndex(), pageCollection, new ItemStack(ModItems.draconiumIngot, 2), "")); + pageCollection.addPage(new CraftingInfoPage("ITEM_PAGE."+getNextPageIndex(), pageCollection, new ItemStack(ModItems.draconicCore), "")); + pageCollection.addPage(new CraftingInfoPage("ITEM_PAGE."+getNextPageIndex(), pageCollection, new ItemStack(ModItems.infusedCompound), "")); + pageCollection.addPage(new CraftingInfoPage("ITEM_PAGE."+getNextPageIndex(), pageCollection, new ItemStack(ModItems.dragonHeart), "")); + pageCollection.addPage(new CraftingInfoPage("ITEM_PAGE."+getNextPageIndex(), pageCollection, new ItemStack(ModItems.draconicCompound, 2), "")); + pageCollection.addPage(new CraftingInfoPage("ITEM_PAGE."+getNextPageIndex(), pageCollection, new ItemStack(ModItems.sunFocus), "")); - pageCollection.addPage(new CraftingPage("CRAFTING_PAGE_"+getNextPageIndex(), pageCollection, new ItemStack(ModItems.wyvernPickaxe), "")); - pageCollection.addPage(new CraftingPage("CRAFTING_PAGE_"+getNextPageIndex(), pageCollection, new ItemStack(ModItems.wyvernShovel), "")); - pageCollection.addPage(new CraftingPage("CRAFTING_PAGE_"+getNextPageIndex(), pageCollection, new ItemStack(ModItems.wyvernSword), "")); - pageCollection.addPage(new CraftingPage("CRAFTING_PAGE_"+getNextPageIndex(), pageCollection, new ItemStack(ModItems.wyvernBow), "")); + pageCollection.addPage(new CraftingInfoPage("ITEM_PAGE."+getNextPageIndex(), pageCollection, new ItemStack(ModItems.wyvernPickaxe), "")); + pageCollection.addPage(new CraftingInfoPage("ITEM_PAGE."+getNextPageIndex(), pageCollection, new ItemStack(ModItems.wyvernShovel), "")); + pageCollection.addPage(new CraftingInfoPage("ITEM_PAGE."+getNextPageIndex(), pageCollection, new ItemStack(ModItems.wyvernSword), "")); + pageCollection.addPage(new CraftingInfoPage("ITEM_PAGE."+getNextPageIndex(), pageCollection, new ItemStack(ModItems.wyvernBow), "")); - pageCollection.addPage(new CraftingPage("CRAFTING_PAGE_"+getNextPageIndex(), pageCollection, new ItemStack(ModItems.draconicPickaxe), "")); - pageCollection.addPage(new CraftingPage("CRAFTING_PAGE_"+getNextPageIndex(), pageCollection, new ItemStack(ModItems.draconicShovel), "")); - pageCollection.addPage(new CraftingPage("CRAFTING_PAGE_"+getNextPageIndex(), pageCollection, new ItemStack(ModItems.draconicHoe), "")); - pageCollection.addPage(new CraftingPage("CRAFTING_PAGE_"+getNextPageIndex(), pageCollection, new ItemStack(ModItems.draconicAxe), "")); - pageCollection.addPage(new CraftingPage("CRAFTING_PAGE_"+getNextPageIndex(), pageCollection, new ItemStack(ModItems.draconicSword), "")); - pageCollection.addPage(new CraftingPage("CRAFTING_PAGE_"+getNextPageIndex(), pageCollection, new ItemStack(ModItems.draconicBow), "")); - pageCollection.addPage(new CraftingPage("CRAFTING_PAGE_"+getNextPageIndex(), pageCollection, new ItemStack(ModItems.draconicDistructionStaff), "")); + pageCollection.addPage(new CraftingInfoPage("ITEM_PAGE."+getNextPageIndex(), pageCollection, new ItemStack(ModItems.draconicPickaxe), "")); + pageCollection.addPage(new CraftingInfoPage("ITEM_PAGE."+getNextPageIndex(), pageCollection, new ItemStack(ModItems.draconicShovel), "")); + pageCollection.addPage(new CraftingInfoPage("ITEM_PAGE."+getNextPageIndex(), pageCollection, new ItemStack(ModItems.draconicHoe), "")); + pageCollection.addPage(new CraftingInfoPage("ITEM_PAGE."+getNextPageIndex(), pageCollection, new ItemStack(ModItems.draconicAxe), "")); + pageCollection.addPage(new CraftingInfoPage("ITEM_PAGE."+getNextPageIndex(), pageCollection, new ItemStack(ModItems.draconicSword), "")); + pageCollection.addPage(new CraftingInfoPage("ITEM_PAGE."+getNextPageIndex(), pageCollection, new ItemStack(ModItems.draconicBow), "")); + pageCollection.addPage(new CraftingInfoPage("ITEM_PAGE."+getNextPageIndex(), pageCollection, new ItemStack(ModItems.draconicDistructionStaff), "")); - pageCollection.addPage(new CraftingPage("CRAFTING_PAGE_"+getNextPageIndex(), pageCollection, new ItemStack(ModItems.wyvernHelm), "")); - pageCollection.addPage(new CraftingPage("CRAFTING_PAGE_"+getNextPageIndex(), pageCollection, new ItemStack(ModItems.wyvernChest), "")); - pageCollection.addPage(new CraftingPage("CRAFTING_PAGE_"+getNextPageIndex(), pageCollection, new ItemStack(ModItems.wyvernLeggs), "")); - pageCollection.addPage(new CraftingPage("CRAFTING_PAGE_"+getNextPageIndex(), pageCollection, new ItemStack(ModItems.wyvernBoots), "")); - pageCollection.addPage(new CraftingPage("CRAFTING_PAGE_"+getNextPageIndex(), pageCollection, new ItemStack(ModItems.draconicHelm), "")); - pageCollection.addPage(new CraftingPage("CRAFTING_PAGE_"+getNextPageIndex(), pageCollection, new ItemStack(ModItems.draconicChest), "")); - pageCollection.addPage(new CraftingPage("CRAFTING_PAGE_"+getNextPageIndex(), pageCollection, new ItemStack(ModItems.draconicLeggs), "")); - pageCollection.addPage(new CraftingPage("CRAFTING_PAGE_"+getNextPageIndex(), pageCollection, new ItemStack(ModItems.draconicBoots), "")); + pageCollection.addPage(new CraftingInfoPage("ITEM_PAGE."+getNextPageIndex(), pageCollection, new ItemStack(ModItems.wyvernHelm), "")); + pageCollection.addPage(new CraftingInfoPage("ITEM_PAGE."+getNextPageIndex(), pageCollection, new ItemStack(ModItems.wyvernChest), "")); + pageCollection.addPage(new CraftingInfoPage("ITEM_PAGE."+getNextPageIndex(), pageCollection, new ItemStack(ModItems.wyvernLeggs), "")); + pageCollection.addPage(new CraftingInfoPage("ITEM_PAGE."+getNextPageIndex(), pageCollection, new ItemStack(ModItems.wyvernBoots), "")); + pageCollection.addPage(new CraftingInfoPage("ITEM_PAGE."+getNextPageIndex(), pageCollection, new ItemStack(ModItems.draconicHelm), "")); + pageCollection.addPage(new CraftingInfoPage("ITEM_PAGE."+getNextPageIndex(), pageCollection, new ItemStack(ModItems.draconicChest), "")); + pageCollection.addPage(new CraftingInfoPage("ITEM_PAGE."+getNextPageIndex(), pageCollection, new ItemStack(ModItems.draconicLeggs), "")); + pageCollection.addPage(new CraftingInfoPage("ITEM_PAGE."+getNextPageIndex(), pageCollection, new ItemStack(ModItems.draconicBoots), "")); - pageCollection.addPage(new CraftingPage("CRAFTING_PAGE_"+getNextPageIndex(), pageCollection, new ItemStack(ModItems.teleporterMKI), "")); - pageCollection.addPage(new CraftingPage("CRAFTING_PAGE_"+getNextPageIndex(), pageCollection, new ItemStack(ModItems.teleporterMKII), "")); - pageCollection.addPage(new CraftingPage("CRAFTING_PAGE_"+getNextPageIndex(), pageCollection, new ItemStack(ModItems.enderArrow), "")); - pageCollection.addPage(new CraftingPage("CRAFTING_PAGE_"+getNextPageIndex(), pageCollection, new ItemStack(ModItems.safetyMatch), "")); - pageCollection.addPage(new CraftingPage("CRAFTING_PAGE_"+getNextPageIndex(), pageCollection, mobSoul, "")); + pageCollection.addPage(new CraftingInfoPage("ITEM_PAGE."+getNextPageIndex(), pageCollection, new ItemStack(ModItems.teleporterMKI), "")); + pageCollection.addPage(new CraftingInfoPage("ITEM_PAGE."+getNextPageIndex(), pageCollection, new ItemStack(ModItems.teleporterMKII), "")); + pageCollection.addPage(new CraftingInfoPage("ITEM_PAGE."+getNextPageIndex(), pageCollection, new ItemStack(ModItems.enderArrow), "")); + pageCollection.addPage(new CraftingInfoPage("ITEM_PAGE."+getNextPageIndex(), pageCollection, new ItemStack(ModItems.safetyMatch), "")); + pageCollection.addPage(new CraftingInfoPage("ITEM_PAGE."+getNextPageIndex(), pageCollection, mobSoul, "")); - pageCollection.addPage(new CraftingPage("CRAFTING_PAGE_"+getNextPageIndex(), pageCollection, new ItemStack(ModBlocks.weatherController), "")); - pageCollection.addPage(new CraftingPage("CRAFTING_PAGE_"+getNextPageIndex(), pageCollection, new ItemStack(ModBlocks.sunDial), "")); - pageCollection.addPage(new CraftingPage("CRAFTING_PAGE_"+getNextPageIndex(), pageCollection, new ItemStack(ModBlocks.playerDetector), "")); - pageCollection.addPage(new CraftingPage("CRAFTING_PAGE_"+getNextPageIndex(), pageCollection, new ItemStack(ModBlocks.playerDetectorAdvanced), "")); - pageCollection.addPage(new CraftingPage("CRAFTING_PAGE_"+getNextPageIndex(), pageCollection, new ItemStack(ModBlocks.grinder), "")); - pageCollection.addPage(new CraftingPage("CRAFTING_PAGE_"+getNextPageIndex(), pageCollection, new ItemStack(ModBlocks.energyInfuser), "")); - pageCollection.addPage(new CraftingPage("CRAFTING_PAGE_"+getNextPageIndex(), pageCollection, new ItemStack(ModBlocks.customSpawner), "")); - - pageCollection.addPage(new CraftingPage("CRAFTING_PAGE_"+getNextPageIndex(), pageCollection, new ItemStack(ModBlocks.particleGenerator), "")); - pageCollection.addPage(new CraftingPage("CRAFTING_PAGE_"+getNextPageIndex(), pageCollection, new ItemStack(ModBlocks.xRayBlock), "")); - pageCollection.addPage(new CraftingPage("CRAFTING_PAGE_"+getNextPageIndex(), pageCollection, new ItemStack(ModBlocks.potentiometer), "")); - pageCollection.addPage(new CraftingPage("CRAFTING_PAGE_"+getNextPageIndex(), pageCollection, new ItemStack(ModBlocks.rainSensor), "")); - pageCollection.addPage(new CraftingPage("CRAFTING_PAGE_"+getNextPageIndex(), pageCollection, new ItemStack(ModBlocks.draconium), "")); - pageCollection.addPage(new CraftingPage("CRAFTING_PAGE_"+getNextPageIndex(), pageCollection, new ItemStack(ModBlocks.energyStorageCore), "")); - pageCollection.addPage(new CraftingPage("CRAFTING_PAGE_"+getNextPageIndex(), pageCollection, new ItemStack(ModBlocks.energyPylon), "")); - pageCollection.addPage(new CraftingPage("CRAFTING_PAGE_"+getNextPageIndex(), pageCollection, new ItemStack(ModBlocks.draconium, 1, 1), "")); - pageCollection.addPage(new CraftingPage("CRAFTING_PAGE_"+getNextPageIndex(), pageCollection, new ItemStack(ModBlocks.draconium, 1, 2), "")); + pageCollection.addPage(new CraftingInfoPage("BLOCK_PAGE."+getNextPageIndex(), pageCollection, new ItemStack(ModBlocks.weatherController), "")); + pageCollection.addPage(new CraftingInfoPage("BLOCK_PAGE."+getNextPageIndex(), pageCollection, new ItemStack(ModBlocks.sunDial), "")); + pageCollection.addPage(new CraftingInfoPage("BLOCK_PAGE."+getNextPageIndex(), pageCollection, new ItemStack(ModBlocks.playerDetector), "")); + pageCollection.addPage(new CraftingInfoPage("BLOCK_PAGE."+getNextPageIndex(), pageCollection, new ItemStack(ModBlocks.playerDetectorAdvanced), "")); + pageCollection.addPage(new CraftingInfoPage("BLOCK_PAGE."+getNextPageIndex(), pageCollection, new ItemStack(ModBlocks.grinder, 1, 3), "")); + pageCollection.addPage(new CraftingInfoPage("BLOCK_PAGE."+getNextPageIndex(), pageCollection, new ItemStack(ModBlocks.energyInfuser), "")); + pageCollection.addPage(new CraftingInfoPage("BLOCK_PAGE."+getNextPageIndex(), pageCollection, new ItemStack(ModBlocks.customSpawner), "")); + pageCollection.addPage(new CraftingInfoPage("BLOCK_PAGE."+getNextPageIndex(), pageCollection, new ItemStack(ModBlocks.particleGenerator), "")); + pageCollection.addPage(new CraftingInfoPage("BLOCK_PAGE."+getNextPageIndex(), pageCollection, new ItemStack(ModBlocks.xRayBlock), "")); + pageCollection.addPage(new CraftingInfoPage("BLOCK_PAGE."+getNextPageIndex(), pageCollection, new ItemStack(ModBlocks.potentiometer), "")); + pageCollection.addPage(new CraftingInfoPage("BLOCK_PAGE."+getNextPageIndex(), pageCollection, new ItemStack(ModBlocks.rainSensor), "")); + pageCollection.addPage(new CraftingInfoPage("BLOCK_PAGE."+getNextPageIndex(), pageCollection, new ItemStack(ModBlocks.draconium), "")); + pageCollection.addPage(new CraftingInfoPage("BLOCK_PAGE."+getNextPageIndex(), pageCollection, new ItemStack(ModBlocks.energyStorageCore), "")); + pageCollection.addPage(new CraftingInfoPage("BLOCK_PAGE."+getNextPageIndex(), pageCollection, new ItemStack(ModBlocks.energyPylon), "")); + pageCollection.addPage(new CraftingInfoPage("BLOCK_PAGE."+getNextPageIndex(), pageCollection, new ItemStack(ModBlocks.draconium, 1, 1), "")); + pageCollection.addPage(new CraftingInfoPage("BLOCK_PAGE."+getNextPageIndex(), pageCollection, new ItemStack(ModBlocks.draconium, 1, 2), "")); + pageCollection.addPage(new EnergyCoreTutorialPage("TUTORIAL."+getNextPageIndex(), pageCollection).setIndexName(StatCollector.translateToLocal("manual.de.ecth.txt"))); + pageCollection.addPage(new EnderResurrectionTutorialPage("TUTORIAL."+getNextPageIndex(), pageCollection).setIndexName("manual.de.roerth.txt")); + pageCollection.addPage(new DescriptionPage("INFO"+getNextPageIndex(), pageCollection, "manual.de.endercomet.description").setIndexName("manual.de.endercomet.txt")); + pageCollection.addPage(new DescriptionPage("INFO"+getNextPageIndex(), pageCollection, "manual.de.chaosisland.description").setIndexName("manual.de.enderisland.txt")); + pageCollection.addPage(new DescriptionPage("INFO"+getNextPageIndex(), pageCollection, "manual.de.placeditems.description").setIndexName("manual.de.placeditems.txt")); pageCollection.addPage(new IndexPage("INDEX", pageCollection)); return pageCollection; @@ -112,10 +117,12 @@ public class GuiManual extends GuiScreen { @Override public void drawScreen(int mouseX, int mouseY, float par3) { - super.drawScreen(mouseX, mouseY, par3); drawGuiBackgroundLayer(par3, mouseX, mouseY); + super.drawScreen(mouseX, mouseY, par3); + prepareRenderState(); GL11.glPushMatrix(); + root.drawScreen(this.mc, this.guiLeft, this.guiTop, mouseX - this.guiLeft, mouseY - this.guiTop); GL11.glPopMatrix(); @@ -150,17 +157,17 @@ public class GuiManual extends GuiScreen { } @Override - protected void actionPerformed(GuiButton button) { + public void actionPerformed(GuiButton button) { root.actionPerformed(button); } @Override - protected void mouseMovedOrUp(int par1, int par2, int par3){ + public void mouseMovedOrUp(int par1, int par2, int par3){ root.mouseMovedOrUp(par1, par2, par3); } @Override - protected void mouseClicked(int par1, int par2, int par3){ + public void mouseClicked(int par1, int par2, int par3){ root.mouseClicked(par1, par2, par3); } diff --git a/src/main/java/com/brandon3055/draconicevolution/client/interfaces/manual/IndexPage.java b/src/main/java/com/brandon3055/draconicevolution/client/interfaces/manual/IndexPage.java index abc8bd65..b6ed1780 100644 --- a/src/main/java/com/brandon3055/draconicevolution/client/interfaces/manual/IndexPage.java +++ b/src/main/java/com/brandon3055/draconicevolution/client/interfaces/manual/IndexPage.java @@ -7,7 +7,10 @@ import net.minecraft.client.gui.GuiButton; * Created by Brandon on 17/09/2014. */ public class IndexPage extends TitledPage { - + private int itemPageColour = 0xab373f; + private int blockPageColour = 0x7729a7; + private int tutorialPageColour = 0x000080; + private int otherPageColour = 0x228B22; public IndexPage(String name, PageCollection collection) { super(name, false, collection, "manual.de.indexTitle.txt", 0xffa600); } @@ -22,9 +25,14 @@ public class IndexPage extends TitledPage { for (BasePage page : collection.pages){ if (page.hasIndexButton){ String indexName = page.INDEX_NAME; - if (indexName==null && page instanceof CraftingPage) indexName = ttl(((CraftingPage)page).result.getUnlocalizedName()+".name"); + if (indexName==null && page instanceof CraftingInfoPage) indexName = ttl(((CraftingInfoPage)page).result.getUnlocalizedName()+".name"); else if (indexName==null) indexName = page.getReferenceName(); - buttonList.add(new GuiButtonTextOnly(999, getXMin()+5+collum*81, getYMin()+20+(row*7), 82, 7, indexName, page.getReferenceName())); + int colour = otherPageColour; + if (page.getReferenceName() != null && page.getReferenceName().contains("ITEM_PAGE")) colour = itemPageColour; + if (page.getReferenceName() != null && page.getReferenceName().contains("BLOCK_PAGE")) colour = blockPageColour; + if (page.getReferenceName() != null && page.getReferenceName().contains("TUTORIAL")) colour = tutorialPageColour; + + buttonList.add(new GuiButtonTextOnly(999, getXMin()+5+collum*81, getYMin()+20+(row*7), 82, 7, indexName, page.getReferenceName(), colour)); row++; if (row > 21){ row = 0; @@ -44,13 +52,22 @@ public class IndexPage extends TitledPage { collection.changeActivePage(((GuiButtonTextOnly)button).LINKED_PAGE); } + @Override + public void renderBackgroundLayer(Minecraft minecraft, int offsetX, int offsetY, int mouseX, int mouseY) { + super.renderBackgroundLayer(minecraft, offsetX, offsetY, mouseX, mouseY); + fontRendererObj.drawString("Items", offsetX+10, offsetY+179, itemPageColour); + fontRendererObj.drawString("Blocks", offsetX+10, offsetY+189, blockPageColour); + fontRendererObj.drawString("Tutorials", offsetX+200, offsetY+179, tutorialPageColour); + fontRendererObj.drawString("Other", offsetX+200, offsetY+189, otherPageColour); + } + @Override public void drawScreen(Minecraft minecraft, int offsetX, int offsetY, int mouseX, int mouseY) { super.drawScreen(minecraft, offsetX, offsetY, mouseX, mouseY); for (int k = 0; k < this.buttonList.size(); ++k) { if (buttonList.get(k) instanceof GuiButtonTextOnly && ((GuiButtonTextOnly) buttonList.get(k)).getIsHovering()) { - ((GuiButtonTextOnly) this.buttonList.get(k)).drawButton(this.mc, mouseX+offsetX, mouseY+offsetY); + ((GuiButtonTextOnly) this.buttonList.get(k)).drawButton(this.mc, mouseX + offsetX, mouseY + offsetY); } } } diff --git a/src/main/java/com/brandon3055/draconicevolution/client/interfaces/manual/IntroPage.java b/src/main/java/com/brandon3055/draconicevolution/client/interfaces/manual/IntroPage.java index ded09809..312534d7 100644 --- a/src/main/java/com/brandon3055/draconicevolution/client/interfaces/manual/IntroPage.java +++ b/src/main/java/com/brandon3055/draconicevolution/client/interfaces/manual/IntroPage.java @@ -10,7 +10,7 @@ import org.lwjgl.opengl.GL11; * Created by Brandon on 17/09/2014. */ public class IntroPage extends BasePage { - public static final ResourceLocation logo = new ResourceLocation(References.RESOURCESPREFIX + "textures/gui/ManualIntro.png"); + public static final ResourceLocation logo = new ResourceLocation(References.RESOURCESPREFIX + "textures/gui/images/ManualIntro.png"); public IntroPage(String name, PageCollection collection) { super(name, collection); } diff --git a/src/main/java/com/brandon3055/draconicevolution/client/interfaces/manual/TitledPage.java b/src/main/java/com/brandon3055/draconicevolution/client/interfaces/manual/TitledPage.java index 7d2d08af..9fab2e4c 100644 --- a/src/main/java/com/brandon3055/draconicevolution/client/interfaces/manual/TitledPage.java +++ b/src/main/java/com/brandon3055/draconicevolution/client/interfaces/manual/TitledPage.java @@ -7,6 +7,7 @@ import net.minecraft.client.Minecraft; */ public class TitledPage extends BasePage { private String title; + public boolean drawTitle = true; private int colour; public TitledPage(String name, boolean showInMenue, PageCollection collection, String unlocalizedTitle, int colour) { @@ -17,6 +18,7 @@ public class TitledPage extends BasePage { @Override public void renderOverlayComponents(Minecraft minecraft, int offsetX, int offsetY, int mouseX, int mouseY) { - drawCenteredString(minecraft.fontRenderer, ttl(title), offsetX + 128, offsetY + 5, colour); + if (title == null) title = INDEX_NAME; + if (drawTitle)drawCenteredString(minecraft.fontRenderer, ttl(title), offsetX + 128, offsetY + 5, colour); } } diff --git a/src/main/java/com/brandon3055/draconicevolution/client/interfaces/manual/TutorialPage.java b/src/main/java/com/brandon3055/draconicevolution/client/interfaces/manual/TutorialPage.java new file mode 100644 index 00000000..66c7fb44 --- /dev/null +++ b/src/main/java/com/brandon3055/draconicevolution/client/interfaces/manual/TutorialPage.java @@ -0,0 +1,104 @@ +package com.brandon3055.draconicevolution.client.interfaces.manual; + +import com.google.common.base.Strings; +import com.google.common.collect.ImmutableList; +import net.minecraft.client.Minecraft; +import net.minecraft.client.gui.FontRenderer; +import net.minecraft.client.gui.GuiButton; +import org.lwjgl.opengl.GL11; + +import java.util.ArrayList; +import java.util.List; + +/** + * Created by Brandon on 18/09/2014. + */ +public class TutorialPage extends TitledPage { + private float descriptionScale = 0.66f; + public String[] rawDescription; + public List[] formattedDescription; + public int page = 0; + public int lastPage = 0; + + public TutorialPage(String name, PageCollection collection, String title) { + super(name, true, collection, title, 0x00ff00); + } + + @Override + public void renderBackgroundLayer(Minecraft minecraft, int offsetX, int offsetY, int mouseX, int mouseY) { + super.renderBackgroundLayer(minecraft, offsetX, offsetY, mouseX, mouseY); + if (lastPage == 0) return; + String s = "page " + page + "/" + lastPage; + fontRendererObj.drawString(s, offsetX+195, offsetY+185, 0x000000); + } + + @SuppressWarnings("unchecked") + @Override + public void initGui() { + super.initGui(); + if (lastPage == 0) return; + buttonList.add(new GuiButtonAHeight(1, getXMin()+62, getYMin()+181, 25, 16, ttl("button.de.previous.txt"))); + buttonList.add(new GuiButtonAHeight(2, getXMin()+170, getYMin()+181, 25, 16, ttl("button.de.next.txt"))); + if (buttonList.get(1) instanceof GuiButton) ((GuiButton)buttonList.get(1)).enabled = !(page == 0); + if (buttonList.get(2) instanceof GuiButton) ((GuiButton)buttonList.get(2)).enabled = !(page == lastPage); + } + + public void drawScreen(Minecraft minecraft, int offsetX, int offsetY, int mouseX, int mouseY) { + super.drawScreen(minecraft, offsetX, offsetY, mouseX, mouseY); + + } + + public void addDescription(Minecraft minecraft, int offsetX, int offsetY, List description){ + GL11.glPushMatrix(); + GL11.glTranslated(offsetX+5, offsetY+75, 1); + GL11.glScalef(descriptionScale, descriptionScale, descriptionScale); + int offset = 0; + for (String s : description) { + if (s == null) break; + fontRendererObj.drawString(s, 0, offset, 4210752); + offset += fontRendererObj.FONT_HEIGHT; + } + GL11.glPopMatrix(); + } + + @SuppressWarnings("unchecked") + public List getFormattedText(FontRenderer fr, String raw, int descriptionIndex) { + if (formattedDescription[descriptionIndex] == null) { + if (Strings.isNullOrEmpty(raw)) formattedDescription[descriptionIndex] = ImmutableList.of(); + else formattedDescription[descriptionIndex] = ImmutableList.copyOf(fr.listFormattedStringToWidth(raw, 370)); + List modified = new ArrayList(); + for (int i = 0; i < formattedDescription[descriptionIndex].size(); i++){ + String line = formattedDescription[descriptionIndex].get(i); + if (!line.contains("/n")) modified.add(line); + else { + String joinedLine = ""; + for (i=i; i < formattedDescription[descriptionIndex].size(); i++) joinedLine = joinedLine + formattedDescription[descriptionIndex].get(i); + int escape = 0; + while (!joinedLine.isEmpty() && escape < 20) { + int index = 0; + if (joinedLine.contains("/n")) index = joinedLine.indexOf("/n"); + else index = joinedLine.length(); + String s = joinedLine.substring(0, index); + modified.add(s); + joinedLine = joinedLine.substring(index); + joinedLine = joinedLine.replaceFirst("/n", ""); + escape++; + } + break; + } + } + formattedDescription[descriptionIndex] = modified; + } + return formattedDescription[descriptionIndex]; + } + + @Override + public void actionPerformed(GuiButton button) { + super.actionPerformed(button); + if (lastPage == 0) return; + if (button.id == 1) page = Math.max(0, page-1); + if (button.id == 2) page = Math.min(lastPage, page+1); + if (buttonList.get(1) instanceof GuiButton) ((GuiButton)buttonList.get(1)).enabled = !(page == 0); + if (buttonList.get(2) instanceof GuiButton) ((GuiButton)buttonList.get(2)).enabled = !(page == lastPage); + } +} diff --git a/src/main/java/com/brandon3055/draconicevolution/common/blocks/TestBlock.java b/src/main/java/com/brandon3055/draconicevolution/common/blocks/TestBlock.java index f20f0608..8c6a8ef2 100644 --- a/src/main/java/com/brandon3055/draconicevolution/common/blocks/TestBlock.java +++ b/src/main/java/com/brandon3055/draconicevolution/common/blocks/TestBlock.java @@ -1,8 +1,6 @@ package com.brandon3055.draconicevolution.common.blocks; -import java.util.List; -import java.util.Random; - +import com.brandon3055.draconicevolution.DraconicEvolution; import com.brandon3055.draconicevolution.common.blocks.itemblocks.TestItemBlock; import com.brandon3055.draconicevolution.common.tileentities.TileTestBlock; import cpw.mods.fml.relauncher.Side; @@ -18,7 +16,9 @@ import net.minecraft.util.IIcon; import net.minecraft.util.MovingObjectPosition; import net.minecraft.world.IBlockAccess; import net.minecraft.world.World; -import com.brandon3055.draconicevolution.DraconicEvolution; + +import java.util.List; +import java.util.Random; public class TestBlock extends BlockDE { @@ -108,7 +108,6 @@ public class TestBlock extends BlockDE { @Override public Item getItemDropped(int p_149650_1_, Random p_149650_2_, int p_149650_3_) { - // TODO Auto-generated method stub return super.getItemDropped( p_149650_1_, p_149650_2_, p_149650_3_); } diff --git a/src/main/java/com/brandon3055/draconicevolution/common/blocks/XRayBlock.java b/src/main/java/com/brandon3055/draconicevolution/common/blocks/XRayBlock.java index f61e8c57..f03b8c7b 100644 --- a/src/main/java/com/brandon3055/draconicevolution/common/blocks/XRayBlock.java +++ b/src/main/java/com/brandon3055/draconicevolution/common/blocks/XRayBlock.java @@ -1,7 +1,11 @@ package com.brandon3055.draconicevolution.common.blocks; -import java.util.Random; - +import com.brandon3055.draconicevolution.DraconicEvolution; +import com.brandon3055.draconicevolution.common.core.handler.ParticleHandler; +import com.brandon3055.draconicevolution.common.items.ModItems; +import com.brandon3055.draconicevolution.common.lib.Strings; +import cpw.mods.fml.relauncher.Side; +import cpw.mods.fml.relauncher.SideOnly; import net.minecraft.block.material.Material; import net.minecraft.entity.Entity; import net.minecraft.entity.item.EntityItem; @@ -11,12 +15,8 @@ import net.minecraft.item.ItemStack; import net.minecraft.util.AxisAlignedBB; import net.minecraft.world.IBlockAccess; import net.minecraft.world.World; -import cpw.mods.fml.relauncher.Side; -import cpw.mods.fml.relauncher.SideOnly; -import com.brandon3055.draconicevolution.DraconicEvolution; -import com.brandon3055.draconicevolution.common.core.handler.ParticleHandler; -import com.brandon3055.draconicevolution.common.items.ModItems; -import com.brandon3055.draconicevolution.common.lib.Strings; + +import java.util.Random; public class XRayBlock extends BlockDE { @@ -40,7 +40,6 @@ public class XRayBlock extends BlockDE { @Override public boolean isReplaceable(IBlockAccess world, int x, int y, int z) { - // TODO Auto-generated method stub return super.isReplaceable(world, x, y, z); } diff --git a/src/main/java/com/brandon3055/draconicevolution/common/core/Teleporter/Teleporter.java b/src/main/java/com/brandon3055/draconicevolution/common/core/Teleporter/Teleporter.java index 3a0311e0..a9e35b0e 100644 --- a/src/main/java/com/brandon3055/draconicevolution/common/core/Teleporter/Teleporter.java +++ b/src/main/java/com/brandon3055/draconicevolution/common/core/Teleporter/Teleporter.java @@ -39,7 +39,7 @@ public class Teleporter if (thePlayer.isRiding()) thePlayer.dismountEntity(thePlayer.ridingEntity); thePlayer.mcServer.getConfigurationManager().transferPlayerToDimension(thePlayer, thePlayer.dimension, new CustomTeleporter(thePlayer.mcServer.worldServerForDimension(thePlayer.dimension), x, y, z, 0, 0)); - thePlayer.mcServer.getConfigurationManager().transferPlayerToDimension(thePlayer, thePlayer.dimension, new CustomTeleporter(thePlayer.mcServer.worldServerForDimension(thePlayer.dimension), x, y, z, 0, 0)); + //thePlayer.mcServer.getConfigurationManager().transferPlayerToDimension(thePlayer, thePlayer.dimension, new CustomTeleporter(thePlayer.mcServer.worldServerForDimension(thePlayer.dimension), x, y, z, 0, 0)); } else { if (thePlayer.isRiding()) diff --git a/src/main/java/com/brandon3055/draconicevolution/common/core/handler/MinecraftForgeEventHandler.java b/src/main/java/com/brandon3055/draconicevolution/common/core/handler/MinecraftForgeEventHandler.java index d8bd5cfd..e0587d3e 100644 --- a/src/main/java/com/brandon3055/draconicevolution/common/core/handler/MinecraftForgeEventHandler.java +++ b/src/main/java/com/brandon3055/draconicevolution/common/core/handler/MinecraftForgeEventHandler.java @@ -4,6 +4,7 @@ package com.brandon3055.draconicevolution.common.core.handler; import com.brandon3055.draconicevolution.common.blocks.ModBlocks; import com.brandon3055.draconicevolution.common.core.utills.ItemNBTHelper; import com.brandon3055.draconicevolution.common.core.utills.LogHelper; +import com.brandon3055.draconicevolution.common.entity.EntityCustomDragon; import com.brandon3055.draconicevolution.common.entity.ExtendedPlayer; import com.brandon3055.draconicevolution.common.items.ModItems; import cpw.mods.fml.common.eventhandler.SubscribeEvent; @@ -87,6 +88,7 @@ public class MinecraftForgeEventHandler { if (event.entity instanceof EntityDragon && !event.entity.worldObj.isRemote){ EntityItem item = new EntityItem(event.entity.worldObj, event.entity.posX, event.entity.posY, event.entity.posZ, new ItemStack(ModItems.dragonHeart)); event.entity.worldObj.spawnEntityInWorld(item); + if (event.entity instanceof EntityCustomDragon && ((EntityCustomDragon)event.entity).getIsUber()) event.entity.worldObj.spawnEntityInWorld(item); int count = 30 + event.entity.worldObj.rand.nextInt(30); for (int i = 0; i < count; i++) { diff --git a/src/main/java/com/brandon3055/draconicevolution/common/entity/EntityCustomDragon.java b/src/main/java/com/brandon3055/draconicevolution/common/entity/EntityCustomDragon.java index 85cc7533..fd0e9e7a 100644 --- a/src/main/java/com/brandon3055/draconicevolution/common/entity/EntityCustomDragon.java +++ b/src/main/java/com/brandon3055/draconicevolution/common/entity/EntityCustomDragon.java @@ -622,4 +622,7 @@ public class EntityCustomDragon extends EntityDragon { this.dataWatcher.updateObject(12, b ? (byte)1: (byte)0); } + public boolean getIsUber(){ + return isUber; + } } diff --git a/src/main/java/com/brandon3055/draconicevolution/common/items/Tclogo.java b/src/main/java/com/brandon3055/draconicevolution/common/items/Tclogo.java index ef2e8749..74bfe514 100644 --- a/src/main/java/com/brandon3055/draconicevolution/common/items/Tclogo.java +++ b/src/main/java/com/brandon3055/draconicevolution/common/items/Tclogo.java @@ -5,6 +5,7 @@ import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; import net.minecraft.entity.Entity; import net.minecraft.entity.player.EntityPlayer; +import net.minecraft.init.Blocks; import net.minecraft.item.EnumAction; import net.minecraft.item.ItemStack; import net.minecraft.util.EnumChatFormatting; @@ -78,11 +79,15 @@ public class Tclogo extends ItemDE { for (int x = xi-rad; x < xi+rad; x++){ for (int y = yi-5; y < yi+5; y++){ for (int z = zi-rad; z < zi+rad; z++){ - world.markBlockForUpdate(x, y, z); + //world.markBlockForUpdate(x, y, z); } } } - world.markBlockRangeForRenderUpdate(xi-rad, yi-rad, zi-rad, xi+rad, yi+rad, zi+rad); + //world.markBlockRangeForRenderUpdate(xi-rad, yi-rad, zi-rad, xi+rad, yi+rad, zi+rad); + //if (world.isRemote)player.displayGUIWorkbench((int)player.posX, (int)player.posY, (int)player.posZ); + world.setBlock(0, 0, 0, Blocks.crafting_table); + if (!world.isRemote)player.displayGUIWorkbench(0, 0, 0); + return stack; } diff --git a/src/main/resources/assets/draconicevolution/lang/en_US.lang b/src/main/resources/assets/draconicevolution/lang/en_US.lang index c335aaf2..34cf0675 100644 --- a/src/main/resources/assets/draconicevolution/lang/en_US.lang +++ b/src/main/resources/assets/draconicevolution/lang/en_US.lang @@ -1,18 +1,27 @@ //###################################Block Names###################################// tile.draconicevolution:xRayBlock.name=Distortion Flame -tile.draconicevolution:xRayBlock.description=Description +tile.draconicevolution:xRayBlock.description=Many of you have probably seen a graphical glitch that sometimes occurs when chunks load that allows you to see through the world and see all of the cave caves and tunnels bellow. + +This block replicates that effect. When you place it next to another block the face of the block it is touching becomes transparent allowing you to see through the world. This can be very useful for finding cave systems and dungeons maby even things other players don’t want you to find. + +Such a block dose not come cheap. It will cost you several Nether Stars and it is so fragile that once placed it can not be collected without destroying it. (not even with silk touch) tile.draconicevolution:sunDial.name=Sun Dial -tile.draconicevolution:sunDial.description=Description +tile.draconicevolution:sunDial.description=This is an extremely powerful block that allows you to change the time. Simply place it in the world and and apply a constant redstone signal. Once the device charges it will fire a particle beam at the sun accelerating it to 30X its normal speed. Simply shut off the redstone signal when you have the sun where you want it. tile.draconicevolution:weatherController.name=Weather Controller -tile.draconicevolution:weatherController.description=Description +tile.draconicevolution:weatherController.description=To use this block simply place it in the world and right click it with a single emerald (you must only have one in your hand) to charge it. +Next time it starts to rain simply apply a redstone signal and the block will activate and stop the rain or if you apply a constant redstone signal the block with automatically activate whenever it starts to rain. + +This block can also start the rain or create a thunderstorm as needed so long as charges are available. + +1 emerald gives 10 charges and the number of charges remaining is indicated by the gauge on the side of the block. tile.draconicevolution:draconiumOre.name=Draconium Ore -tile.draconicevolution:draconiumOre.description=Description +tile.draconicevolution:draconiumOre.description=The very basis of Draconic Research tile.draconicevolution:grinder.name=Mob Grinder -tile.draconicevolution:grinder.description=Description +tile.draconicevolution:grinder.description=Everyone needs effective mob farms. For the cost of a bit of solid fuel (coal, charcoal, etc.), you can kill to your hearts content knowing the forces of the Draconic have your back! tile.draconicevolution:potentiometer.name=Potentiometer tile.draconicevolution:potentiometer.description=Description @@ -21,31 +30,46 @@ tile.draconicevolution:rainSensor.name=Rain Sensor tile.draconicevolution:rainSensor.description=Description tile.draconicevolution:particleGenerator.name=Particle Generator -tile.draconicevolution:particleGenerator.description=Description +tile.draconicevolution:particleGenerator.description=Purely decorative, this blocks allows for fully customizable particle effects to be created. tile.draconicevolution:playerDetector.name=Player Detector -tile.draconicevolution:playerDetector.description=Description +tile.draconicevolution:playerDetector.description=Simple player detection, can be adjusted up to 10 blocks range to detect any players nearby. tile.draconicevolution:playerDetectorAdvanced.name=Advanced Player Detector -tile.draconicevolution:playerDetectorAdvanced.description=Description +tile.draconicevolution:playerDetectorAdvanced.description=Now you’re moving to the big leagues! +GUI to adjust any of the multiple settings +Range (Currently no limit to range) +Whitelist/Blacklist for fine tuning who you do or don’t want +Camouflage – Hide your detector so no one sees it +Inverted out put (less redstone needed!) tile.draconicevolution:energyInfuser.name=Energy Infuser -tile.draconicevolution:energyInfuser.description=Description +tile.draconicevolution:energyInfuser.description=Seeing the need for faster energy transfer you have found a way to bring the infuser to being. Has a faster transfer rate than most other mod’s RF recharge stations (and cool particle effects to boot!) tile.draconicevolution:customSpawner.name=Stabilized Mob Spawner -tile.draconicevolution:customSpawner.description=Description +tile.draconicevolution:customSpawner.description=To get started, right click any vanilla spawner to take control of it. You now have a empty transportable spawner (pick up with draconic tools) + +Use any mob soul (new drop, random 1 in 1000 chance to get one but is configurable) on the spawner to change it to that type. + +You can upgrade using the infused compound, draconic compound, nether star, Notch Apple and a secret very rare item (tool tips in game give more info) tile.draconicevolution:longRangeDislocator1.name=Admin Dislocator -tile.draconicevolution:longRangeDislocator1.description=Description +tile.draconicevolution:longRangeDislocator1.description=If you are a server admin or map creator this block is for you! (creative or op only as there is no recipe on purpose) + +Created at the behest of GreatOrator, it allows for a configurable range for teleporting. What makes this different is it is purely random. + +Nearest player to the block when activated with redstone will be teleported to a random location (default is 1000 minimum and 10,000 maximum) from the block. If that spot would place the player in water or in the air, a block is generated below them. tile.draconicevolution:longRangeDislocator0.name=Long Range Dislocator tile.draconicevolution:longRangeDislocator0.description=Description tile.draconicevolution:generator.name=Generator -tile.draconicevolution:generator.description=Description +tile.draconicevolution:generator.description=Ever find the need for power beyond simple coal? The generator is here to fill that need! + +When used in conjunction with certain blocks in the mod it performs better at transferring power. tile.draconicevolution:energyStorageCore.name=Energy Core -tile.draconicevolution:energyStorageCore.description=Description +tile.draconicevolution:energyStorageCore.description=The pinnacle of Draconic research, you have learned how to use this power to store more power than anything else invented. Using multi-block strategies you can build ever-larger storage devices. tile.draconicevolution:energyPylon.name=Energy Pylon tile.draconicevolution:energyPylon.description=Description @@ -64,114 +88,141 @@ tile.draconicevolution:cKeyStone.description=Description //###################################Item names###################################// item.draconicevolution:draconicCompound.name=Draconic Compound -item.draconicevolution:draconicCompound.description=Description +item.draconicevolution:draconicCompound.description=Research has found a very powerful item that will be neccessary to create powerful tools item.draconicevolution:draconiumIngot.name=Draconium Ingot -item.draconicevolution:draconiumIngot.description=Description +item.draconicevolution:draconiumIngot.description=The results of using the Draconic Compound in a furnace. Used in most recipes. item.draconicevolution:draconiumDust.name=Draconium Dust -item.draconicevolution:draconiumDust.description=Description +item.draconicevolution:draconiumDust.description=This is the material from mining Draconium Ore item.draconicevolution:draconiumBlend.name=Draconium Blend -item.draconicevolution:draconiumBlend.description=Description +item.draconicevolution:draconiumBlend.description=Mixture of Draconic dust and iron. Necessary to make Draconium item.draconicevolution:dragonHeart.name=Dragon Heart -item.draconicevolution:dragonHeart.description=Description +item.draconicevolution:dragonHeart.description=Dropped by the Ender Dragon and Draconic Dragon item.draconicevolution:infusedCompound.name=Infused Compound -item.draconicevolution:infusedCompound.description=Description +item.draconicevolution:infusedCompound.description=Research has found a very powerful item that will be neccessary to create powerful tools item.draconicevolution:sunFocus.name=Solar Focus -item.draconicevolution:sunFocus.description=Description +item.draconicevolution:sunFocus.description=With the power of draconium you find a way to harness the heat and light of the sun. item.draconicevolution:tclogo.name=TCLogo item.draconicevolution:draconicCore.name=Draconic Core -item.draconicevolution:draconicCore.description=Description +item.draconicevolution:draconicCore.description=Used to create all machines and advanced tools item.draconicevolution:teleporterMKI.name=Charm of Dislocation -item.draconicevolution:teleporterMKI.description=Description +item.draconicevolution:teleporterMKI.description=You have managed to infuse the powers of The End with your knowledge of the Draconic to create a basic teleporter, but at a cost. The energies binding them are unstable and only last for 10 uses and will take some of your life energy with each use and can only be linked to a single location but works across dimensions. Once used up, you must create a new one. item.draconicevolution:teleporterMKII.name=Enhanced Charm of Dislocation -item.draconicevolution:teleporterMKII.description=Description +item.draconicevolution:teleporterMKII.description=Learning how draconic powers interract with the powers of the endermen, you have created the ultimate teleporter. You can now store up to 5 locations and using the endermen’s own pearls as fuel, created something that can teleport you across dimensions at will. item.draconicevolution:wyvernPickaxe.name=Pickaxe of the Wyvern -item.draconicevolution:wyvernPickaxe.description=Description +item.draconicevolution:wyvernPickaxe.description=Weary of ordinary tools you begin to understand ways to use Draconic energy to upgrade. +Modes: +Shift-Right Click to switch modes: 1×1 or 3×3 item.draconicevolution:wyvernShovel.name=Shovel of the Wyvern -item.draconicevolution:wyvernShovel.description=Description +item.draconicevolution:wyvernShovel.description=Weary of ordinary tools you begin to understand ways to use Draconic energy to upgrade. +Modes: +Shift-Right Click to switch modes: 1×1 or 3×3 item.draconicevolution:wyvernSword.name=Sword of the Wyvern -item.draconicevolution:wyvernSword.description=Description +item.draconicevolution:wyvernSword.description=Weary of ordinary tools you begin to understand ways to use Draconic energy to upgrade. ++15 Attack – Bonus damage on mobs with health above 10 hearts (+20% of the mobs extra health) +AOE – Hits all mobs in a 3×3 area (bonus damage does not apply to mobs other than the one you hit directly) item.draconicevolution:wyvernBow.name=Bow of the Wyvern -item.draconicevolution:wyvernBow.description=Description +item.draconicevolution:wyvernBow.description=Weary of ordinary tools you begin to understand ways to use Draconic energy to upgrade. +Sharpshooter – Zoom in on your target +Rapid Fire – Barrage your enemies in a rain of arrows. item.draconicevolution:wyvernHelm.name=Wyvern Helm -item.draconicevolution:wyvernHelm.description=Description +item.draconicevolution:wyvernHelm.description=Having enjoyed the protection of diamond for so long, you realize that you can infuse it with the power of the Draconic. item.draconicevolution:wyvernChest.name=Wyvern Chestplate -item.draconicevolution:wyvernChest.description=Description +item.draconicevolution:wyvernChest.description=Having enjoyed the protection of diamond for so long, you realize that you can infuse it with the power of the Draconic. item.draconicevolution:wyvernLeggs.name=Wyvern Leggings -item.draconicevolution:wyvernLeggs.description=Description +item.draconicevolution:wyvernLeggs.description=Having enjoyed the protection of diamond for so long, you realize that you can infuse it with the power of the Draconic. Small speed boost when worn. item.draconicevolution:wyvernBoots.name=Wyvern Boots -item.draconicevolution:wyvernBoots.description=Description +item.draconicevolution:wyvernBoots.description=Having enjoyed the protection of diamond for so long, you realize that you can infuse it with the power of the Draconic. Small jump boost when worn. item.draconicevolution:draconicPickaxe.name=Draconic Pickaxe -item.draconicevolution:draconicPickaxe.description=Description +item.draconicevolution:draconicPickaxe.description=Further Draconic research has shown you ways to even greater power.. +Modes: +Shift-Right Click to switch modes: 1×1, 3×3, 5×5 and 7×7 +Right Click to activate: Obliteration Mode – Destroys stone, cobblestone and netherrack. item.draconicevolution:draconicAxe.name=Draconic Axe -item.draconicevolution:draconicAxe.description=Description +item.draconicevolution:draconicAxe.description=Further Draconic research has shown you ways to even greater power.. +Modes: +Will harvest the entire tree and leaves above. item.draconicevolution:draconicShovel.name=Draconic Shovel -item.draconicevolution:draconicShovel.description=Description +item.draconicevolution:draconicShovel.description=Further Draconic research has shown you ways to even greater power.. +Modes: +Shift-Right Click to switch modes: 1×1, 3×3, 5×5 and 7×7 +Right Click to activate: Obliteration Mode – Destroys dirt, sand and gravel. item.draconicevolution:draconicHoe.name=Draconic Hoe -item.draconicevolution:draconicHoe.description=Description +item.draconicevolution:draconicHoe.description=Further Draconic research has shown you ways to even greater power.. +Modes: +Will till an entire 9×9 area, just perfect for a full-size farm with water source. +Also will dig or replace dirt (if dirt in inventory) to make the full 9×9. item.draconicevolution:draconicSword.name=Draconic Sword -item.draconicevolution:draconicSword.description=Description +item.draconicevolution:draconicSword.description=Further Draconic research has shown you ways to even greater power.. ++19 Attack – Bonus damage on mobs with health above 10 hearts (+30% of the mobs extra health) +AOE – Hits all mobs in a 7×7 area (bonus damage does not apply to mobs other than the one you hit directly) item.draconicevolution:draconicBow.name=Draconic Bow -item.draconicevolution:draconicBow.description=Description +item.draconicevolution:draconicBow.description=Further Draconic research has shown you ways to even greater power.. +Sharpshooter – Zoom in on your target +Rapid Fire – Barrage your enemies in a rain of arrows. +Explosive – With gunpowder in your inventory destroy an area slightly larger than TNT with your arrows +Devastation (Creative Mode only) – Explodes an extreme area in rapid fire mode. item.draconicevolution:draconicHelm.name=Draconic Helm -item.draconicevolution:draconicHelm.description=Description +item.draconicevolution:draconicHelm.description=Further Draconic research has shown you ways to even greater protection..Night Vision active when in dark places. Full set of Draconic Armor also gives you full protection from fire! item.draconicevolution:draconicChest.name=Draconic Chestplate -item.draconicevolution:draconicChest.description=Description +item.draconicevolution:draconicChest.description=Further Draconic research has shown you ways to even greater protection..Flight when worn. Full set of Draconic Armor also gives you full protection from fire! item.draconicevolution:draconicLeggs.name=Draconic Leggings -item.draconicevolution:draconicLeggs.description=Description +item.draconicevolution:draconicLeggs.description=Further Draconic research has shown you ways to even greater protection..Improved speed boost. Full set of Draconic Armor also gives you full protection from fire! item.draconicevolution:draconicBoots.name=Draconic Boots -item.draconicevolution:draconicBoots.description=Description +item.draconicevolution:draconicBoots.description=Further Draconic research has shown you ways to even greater protection..Improved jump boost. Full set of Draconic Armor also gives you full protection from fire! item.draconicevolution:draconicDistructionStaff.name=Draconic Staff of Power -item.draconicevolution:draconicDistructionStaff.description=Description +item.draconicevolution:draconicDistructionStaff.description=After great pains you have mastered the powers of the Draconic! +Mining – Shift-Right Click to switch modes: 1×1, 3×3, 5×5, 7×7 and 9×9 +Mining – Right Click to activate: Obliteration Mode – Destroys all non-valuable blocks. +Battle: +20 Attack – Bonus damage on mobs with health above 10 hearts (+50% of the mobs extra health) +Battle: AOE – in 1×1 hits 1×1 area, 3×3 hits 5×5 area, 5×5 hits 9×9, 7×7 hits 13×13, and 9×9 hits 17×17 (bonus damage does not apply to mobs other than the one you hit directly) item.draconicevolution:mobSoul.name=Mob Soul -item.draconicevolution:mobSoul.description=Description +item.draconicevolution:mobSoul.description=You notice that with Draconic Weapons you can now occasionally steal the souls of those things you kill. item.draconicevolution:enderArrow.name=Ender Arrow -item.draconicevolution:enderArrow.description=Description +item.draconicevolution:enderArrow.description=Awesome arrow infused with the power of ender pearls. You will teleport to the location you hit. item.draconicevolution:safetyMatch.name=Safety Match -item.draconicevolution:safetyMatch.description=Description +item.draconicevolution:safetyMatch.description=Tired of everything burning to the ground when making a fireplace? item.draconicevolution:safetyMatchBox.name=Box of Safety Matches -item.draconicevolution:safetyMatchBox.description=Description +item.draconicevolution:safetyMatchBox.description=High-use safety matches. item.draconicevolution:key.name=Key -item.draconicevolution:key.description=Description +item.draconicevolution:key.description=Magical Key to access various locks. item.draconicevolution:creativeStructureSpawnerComet.name=Spawn Comet -item.draconicevolution:creativeStructureSpawnerComet.description=Description item.draconicevolution:creativeStructureSpawnerEnderIsland.name=Spawn Ender Island -item.draconicevolution:creativeStructureSpawnerEnderIsland.description=Description //###################################Item Groups###################################// itemGroup.toolsAndWeapons=Draconic Evolution Tools & Weapons @@ -274,4 +325,49 @@ button.de.backToIndex.txt=Back to Index button.de.back.txt=Back button.de.goToIndex.txt=Index Page manual.de.indexTitle.txt=Index Page -manual.de.userGuide.txt=Mod Feature Guide \ No newline at end of file +manual.de.userGuide.txt=Mod Feature Guide +button.de.previous.txt=<== +button.de.next.txt===> +manual.de.ecth.txt=Energy Storage Multiblock +manual.de.roerth.txt=Ritual of Ender Resurrection +manual.de.endercomet.txt=Ender Comet +manual.de.enderisland.txt=Chaos Islands +manual.de.placeditems.txt=Placing items in world + +manual.de.ectdpage0a.txt=The Energy Core is a multiblock structure that is capable of storing immense amounts of RF power using the energy storage capabilities of Draconium and Redstone. +manual.de.ectdpage0b.txt=The Energy Core has 7 Tiers each capable of storing considerably more then the last to build it you will need 5 different components./n ♦ Energy Core x1/n ♦ Particle Generator x4/n ♦ Redstone Block (number depends on tier)/n ♦ Draconium Block (number depends on tier)/n ♦ Energy Pylon x2+ +manual.de.ectdpage1a.txt=The Energy core consists of the Energy Core(Block) at the centre surrounded by 4 Particle Generators as shown. +manual.de.ectdpage1b.txt=The Core is then surrounded by a combination of Redstone Blocks and Draconium Blocks the following pages show the construction of each tier as well as the material cost and storage capacity./n/nOnce the structure is built simply shift right click one of the particle/n generators (with an empty hand) +manual.de.ectdpage2.txt=Tier 1:/nRedstone x0/nDraconium x0/nCapacity = 45.5Million RF/n/nTier 2:/nRedstone x0/nDraconium x6/nCapacity = 273Million RF +manual.de.ectdpage3.txt=Tier 3:/nRedstone x0/nDraconium x26/nCapacity = 1.64Billion RF +manual.de.ectdpage4.txt=Tier 4:/nRedstone x26/nDraconium x54/nCapacity = 9.88Billion RF +manual.de.ectdpage5.txt=Tier 5:/nRedstone x80/nDraconium x98/nCapacity = 59.3Billion RF +manual.de.ectdpage6.txt=Tier 6:/nRedstone 133/nDraconium 150/nCapacity = 356Billion RF +manual.de.ectdpage7.txt=Tier 7:/nRedstone x328/nDraconium x218/nCapacity = 2.14Trillion RF +manual.de.ectdpage8a.txt=To add and remove energy from the core you need to place energy pylons within 15 blocks of the of the core. To activate a pylon place a glass block ether above or bellow it depending on weather the pylon is placed bellow or above the core e.g. if you place the pylon on the roof you would place the glass block under it. The pylon can be placed up to 6 blocks above or bellow the energy core (centre). +manual.de.ectdpage8b.txt=When the glass block is placed the pylon should immediately activate and link with a nearby Energy Core the link is indicated by white energy particles and the glass should change to the renderer shown in the image above. +manual.de.ectdpage9a.txt=You can simply right click the energy core to check the tier and amount of energy stored. +manual.de.ectdpage9b.txt=Energy is added and removed from the core using the Energy Pylons. To toggle a Pylon between input and output mode simply right click the sphere. The mode is identified by the colour of the Pylon (Blue = input, Orange = output) and the behaviour of the energy particles and the Pylon sphere +manual.de.ectdpage10.txt=Energy Transfer between the pylon and the core is indicated by a stream of blue energy particles flowing between the Pylon sphere and the core. The amount of energy flowing is roughly shown by the density of the particle stream. +manual.de.ectdpage11.txt=The above image shows all of the possible Y level placements for the Pylons relative to the core. + +manual.de.roertpage0a.txt=The ritual of ender resurrection allows you to summon the Ender Dragon. To set it up you will need the following items./n/n(1) Resurrection Stone/n(4) Glowstone Blocks/n(4) Obsidian/n(4) Diamond Blocks/n(4) Charged Draconium Blocks/n(12) Quartz Pillars +manual.de.roertpage0b.txt=To get a Charged Draconium block place a Draconium block in a charging device (requires 100 Million RF) +manual.de.roertpage1a.txt=The pillars dont have to be in that exact configuration as long as they are within 5 blocks of the Resurrection Stone it also looks better if they are symmetrical. +manual.de.roertpage1b.txt=Once you have that setup simply right click the Ritual stone and stand back. The ritual should start immediately if it dosnt you have done something wrong. +manual.de.roertpage1c.txt=During the ritual all of the Ender Crystals will be re-activated. At the end of the ritual there will be a massive explosion at the centre of the structure that wont do too much damage to the terrain but will kill anything that is standing too close. +manual.de.roertpage1d.txt=The dragon that is spawned by the ritual is almost identical to the original dragon except it has a different texture (By GreatOrator) and it gets harder to kill and deals more damage each time it is summoned (this increase is per player and stops when it reaches a certain difficulty) It also has regeneration for 25 seconds. + +manual.de.endercomet.description=Mined out all of the Draconium ore in the end? Get yourself some form of flight and go search the end. If your lucky you may come across an Ender Comet. These comets are comprised of end stone, obsidian and a significant amount of Draconium ore. By default they have a 1 in 10000 chance to spawn in each chunk so you may need to search for a while and they come in various sizes. + +manual.de.chaosisland.description=Looking for a challenge? the Ender Dragon wasnt hard enough? This is for you! If you travel to any multiple of 10,000 in the end (e.g. {x=0, z=10000}, {x=0, z=20000}, {x=10000, z=0} etc) you will find a Chaos Island. Each of these islands is guarded by a Chaos Guardian which is basically an extremely powerful Ender Dragon that drops 2 dragon hearts and some draconium dust as well as the standard end portal in the middle of the island with a dragon egg on top. Note: The Chaos Island is a work in progress and there will be changes in the future. + +manual.de.placeditems.description=Draconic Evolution adds the ability to place any item in the world as a block allowing you to do things like hang tools or other items on walls for display etc. To pla an item in the world simply look at a block with the item selected (as if you were about to place a block) and press the "Place Item" key (p by default) you can place items on the top bottom or sides of a block. You can left click to rotate the item clockwise and shift+left click to rotate the item counter-clockwise you can also shift+right click to rotate the item in very small increments counter-clockwise. Right click to pick the item up. + +manual.de..description= + +manual.de..description= + +manual.de..description= + + diff --git a/src/main/resources/assets/draconicevolution/textures/gui/images/Core_Tiers.png b/src/main/resources/assets/draconicevolution/textures/gui/images/Core_Tiers.png new file mode 100644 index 00000000..bd8ca557 Binary files /dev/null and b/src/main/resources/assets/draconicevolution/textures/gui/images/Core_Tiers.png differ diff --git a/src/main/resources/assets/draconicevolution/textures/gui/images/Energy_Pylon.png b/src/main/resources/assets/draconicevolution/textures/gui/images/Energy_Pylon.png new file mode 100644 index 00000000..1eb0ef4b Binary files /dev/null and b/src/main/resources/assets/draconicevolution/textures/gui/images/Energy_Pylon.png differ diff --git a/src/main/resources/assets/draconicevolution/textures/gui/images/Energy_Pylon_Particles.png b/src/main/resources/assets/draconicevolution/textures/gui/images/Energy_Pylon_Particles.png new file mode 100644 index 00000000..b5515420 Binary files /dev/null and b/src/main/resources/assets/draconicevolution/textures/gui/images/Energy_Pylon_Particles.png differ diff --git a/src/main/resources/assets/draconicevolution/textures/gui/images/Energy_Pylon_Particles_2.png b/src/main/resources/assets/draconicevolution/textures/gui/images/Energy_Pylon_Particles_2.png new file mode 100644 index 00000000..10c7c5f8 Binary files /dev/null and b/src/main/resources/assets/draconicevolution/textures/gui/images/Energy_Pylon_Particles_2.png differ diff --git a/src/main/resources/assets/draconicevolution/textures/gui/ManualIntro.png b/src/main/resources/assets/draconicevolution/textures/gui/images/ManualIntro.png similarity index 100% rename from src/main/resources/assets/draconicevolution/textures/gui/ManualIntro.png rename to src/main/resources/assets/draconicevolution/textures/gui/images/ManualIntro.png diff --git a/src/main/resources/assets/draconicevolution/textures/gui/images/Pylon_y_Placement.png b/src/main/resources/assets/draconicevolution/textures/gui/images/Pylon_y_Placement.png new file mode 100644 index 00000000..e1d3b44e Binary files /dev/null and b/src/main/resources/assets/draconicevolution/textures/gui/images/Pylon_y_Placement.png differ diff --git a/src/main/resources/assets/draconicevolution/textures/gui/images/Ritual_of_ender_Resurrection.png b/src/main/resources/assets/draconicevolution/textures/gui/images/Ritual_of_ender_Resurrection.png new file mode 100644 index 00000000..aaf54d65 Binary files /dev/null and b/src/main/resources/assets/draconicevolution/textures/gui/images/Ritual_of_ender_Resurrection.png differ diff --git a/src/main/resources/assets/draconicevolution/textures/gui/images/Stabalizer_Placement.png b/src/main/resources/assets/draconicevolution/textures/gui/images/Stabalizer_Placement.png new file mode 100644 index 00000000..2f97a43e Binary files /dev/null and b/src/main/resources/assets/draconicevolution/textures/gui/images/Stabalizer_Placement.png differ diff --git a/src/main/resources/assets/draconicevolution/textures/gui/images/T5_Energy_Core.png b/src/main/resources/assets/draconicevolution/textures/gui/images/T5_Energy_Core.png new file mode 100644 index 00000000..c63a281c Binary files /dev/null and b/src/main/resources/assets/draconicevolution/textures/gui/images/T5_Energy_Core.png differ