This commit is contained in:
Nedelosk committed 2016-10-28 02:20:36 +02:00
1 parent 84d8ad9144
commit 154207f60f
77 files changed
+2116 -1987

No files matched your search

@@ -24,7 +24,7 @@ import binnie.craftgui.resource.minecraft.StandardTexture;
import binnie.extrabees.core.ExtraBeeTexture;
import binnie.extrabees.gui.punnett.ExtraBeeGUITexture;
import binnie.genetics.gui.ControlChromosome;
import binnie.genetics.machine.Analyser;
import binnie.genetics.machine.analyser.Analyser;
import forestry.api.genetics.AlleleManager;
import forestry.api.genetics.IAllele;
import forestry.api.genetics.IChromosomeType;
@@ -77,7 +77,7 @@ public class WindowFieldKit extends Window {
}
@Override
protected String getName() {
protected String getBackgroundTextureName() {
return "Field Kit";
}
@@ -56,7 +56,7 @@ public class WindowGenesis extends Window {
}
@Override
protected String getName() {
protected String getBackgroundTextureName() {
return "Genesis";
}
@@ -71,7 +71,7 @@ public class WindowBotanistDatabase extends WindowAbstractDatabase {
}
@Override
protected String getName() {
protected String getBackgroundTextureName() {
return "FlowerDatabase";
}
@@ -92,7 +92,7 @@ public class WindowArboristDatabase extends WindowAbstractDatabase {
}
@Override
protected String getName() {
protected String getBackgroundTextureName() {
return "TreeDatabase";
}
@@ -27,7 +27,7 @@ public class WindowBrewery extends Window {
}
@Override
protected String getName() {
protected String getBackgroundTextureName() {
return "Brewery";
}
@@ -25,7 +25,7 @@ public class WindowDistillery extends Window {
}
@Override
protected String getName() {
protected String getBackgroundTextureName() {
return "Distillery";
}
@@ -43,7 +43,7 @@ public class WindowLepidopteristDatabase extends WindowAbstractDatabase {
}
@Override
protected String getName() {
protected String getBackgroundTextureName() {
return "MothDatabase";
}
}
@@ -26,7 +26,7 @@ public class WindowLumbermill extends Window {
}
@Override
protected String getName() {
protected String getBackgroundTextureName() {
return "Lumbermill";
}
@@ -29,7 +29,7 @@ public class WindowPress extends Window {
}
@Override
protected String getName() {
protected String getBackgroundTextureName() {
return "Press";
}
@@ -19,7 +19,7 @@ public class WindowSetSquare extends Window {
}
@Override
protected String getName() {
protected String getBackgroundTextureName() {
return null;
}
@@ -69,7 +69,7 @@ public class WindowWoodworker extends Window {
}
@Override
protected String getName() {
protected String getBackgroundTextureName() {
return "Woodworker";
}
@@ -24,7 +24,7 @@ public class WindowBottleRack extends Window {
}
@Override
protected String getName() {
protected String getBackgroundTextureName() {
return "BottleBank";
}
@@ -35,7 +35,7 @@ public class WindowAcclimatiser extends WindowMachine {
@Override
public void initialiseClient() {
this.setTitle("Acclimatiser");
super.initialiseClient();
int x = 16;
final int y = 32;
new ControlSlotArray(this, x, y, 2, 2).create(Acclimatiser.SLOT_RESERVE);
@@ -51,7 +51,7 @@ public class WindowAcclimatiser extends WindowMachine {
@Override
public String getTitle() {
return "Acclimatiser";
return Genetics.proxy.localise("machine.labMachine.acclimatiser");
}
@Override
@@ -60,7 +60,7 @@ public class WindowAcclimatiser extends WindowMachine {
}
@Override
protected String getName() {
protected String getBackgroundTextureName() {
return "Acclimatiser";
}
@@ -19,7 +19,7 @@ import binnie.craftgui.window.Panel;
import binnie.extrabees.core.ExtraBeeTexture;
import binnie.genetics.Genetics;
import binnie.genetics.core.GeneticsTexture;
import binnie.genetics.machine.Analyser;
import binnie.genetics.machine.analyser.Analyser;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.inventory.IInventory;
import net.minecraftforge.fml.relauncher.Side;
@@ -38,11 +38,12 @@ public class WindowAnalyser extends WindowMachine {
@Override
public void initialiseClient() {
super.initialiseClient();
WindowAnalyser.ProgressBase = new StandardTexture(0, 51, 66, 40, GeneticsTexture.GUIProcess.getTexture());
WindowAnalyser.Progress = new StandardTexture(66, 51, 66, 40, GeneticsTexture.GUIProcess.getTexture());
int x = 16;
final int y = 32;
new ControlSlotArray(this, x, y, 2, 3).create(Analyser.slotReserve);
new ControlSlotArray(this, x, y, 2, 3).create(Analyser.SLOT_RESERVE);
x += 28;
new ControlSlot(this, x, y + 54 + 8).assign(13);
new ControlSlotCharge(this, x + 20, y + 54 + 8, 13).setColour(10040319);
@@ -56,15 +57,14 @@ public class WindowAnalyser extends WindowMachine {
new ControlSlot(this, x + 38 - 9, y + 25 - 9).assign(6);
new ControlIconDisplay(this, x + 76 + 2, y + 18, GUIIcon.ArrowRight.getIcon().getResourceLocation());
x += 96;
new ControlSlotArray(this, x, y, 2, 3).create(Analyser.slotFinished);
new ControlSlotArray(this, x, y, 2, 3).create(Analyser.SLOT_FINISHED);
x += 52;
this.setTitle("Analyser");
new ControlPlayerInventory(this);
}
@Override
public String getTitle() {
return "Analyser";
return Genetics.proxy.localise("machine.labMachine.analyser");
}
@Override
@@ -73,7 +73,7 @@ public class WindowAnalyser extends WindowMachine {
}
@Override
protected String getName() {
protected String getBackgroundTextureName() {
return "Analyser";
}
@@ -167,7 +167,7 @@ public class WindowGeneBank extends WindowMachine {
}
@Override
protected String getName() {
protected String getBackgroundTextureName() {
return "GeneBank";
}
@@ -18,7 +18,7 @@ public class WindowGeneProject extends Window {
}
@Override
protected String getName() {
protected String getBackgroundTextureName() {
return "GeneProjects";
}
@@ -17,7 +17,7 @@ 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 binnie.genetics.machine.genepool.Genepool;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.inventory.IInventory;
import net.minecraftforge.fml.relauncher.Side;
@@ -38,12 +38,12 @@ public class WindowGenepool extends WindowMachine {
@Override
public void initialiseClient() {
this.setTitle("Genepool");
super.initialiseClient();
int x = 16;
final int y = 32;
new ControlLiquidTank(this, x, y).setTankID(1);
x += 26;
new ControlSlotArray(this, x, y + 3, 2, 3).create(Genepool.slotReserve);
new ControlSlotArray(this, x, y + 3, 2, 3).create(Genepool.SLOT_RESERVE);
x += 38;
new ControlIconDisplay(this, x, y + 3 + 18 + 1, GUIIcon.ArrowRight.getIcon().getResourceLocation());
x += 18;
@@ -61,7 +61,7 @@ public class WindowGenepool extends WindowMachine {
@Override
public String getTitle() {
return "Genepool";
return Genetics.proxy.localise("machine.labMachine.genepool");
}
@Override
@@ -70,7 +70,7 @@ public class WindowGenepool extends WindowMachine {
}
@Override
protected String getName() {
protected String getBackgroundTextureName() {
return "Genepool";
}
@@ -27,7 +27,7 @@ public class WindowGenomeAssembler extends WindowMachine {
}
@Override
protected String getName() {
protected String getBackgroundTextureName() {
return "GenomeAssembler";
}
}
@@ -35,7 +35,7 @@ public class WindowIncubator extends WindowMachine {
@Override
public void initialiseClient() {
this.setTitle("Incubator");
super.initialiseClient();
int x = 16;
final int y = 32;
new ControlLiquidTank(this, x, y).setTankID(0);
@@ -60,7 +60,7 @@ public class WindowIncubator extends WindowMachine {
@Override
public String getTitle() {
return "Incubator";
return Genetics.proxy.localise("machine.labMachine.incubator");
}
@Override
@@ -69,7 +69,7 @@ public class WindowIncubator extends WindowMachine {
}
@Override
protected String getName() {
protected String getBackgroundTextureName() {
return "Incubator";
}
@@ -18,7 +18,7 @@ import binnie.craftgui.resource.Texture;
import binnie.craftgui.resource.minecraft.StandardTexture;
import binnie.genetics.Genetics;
import binnie.genetics.core.GeneticsTexture;
import binnie.genetics.machine.Inoculator;
import binnie.genetics.machine.inoculator.Inoculator;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.inventory.IInventory;
import net.minecraftforge.fml.relauncher.Side;
@@ -37,17 +37,17 @@ public class WindowInoculator extends WindowMachine {
@Override
public void initialiseClient() {
this.setTitle("Inoculator");
super.initialiseClient();
int x = 16;
final int y = 32;
new ControlLiquidTank(this, x, y + 18 + 16).setTankID(0);
CraftGUIUtil.horizontalGrid(x, y, new ControlSlotArray(this, 0, 0, 2, 1).create(Inoculator.slotSerumReserve), new ControlIconDisplay(this, 0.0f, 0.0f, GUIIcon.ArrowRight.getIcon().getResourceLocation()), new ControlSlot(this, 0.0f, 0.0f).assign(0), new ControlIconDisplay(this, 0.0f, 0.0f, GUIIcon.ArrowRight.getIcon().getResourceLocation()), new ControlSlotArray(this, 0, 0, 2, 1).create(Inoculator.slotSerumExpended));
CraftGUIUtil.horizontalGrid(x, y, new ControlSlotArray(this, 0, 0, 2, 1).create(Inoculator.SLOT_SERUM_RESERVE), new ControlIconDisplay(this, 0.0f, 0.0f, GUIIcon.ArrowRight.getIcon().getResourceLocation()), new ControlSlot(this, 0.0f, 0.0f).assign(0), new ControlIconDisplay(this, 0.0f, 0.0f, GUIIcon.ArrowRight.getIcon().getResourceLocation()), new ControlSlotArray(this, 0, 0, 2, 1).create(Inoculator.SLOT_SERUM_EXPENDED));
x += 18;
new ControlMachineProgress(this, x, y + 24, WindowInoculator.ProgressBase, WindowInoculator.Progress, Position.Left);
new ControlEnergyBar(this, 91, 118, 60, 16, Position.Left);
new ControlErrorState(this, 161.0f, 118.0f);
x += 142;
CraftGUIUtil.verticalGrid(x, y, TextJustification.MiddleLeft, 8.0f, new ControlSlotArray(this, x, y, 4, 1).create(Inoculator.slotReserve), new ControlSlot(this, x, y + 18 + 8).assign(9), new ControlSlotArray(this, x, y + 18 + 8 + 18 + 8, 4, 1).create(Inoculator.slotFinished));
CraftGUIUtil.verticalGrid(x, y, TextJustification.MiddleLeft, 8.0f, new ControlSlotArray(this, x, y, 4, 1).create(Inoculator.SLOT_RESERVE), new ControlSlot(this, x, y + 18 + 8).assign(9), new ControlSlotArray(this, x, y + 18 + 8 + 18 + 8, 4, 1).create(Inoculator.SLOT_FINISHED));
new ControlIconDisplay(this, x + 18, y + 18 + 2, GUIIcon.ArrowUpLeft.getIcon().getResourceLocation());
new ControlIconDisplay(this, x + 18, y + 18 + 18, GUIIcon.ArrowLeftDown.getIcon().getResourceLocation());
new ControlPlayerInventory(this);
@@ -55,7 +55,7 @@ public class WindowInoculator extends WindowMachine {
@Override
public String getTitle() {
return "Inoculator";
return Genetics.proxy.localise("machine.machine.inoculator");
}
@Override
@@ -64,7 +64,7 @@ public class WindowInoculator extends WindowMachine {
}
@Override
protected String getName() {
protected String getBackgroundTextureName() {
return "Inoculator";
}
@@ -17,7 +17,7 @@ import binnie.craftgui.resource.Texture;
import binnie.craftgui.resource.minecraft.StandardTexture;
import binnie.extrabees.core.ExtraBeeTexture;
import binnie.genetics.Genetics;
import binnie.genetics.machine.Isolator;
import binnie.genetics.machine.isolator.Isolator;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.inventory.IInventory;
import net.minecraftforge.fml.relauncher.Side;
@@ -36,12 +36,12 @@ public class WindowIsolator extends WindowMachine {
@Override
public void initialiseClient() {
this.setTitle("Isolator");
super.initialiseClient();
int x = 16;
final int y = 32;
new ControlLiquidTank(this, x, y).setTankID(0);
x += 26;
new ControlSlotArray(this, x, y + 3, 1, 3).create(Isolator.slotReserve);
new ControlSlotArray(this, x, y + 3, 1, 3).create(Isolator.SLOT_RESERVE);
x += 20;
new ControlIconDisplay(this, x, y + 3 + 1, GUIIcon.ArrowRight.getIcon().getResourceLocation());
x += 18;
@@ -57,7 +57,7 @@ public class WindowIsolator extends WindowMachine {
x += 20;
new ControlIconDisplay(this, x, y + 3 + 1, GUIIcon.ArrowRight.getIcon().getResourceLocation());
x += 18;
new ControlSlotArray(this, x, y + 3, 2, 3).create(Isolator.slotFinished);
new ControlSlotArray(this, x, y + 3, 2, 3).create(Isolator.SLOT_FINISHED);
new ControlEnergyBar(this, 260, 130, 16, 60, Position.Bottom);
new ControlErrorState(this, 153.0f, 81.0f);
new ControlPlayerInventory(this);
@@ -65,7 +65,7 @@ public class WindowIsolator extends WindowMachine {
@Override
public String getTitle() {
return "Incubator";
return Genetics.proxy.localise("machine.machine.isolator");
}
@Override
@@ -74,7 +74,7 @@ public class WindowIsolator extends WindowMachine {
}
@Override
protected String getName() {
protected String getBackgroundTextureName() {
return "Isolator";
}
@@ -17,7 +17,7 @@ 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.PackagePolymeriser;
import binnie.genetics.machine.polymeriser.Polymeriser;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.inventory.IInventory;
import net.minecraftforge.fml.relauncher.Side;
@@ -39,7 +39,7 @@ public class WindowPolymeriser extends WindowMachine {
super.initialiseClient();
int x = 16;
final int y = 38;
new ControlSlotArray(this, x, y, 1, 4).create(PackagePolymeriser.SLOT_SERUM_RESERVE);
new ControlSlotArray(this, x, y, 1, 4).create(Polymeriser.SLOT_SERUM_RESERVE);
new ControlIconDisplay(this, x + 18, y + 1, GUIIcon.ArrowRight.getIcon().getResourceLocation());
x += 34;
new ControlMachineProgress(this, x + 18, y - 6, WindowPolymeriser.ProgressBase, WindowPolymeriser.Progress, Position.Left);
@@ -51,14 +51,14 @@ public class WindowPolymeriser extends WindowMachine {
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(PackagePolymeriser.SLOT_SERUM_FINISHED);
new ControlSlotArray(this, x, y + 9, 2, 2).create(Polymeriser.SLOT_SERUM_FINISHED);
final ControlErrorState errorState = new ControlErrorState(this, 244.0f, 97.0f);
new ControlPlayerInventory(this);
}
@Override
public String getTitle() {
return Genetics.proxy.localise("machine.machine.polymeriser.tile");
return Genetics.proxy.localise("machine.machine.polymeriser");
}
@Override
@@ -67,7 +67,7 @@ public class WindowPolymeriser extends WindowMachine {
}
@Override
protected String getName() {
protected String getBackgroundTextureName() {
return "Polymeriser";
}
@@ -19,10 +19,11 @@ import binnie.craftgui.resource.Texture;
import binnie.craftgui.resource.minecraft.StandardTexture;
import binnie.extrabees.core.ExtraBeeTexture;
import binnie.genetics.Genetics;
import binnie.genetics.machine.Sequencer;
import binnie.genetics.machine.sequencer.Sequencer;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.inventory.IInventory;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.util.text.TextFormatting;
import net.minecraftforge.fml.relauncher.Side;
public class WindowSequencer extends WindowMachine {
@@ -48,15 +49,15 @@ public class WindowSequencer extends WindowMachine {
@Override
public void initialiseClient() {
this.setTitle("Sequencer");
super.initialiseClient();
int x = 16;
int y = 32;
CraftGUIUtil.horizontalGrid(x, y, TextJustification.MiddleCenter, 2.0f, new ControlSlotArray(this, 0, 0, 2, 2).create(Sequencer.slotReserve), new ControlIconDisplay(this, 0.0f, 0.0f, GUIIcon.ArrowRight.getIcon().getResourceLocation()), new ControlSequencerProgress(this, 0, 0), new ControlIconDisplay(this, 0.0f, 0.0f, GUIIcon.ArrowRight.getIcon().getResourceLocation()), new ControlSlot(this, 0.0f, 0.0f).assign(6));
CraftGUIUtil.horizontalGrid(x, y, TextJustification.MiddleCenter, 2.0f, new ControlSlotArray(this, 0, 0, 2, 2).create(Sequencer.SLOT_RESERVE), new ControlIconDisplay(this, 0.0f, 0.0f, GUIIcon.ArrowRight.getIcon().getResourceLocation()), new ControlSequencerProgress(this, 0, 0), new ControlIconDisplay(this, 0.0f, 0.0f, GUIIcon.ArrowRight.getIcon().getResourceLocation()), new ControlSlot(this, 0.0f, 0.0f).assign(6));
final ControlSlot slotTarget = new ControlSlot(this, x + 96, y + 16);
slotTarget.assign(5);
x = 34;
y = 92;
this.slotText = new ControlText(this, new IArea(0.0f, y, this.w(), 12.0f), "§8Userless. Will not save sequences", TextJustification.MiddleCenter);
this.slotText = new ControlText(this, new IArea(0.0f, y, this.w(), 12.0f), TextFormatting.DARK_GRAY + Genetics.proxy.localise("machine.machine.sequencer.userless"), TextJustification.MiddleCenter);
y += 20;
final ControlSlot slotDye = new ControlSlot(this, x, y);
slotDye.assign(0);
@@ -71,7 +72,7 @@ public class WindowSequencer extends WindowMachine {
@Override
public String getTitle() {
return "Incubator";
return Genetics.proxy.localise("machine.machine.sequencer");
}
@Override
@@ -80,7 +81,7 @@ public class WindowSequencer extends WindowMachine {
}
@Override
protected String getName() {
protected String getBackgroundTextureName() {
return "Sequencer";
}
@@ -16,8 +16,8 @@ import binnie.craftgui.resource.Texture;
import binnie.craftgui.resource.minecraft.StandardTexture;
import binnie.genetics.Genetics;
import binnie.genetics.core.GeneticsTexture;
import binnie.genetics.machine.Inoculator;
import binnie.genetics.machine.Splicer;
import binnie.genetics.machine.inoculator.Inoculator;
import binnie.genetics.machine.splicer.Splicer;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.inventory.IInventory;
import net.minecraftforge.fml.relauncher.Side;
@@ -36,22 +36,22 @@ public class WindowSplicer extends WindowMachine {
@Override
public void initialiseClient() {
this.setTitle("Splicer");
super.initialiseClient();
int x = 16;
new ControlSplicerProgress(this, 84.0f, 32.0f, this.w() - 172.0f, 102.0f);
CraftGUIUtil.horizontalGrid(x, 62.0f, new ControlSlotArray(this, 0, 0, 2, 1).create(Splicer.slotSerumReserve), new ControlIconDisplay(this, 0.0f, 0.0f, GUIIcon.ArrowRight.getIcon().getResourceLocation()), new ControlSlot(this, 0.0f, 0.0f).assign(0));
new ControlSlotArray(this, x + 12, 84, 2, 1).create(Splicer.slotSerumExpended);
CraftGUIUtil.horizontalGrid(x, 62.0f, new ControlSlotArray(this, 0, 0, 2, 1).create(Splicer.SLOT_SERUM_RESERVE), new ControlIconDisplay(this, 0.0f, 0.0f, GUIIcon.ArrowRight.getIcon().getResourceLocation()), new ControlSlot(this, 0.0f, 0.0f).assign(0));
new ControlSlotArray(this, x + 12, 84, 2, 1).create(Splicer.SLOT_SERUM_EXPENDED);
new ControlIconDisplay(this, x + 12 + 36 + 4, 86.0f, GUIIcon.ArrowUpLeft.getIcon().getResourceLocation());
new ControlEnergyBar(this, 196, 64, 60, 16, Position.Left);
new ControlErrorState(this, 218.0f, 86.0f);
x += 142;
CraftGUIUtil.verticalGrid((this.w() - 72.0f) / 2.0f, 32.0f, TextJustification.MiddleCenter, 4.0f, new ControlSlotArray(this, 0, 0, 4, 1).create(Inoculator.slotReserve), new ControlIconDisplay(this, 0.0f, 0.0f, GUIIcon.ArrowDown.getIcon().getResourceLocation()), new ControlSlot(this, 0.0f, 0.0f).assign(9), new ControlIconDisplay(this, 0.0f, 0.0f, GUIIcon.ArrowDown.getIcon().getResourceLocation()), new ControlSlotArray(this, 0, 0, 4, 1).create(Inoculator.slotFinished));
CraftGUIUtil.verticalGrid((this.w() - 72.0f) / 2.0f, 32.0f, TextJustification.MiddleCenter, 4.0f, new ControlSlotArray(this, 0, 0, 4, 1).create(Inoculator.SLOT_RESERVE), new ControlIconDisplay(this, 0.0f, 0.0f, GUIIcon.ArrowDown.getIcon().getResourceLocation()), new ControlSlot(this, 0.0f, 0.0f).assign(9), new ControlIconDisplay(this, 0.0f, 0.0f, GUIIcon.ArrowDown.getIcon().getResourceLocation()), new ControlSlotArray(this, 0, 0, 4, 1).create(Inoculator.SLOT_FINISHED));
new ControlPlayerInventory(this);
}
@Override
public String getTitle() {
return "Inoculator";
return Genetics.proxy.localise("machine.advMachine.splicer");
}
@Override
@@ -60,7 +60,7 @@ public class WindowSplicer extends WindowMachine {
}
@Override
protected String getName() {
protected String getBackgroundTextureName() {
return "Inoculator";
}
@@ -104,10 +104,10 @@ public abstract class Window extends TopLevelWidget implements INetwork.RecieveG
protected abstract AbstractMod getMod();
protected abstract String getName();
protected abstract String getBackgroundTextureName();
public BinnieResource getBackgroundTextureFile(final int i) {
return Binnie.Resource.getPNG(this.getMod(), ResourceType.GUI, this.getName() + ((i == 1) ? "" : i));
return Binnie.Resource.getPNG(this.getMod(), ResourceType.GUI, this.getBackgroundTextureName() + ((i == 1) ? "" : i));
}
public boolean showHelpButton() {