diff options
author | Alkalus <draknyte1@hotmail.com> | 2017-11-11 21:39:21 +1000 |
---|---|---|
committer | Alkalus <draknyte1@hotmail.com> | 2017-11-11 21:39:21 +1000 |
commit | 3e8d2c58af25cad0542cdc77b5056031c5ce186d (patch) | |
tree | e04a85bd4faad8349782582a16ee0d3c8b2d8679 /src/Java/gtPlusPlus/core/gui | |
parent | 12c0d5094f1b1d6b534727c6824ff6897bed8370 (diff) | |
download | GT5-Unofficial-3e8d2c58af25cad0542cdc77b5056031c5ce186d.tar.gz GT5-Unofficial-3e8d2c58af25cad0542cdc77b5056031c5ce186d.tar.bz2 GT5-Unofficial-3e8d2c58af25cad0542cdc77b5056031c5ce186d.zip |
+ More modular work.
Diffstat (limited to 'src/Java/gtPlusPlus/core/gui')
-rw-r--r-- | src/Java/gtPlusPlus/core/gui/machine/GUI_ModularityTable.java | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/src/Java/gtPlusPlus/core/gui/machine/GUI_ModularityTable.java b/src/Java/gtPlusPlus/core/gui/machine/GUI_ModularityTable.java index a89fd8142c..41ab5cce49 100644 --- a/src/Java/gtPlusPlus/core/gui/machine/GUI_ModularityTable.java +++ b/src/Java/gtPlusPlus/core/gui/machine/GUI_ModularityTable.java @@ -7,7 +7,6 @@ import cpw.mods.fml.relauncher.SideOnly; import gtPlusPlus.core.container.Container_ModularityTable; import gtPlusPlus.core.lib.CORE; import gtPlusPlus.core.tileentities.machines.TileEntityModularityTable; -import gtPlusPlus.core.util.Utils; import net.minecraft.client.gui.GuiButton; import net.minecraft.client.gui.inventory.GuiContainer; import net.minecraft.entity.player.InventoryPlayer; @@ -20,12 +19,14 @@ public class GUI_ModularityTable extends GuiContainer { public GUI_ModularityTable(final InventoryPlayer player_inventory, final TileEntityModularityTable tile){ super(new Container_ModularityTable(player_inventory, tile)); - Utils.LOG_INFO("valid gui created"); } @Override protected void drawGuiContainerForegroundLayer(final int i, final int j){ + //this.fontRendererObj.drawString(I18n.format("Workbench", new Object[0]), 28, 6, 4210752); + //this.fontRendererObj.drawString(I18n.format("container.inventory", new Object[0]), 8, this.ySize - 96 + 2, 4210752); + } @@ -38,14 +39,25 @@ public class GUI_ModularityTable extends GuiContainer { this.drawTexturedModalRect(x, y, 0, 0, this.xSize, this.ySize); } + + //This method is called when the Gui is first called! @Override public void initGui(){ + //You have to add this line for the Gui to function properly! super.initGui(); + + //The parameters of GuiButton are(id, x, y, width, height, text); + //this.buttonList.add(new GuiButton( 1, 367, 132, 18, 18, "X")); + //this.buttonList.add(new GuiButton( 2, 385, 132, 18, 18, "Y")); + //NOTE: the id always has to be different or else it might get called twice or never! + + //Add any other buttons here too! } @Override protected void actionPerformed(final GuiButton B){ - + + } }
\ No newline at end of file |