diff options
Diffstat (limited to 'src/Java/binnie/craftgui/genetics/machine/WindowGenepool.java')
-rw-r--r-- | src/Java/binnie/craftgui/genetics/machine/WindowGenepool.java | 96 |
1 files changed, 96 insertions, 0 deletions
diff --git a/src/Java/binnie/craftgui/genetics/machine/WindowGenepool.java b/src/Java/binnie/craftgui/genetics/machine/WindowGenepool.java new file mode 100644 index 0000000000..c91b95c0bb --- /dev/null +++ b/src/Java/binnie/craftgui/genetics/machine/WindowGenepool.java @@ -0,0 +1,96 @@ +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.extrabees.core.ExtraBeeTexture; +import binnie.genetics.Genetics; +import binnie.genetics.machine.Genepool; +import cpw.mods.fml.relauncher.Side; +import net.minecraft.entity.player.EntityPlayer; +import net.minecraft.inventory.IInventory; + +public class WindowGenepool + extends WindowMachine +{ + public static Window create(EntityPlayer player, IInventory inventory, Side side) + { + return new WindowGenepool(player, inventory, side); + } + + public WindowGenepool(EntityPlayer player, IInventory inventory, Side side) + { + super(280, 198, player, inventory, side); + } + + static Texture ProgressBase = new StandardTexture(64, 0, 130, 21, ExtraBeeTexture.GUIProgress.getTexture()); + static Texture Progress = new StandardTexture(64, 21, 130, 21, ExtraBeeTexture.GUIProgress.getTexture()); + + public void initialiseClient() + { + setTitle("Genepool"); + + int x = 16; + int y = 32; + + new ControlLiquidTank(this, x, y).setTankID(1); + + x += 26; + + new ControlSlotArray(this, x, y + 3, 2, 3).create(Genepool.slotReserve); + + x += 38; + + new ControlIconDisplay(this, x, y + 3 + 18 + 1, GUIIcon.ArrowRight.getIcon()); + + x += 18; + + new ControlSlot(this, x, y + 3 + 18).assign(0); + + x += 18; + + new ControlMachineProgress(this, x, y + 19, ProgressBase, Progress, Position.Left); + + x += 130; + + new ControlLiquidTank(this, x, y).setTankID(0); + + + new ControlEnergyBar(this, 21, 115, 16, 60, Position.Bottom); + + new ControlSlot(this, 121.0F, 82.0F).assign(7); + new ControlSlotCharge(this, 143, 82, 7).setColour(15722671); + + + new ControlErrorState(this, 181.0F, 83.0F); + + new ControlPlayerInventory(this); + } + + public String getTitle() + { + return "Genepool"; + } + + protected AbstractMod getMod() + { + return Genetics.instance; + } + + protected String getName() + { + return "Genepool"; + } +} |