aboutsummaryrefslogtreecommitdiff
path: root/src/Java/gtPlusPlus/core/gui
diff options
context:
space:
mode:
authorAlkalus <draknyte1@hotmail.com>2017-11-12 14:49:30 +1000
committerAlkalus <draknyte1@hotmail.com>2017-11-12 14:49:30 +1000
commitba953bf8c399cbb0fceccb44495bb88c4cc64213 (patch)
tree88170ea13fca1e1d4d078798c7a1c5293d53aeb5 /src/Java/gtPlusPlus/core/gui
parent0e508a2821b8f51910c448a2385f1737a874d894 (diff)
downloadGT5-Unofficial-ba953bf8c399cbb0fceccb44495bb88c4cc64213.tar.gz
GT5-Unofficial-ba953bf8c399cbb0fceccb44495bb88c4cc64213.tar.bz2
GT5-Unofficial-ba953bf8c399cbb0fceccb44495bb88c4cc64213.zip
+ New modular table gui texture.
+ Added 9 storage slots for components to the modularity table. + Added a processing time to Modular upgrades.
Diffstat (limited to 'src/Java/gtPlusPlus/core/gui')
-rw-r--r--src/Java/gtPlusPlus/core/gui/machine/GUI_ModularityTable.java22
1 files changed, 18 insertions, 4 deletions
diff --git a/src/Java/gtPlusPlus/core/gui/machine/GUI_ModularityTable.java b/src/Java/gtPlusPlus/core/gui/machine/GUI_ModularityTable.java
index 41ab5cce49..a6fc8e70af 100644
--- a/src/Java/gtPlusPlus/core/gui/machine/GUI_ModularityTable.java
+++ b/src/Java/gtPlusPlus/core/gui/machine/GUI_ModularityTable.java
@@ -9,23 +9,37 @@ import gtPlusPlus.core.lib.CORE;
import gtPlusPlus.core.tileentities.machines.TileEntityModularityTable;
import net.minecraft.client.gui.GuiButton;
import net.minecraft.client.gui.inventory.GuiContainer;
+import net.minecraft.client.resources.I18n;
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");
-
+ private static final ResourceLocation craftingTableGuiTextures = new ResourceLocation(CORE.MODID, "textures/gui/ModularityTable.png");
+ private Container_ModularityTable mThisContainer;
+ private TileEntityModularityTable mThisTile;
+ private int mRecipeTime = -1;
+
public GUI_ModularityTable(final InventoryPlayer player_inventory, final TileEntityModularityTable tile){
super(new Container_ModularityTable(player_inventory, tile));
+ this.mThisContainer = tile.getContainer();
+ this.mThisTile = tile;
+ if (this.mThisTile.getRecipeTime() > -1){
+ this.mRecipeTime = this.mThisTile.getRecipeTime();
+ }
}
@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);
+ this.fontRendererObj.drawString(I18n.format("Modularity Table", new Object[0]), 8, 6, 4210752);
+ if (mRecipeTime > -1){
+ this.fontRendererObj.drawString(I18n.format("Time", new Object[0]), 8, 6, 4210752);
+ this.fontRendererObj.drawString(I18n.format("Remaining", new Object[0]), 8, 6, 4210752);
+ this.fontRendererObj.drawString(I18n.format(""+this.mRecipeTime, new Object[0]), 8, 6, 4210752);
+ }
+ this.fontRendererObj.drawString(I18n.format("container.inventory", new Object[0]), 8, this.ySize - 96 + 2, 4210752);
}