aboutsummaryrefslogtreecommitdiff
path: root/src/Java/binnie/craftgui/genetics/machine/WindowPolymeriser.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/Java/binnie/craftgui/genetics/machine/WindowPolymeriser.java')
-rw-r--r--src/Java/binnie/craftgui/genetics/machine/WindowPolymeriser.java101
1 files changed, 101 insertions, 0 deletions
diff --git a/src/Java/binnie/craftgui/genetics/machine/WindowPolymeriser.java b/src/Java/binnie/craftgui/genetics/machine/WindowPolymeriser.java
new file mode 100644
index 0000000000..edf9e371f7
--- /dev/null
+++ b/src/Java/binnie/craftgui/genetics/machine/WindowPolymeriser.java
@@ -0,0 +1,101 @@
+package binnie.craftgui.genetics.machine;
+
+import binnie.core.AbstractMod;
+import binnie.craftgui.core.geometry.Position;
+import binnie.craftgui.minecraft.GUIIcon;
+import binnie.craftgui.minecraft.Window;
+import binnie.craftgui.minecraft.control.ControlEnergyBar;
+import binnie.craftgui.minecraft.control.ControlErrorState;
+import binnie.craftgui.minecraft.control.ControlIconDisplay;
+import binnie.craftgui.minecraft.control.ControlLiquidTank;
+import binnie.craftgui.minecraft.control.ControlMachineProgress;
+import binnie.craftgui.minecraft.control.ControlPlayerInventory;
+import binnie.craftgui.minecraft.control.ControlSlot;
+import binnie.craftgui.minecraft.control.ControlSlotArray;
+import binnie.craftgui.minecraft.control.ControlSlotCharge;
+import binnie.craftgui.resource.Texture;
+import binnie.craftgui.resource.minecraft.StandardTexture;
+import binnie.genetics.Genetics;
+import binnie.genetics.core.GeneticsTexture;
+import binnie.genetics.machine.Polymeriser;
+import cpw.mods.fml.relauncher.Side;
+import net.minecraft.entity.player.EntityPlayer;
+import net.minecraft.inventory.IInventory;
+
+public class WindowPolymeriser
+ extends WindowMachine
+{
+ public static Window create(EntityPlayer player, IInventory inventory, Side side)
+ {
+ return new WindowPolymeriser(player, inventory, side);
+ }
+
+ public WindowPolymeriser(EntityPlayer player, IInventory inventory, Side side)
+ {
+ super(278, 212, player, inventory, side);
+ }
+
+ static Texture ProgressBase = new StandardTexture(76, 170, 160, 79, GeneticsTexture.GUIProcess.getTexture());
+ static Texture Progress = new StandardTexture(76, 91, 160, 79, GeneticsTexture.GUIProcess.getTexture());
+
+ public void initialiseClient()
+ {
+ super.initialiseClient();
+
+ int x = 16;
+ int y = 38;
+
+
+
+
+
+ new ControlSlotArray(this, x, y, 1, 4).create(Polymeriser.slotSerumReserve);
+ new ControlIconDisplay(this, x + 18, y + 1, GUIIcon.ArrowRight.getIcon());
+
+ x += 34;
+
+ new ControlMachineProgress(this, x + 18, y - 6, ProgressBase, Progress, Position.Left);
+
+
+ new ControlSlot(this, x, y).assign(0);
+
+
+ new ControlLiquidTank(this, x, y + 18 + 16, true).setTankID(0);
+
+ new ControlLiquidTank(this, x, y + 18 + 16 + 18 + 8, true).setTankID(1);
+
+ new ControlEnergyBar(this, x + 120, 96, 64, 16, Position.Left);
+
+ x += 40;
+
+ new ControlSlot(this, x + 30, y + 18 + 8).assign(1);
+ new ControlSlotCharge(this, x + 30 + 20, y + 18 + 8, 1).setColour(16766976);
+
+
+
+
+ x += 138;
+
+ new ControlSlotArray(this, x, y + 9, 2, 2).create(Polymeriser.slotSerumFinished);
+
+ ControlErrorState errorState = new ControlErrorState(this, 244.0F, 97.0F);
+
+
+ new ControlPlayerInventory(this);
+ }
+
+ public String getTitle()
+ {
+ return "Polymeriser";
+ }
+
+ protected AbstractMod getMod()
+ {
+ return Genetics.instance;
+ }
+
+ protected String getName()
+ {
+ return "Polymeriser";
+ }
+}