From bad0601f3e340e66ce164d124cb7105445158981 Mon Sep 17 00:00:00 2001 From: Alkalus Date: Sat, 11 Nov 2017 02:36:20 +1000 Subject: + More work on modular stuff. --- .../core/gui/machine/GUI_ModularityTable.java | 38 ++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 src/Java/gtPlusPlus/core/gui/machine/GUI_ModularityTable.java (limited to 'src/Java/gtPlusPlus/core/gui/machine') diff --git a/src/Java/gtPlusPlus/core/gui/machine/GUI_ModularityTable.java b/src/Java/gtPlusPlus/core/gui/machine/GUI_ModularityTable.java new file mode 100644 index 0000000000..d6454cdd03 --- /dev/null +++ b/src/Java/gtPlusPlus/core/gui/machine/GUI_ModularityTable.java @@ -0,0 +1,38 @@ +package gtPlusPlus.core.gui.machine; + +import org.lwjgl.opengl.GL11; + +import cpw.mods.fml.relauncher.Side; +import cpw.mods.fml.relauncher.SideOnly; +import gtPlusPlus.core.container.Container_ModularityTable; +import gtPlusPlus.core.lib.CORE; +import gtPlusPlus.core.tileentities.machines.TileEntityModularityTable; +import net.minecraft.client.gui.inventory.GuiContainer; +import net.minecraft.entity.player.InventoryPlayer; +import net.minecraft.util.ResourceLocation; + +@SideOnly(Side.CLIENT) +public class GUI_ModularityTable extends GuiContainer { + + private static final ResourceLocation craftingTableGuiTextures = new ResourceLocation(CORE.MODID, "textures/gui/ProjectTable.png"); + + public GUI_ModularityTable(final InventoryPlayer player_inventory, final TileEntityModularityTable tile){ + super(new Container_ModularityTable(player_inventory, tile)); + } + + + @Override + protected void drawGuiContainerForegroundLayer(final int i, final int j){ + } + + + @Override + protected void drawGuiContainerBackgroundLayer(final float f, final int i, final int j){ + GL11.glColor4f(1.0f, 1.0f, 1.0f, 1.0f); + this.mc.renderEngine.bindTexture(craftingTableGuiTextures); + final int x = (this.width - this.xSize) / 2; + final int y = (this.height - this.ySize) / 2; + this.drawTexturedModalRect(x, y, 0, 0, this.xSize, this.ySize); + } + +} \ No newline at end of file -- cgit