Added multiblock page (WIP)

This commit is contained in:
gigabit101 2015-08-17 18:15:19 +01:00
parent 834b14bc31
commit e8e78c1099
2 changed files with 37 additions and 1 deletions

View file

@ -18,6 +18,7 @@ import techreborn.pda.pages.ContentsPage;
import techreborn.pda.pages.CraftingInfoPage;
import techreborn.pda.pages.IndexPage;
import techreborn.pda.pages.ItemsPage;
import techreborn.pda.pages.MultiBlockPage;
import techreborn.pda.pages.TitledPage;
import techreborn.pda.pages.VersionPage;
@ -50,8 +51,8 @@ public class GuiManual extends GuiScreen{
pageCollection.addPage(new ItemsPage("MACHINES", pageCollection, "MACHINES_PAGE"));
pageCollection.addPage(new ItemsPage("POWER_GENERATION", pageCollection, "POWER_GENERATION_PAGE"));
pageCollection.addPage(new ItemsPage("POWER_STORAGE", pageCollection, "POWER_STORAGE_PAGE"));
pageCollection.addPage(new ItemsPage("MULTIBLOCK", pageCollection, "MULTIBLOCK_PAGE"));
pageCollection.addPage(new VersionPage("VERSION", pageCollection, "VERSION PAGE", 777777));
pageCollection.addPage(new MultiBlockPage("MULTIBLOCKS", pageCollection, "MULTIBLOCK_PAGE"));
pageCollection.addPage(new CraftingInfoPage("POWER_STORAGE_PAGE."+getNextPageIndex(), pageCollection, new ItemStack(ModBlocks.Aesu), ""));
pageCollection.addPage(new CraftingInfoPage("MACHINES_PAGE."+getNextPageIndex(), pageCollection, new ItemStack(ModBlocks.AlloyFurnace), ""));

View file

@ -0,0 +1,35 @@
package techreborn.pda.pages;
import org.lwjgl.opengl.GL11;
import net.minecraft.client.Minecraft;
import net.minecraft.client.renderer.entity.RenderItem;
import net.minecraft.item.ItemStack;
import net.minecraft.util.ResourceLocation;
import techreborn.init.ModBlocks;
import techreborn.pda.PageCollection;
public class MultiBlockPage extends TitledPage{
public static ResourceLocation test = new ResourceLocation("techreborn:textures/pda/multiblocks/base.png");
public MultiBlockPage(String name, PageCollection collection, String unlocalizedTitle) {
super(name, false, collection, unlocalizedTitle, 777777);
}
@Override
public void initGui() {
super.initGui();
}
@Override
public void drawBackground(int p_146278_1_) {
super.drawBackground(p_146278_1_);
}
@Override
public void renderOverlayComponents(Minecraft minecraft, int offsetX, int offsetY, int mouseX, int mouseY) {
super.renderOverlayComponents(minecraft, offsetX, offsetY, mouseX, mouseY);
this.drawCenteredString(fontRendererObj, "TODO", offsetX + 120, offsetY + 130, 777777);
}
}