aboutsummaryrefslogtreecommitdiff
path: root/src/Java/gtPlusPlus/xmod/gregtech/api/gui
diff options
context:
space:
mode:
authorDraknyte1 <Draknyte1@hotmail.com>2017-06-06 21:06:59 +1000
committerDraknyte1 <Draknyte1@hotmail.com>2017-06-06 21:06:59 +1000
commit69e8f8ad49015fce2480113f389ce464f353badf (patch)
treef07b7bcd6957f89a0ae2bfc98c3ce7d7981eec00 /src/Java/gtPlusPlus/xmod/gregtech/api/gui
parent0f6870b551e1b18a05036b1656d6dfbf847a6aca (diff)
downloadGT5-Unofficial-69e8f8ad49015fce2480113f389ce464f353badf.tar.gz
GT5-Unofficial-69e8f8ad49015fce2480113f389ce464f353badf.tar.bz2
GT5-Unofficial-69e8f8ad49015fce2480113f389ce464f353badf.zip
$ Fixed the Advanced Boiler GUI.
+ Added a texture for Boiler Chassis. % Tweaked Dehydration Coil/Wire colours.
Diffstat (limited to 'src/Java/gtPlusPlus/xmod/gregtech/api/gui')
-rw-r--r--src/Java/gtPlusPlus/xmod/gregtech/api/gui/GUI_AdvancedBoiler.java44
1 files changed, 44 insertions, 0 deletions
diff --git a/src/Java/gtPlusPlus/xmod/gregtech/api/gui/GUI_AdvancedBoiler.java b/src/Java/gtPlusPlus/xmod/gregtech/api/gui/GUI_AdvancedBoiler.java
new file mode 100644
index 0000000000..2d00f98d40
--- /dev/null
+++ b/src/Java/gtPlusPlus/xmod/gregtech/api/gui/GUI_AdvancedBoiler.java
@@ -0,0 +1,44 @@
+package gtPlusPlus.xmod.gregtech.api.gui;
+
+import gregtech.api.gui.GT_GUIContainerMetaTile_Machine;
+import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
+import gregtech.common.gui.GT_Container_Boiler;
+import net.minecraft.entity.player.InventoryPlayer;
+
+public class GUI_AdvancedBoiler
+ extends GT_GUIContainerMetaTile_Machine {
+ public GUI_AdvancedBoiler(InventoryPlayer aInventoryPlayer, IGregTechTileEntity aTileEntity, String aTextureName, int aSteamCapacity) {
+ super(new GT_Container_Boiler(aInventoryPlayer, aTileEntity, aSteamCapacity), "miscutils:textures/gui/" + aTextureName);
+ }
+
+ @Override
+ protected void drawGuiContainerForegroundLayer(int par1, int par2) {
+ this.fontRendererObj.drawString("Boiler", 8, 4, 4210752);
+ }
+
+ @Override
+ protected void drawGuiContainerBackgroundLayer(float par1, int par2, int par3) {
+ super.drawGuiContainerBackgroundLayer(par1, par2, par3);
+ int x = (this.width - this.xSize) / 2;
+ int y = (this.height - this.ySize) / 2;
+ drawTexturedModalRect(x, y, 0, 0, this.xSize, this.ySize);
+ if (this.mContainer != null) {
+ int tScale = ((GT_Container_Boiler) this.mContainer).mSteamAmount;
+ if (tScale > 0) {
+ drawTexturedModalRect(x + 70, y + 25 + 54 - tScale, 194, 54 - tScale, 10, tScale);
+ }
+ tScale = ((GT_Container_Boiler) this.mContainer).mWaterAmount;
+ if (tScale > 0) {
+ drawTexturedModalRect(x + 83, y + 25 + 54 - tScale, 204, 54 - tScale, 10, tScale);
+ }
+ tScale = ((GT_Container_Boiler) this.mContainer).mTemperature;
+ if (tScale > 0) {
+ drawTexturedModalRect(x + 96, y + 25 + 54 - tScale, 214, 54 - tScale, 10, tScale);
+ }
+ tScale = ((GT_Container_Boiler) this.mContainer).mProcessingEnergy;
+ if (tScale > 0) {
+ drawTexturedModalRect(x + 117, y + 44 + 14 - tScale, 177, 14 - tScale, 15, tScale + 1);
+ }
+ }
+ }
+}