mirror of
https://github.com/GTNewHorizons/Binnie.git
synced 2026-11-20 04:10:07 +00:00
Feature/refactoring (#81)
* Added some localization * Added some localization * Added some localization * Added some localization
This commit is contained in:
1 parent
618b291015
commit
b5a6919f7f
32 files changed
+362
-142
No files matched your search
@@ -15,6 +15,7 @@ import binnie.core.craftgui.minecraft.control.ControlSlotArray;
|
||||
import binnie.core.craftgui.minecraft.control.ControlSlotCharge;
|
||||
import binnie.core.craftgui.resource.Texture;
|
||||
import binnie.core.craftgui.resource.minecraft.StandardTexture;
|
||||
import binnie.core.util.I18N;
|
||||
import binnie.extrabees.core.ExtraBeeTexture;
|
||||
import binnie.genetics.Genetics;
|
||||
import binnie.genetics.machine.isolator.Isolator;
|
||||
@@ -36,23 +37,23 @@ public class WindowIsolator extends WindowMachine {
|
||||
|
||||
@Override
|
||||
public void initialiseClient() {
|
||||
setTitle("Isolator");
|
||||
setTitle(getTitle());
|
||||
int x = 16;
|
||||
int y = 32;
|
||||
new ControlLiquidTank(this, x, y).setTankID(0);
|
||||
new ControlLiquidTank(this, x, y).setTankID(Isolator.TANK_ETHANOL);
|
||||
x += 26;
|
||||
new ControlSlotArray(this, x, y + 3, 1, 3).create(Isolator.SLOT_RESERVE);
|
||||
x += 20;
|
||||
new ControlIconDisplay(this, x, y + 3 + 1, GUIIcon.ArrowRight.getIcon());
|
||||
x += 18;
|
||||
new ControlSlot(this, x, y + 3).assign(5);
|
||||
new ControlSlot(this, x, y + 36 + 3).assign(0);
|
||||
new ControlSlotCharge(this, x + 18 + 2, y + 36 + 3, 0).setColor(15722671);
|
||||
new ControlSlot(this, x, y + 3).assign(Isolator.SLOT_TARGET);
|
||||
new ControlSlot(this, x, y + 36 + 3).assign(Isolator.SLOT_ENZYME);
|
||||
new ControlSlotCharge(this, x + 18 + 2, y + 36 + 3, 0).setColor(0xefe8af);
|
||||
x += 18;
|
||||
new ControlProgress(this, x, y + 3, WindowIsolator.ProgressBase, WindowIsolator.Progress, Position.LEFT);
|
||||
x += 142;
|
||||
new ControlSlot(this, x, y + 3).assign(6);
|
||||
new ControlSlot(this, x, y + 3 + 36).assign(1);
|
||||
new ControlSlot(this, x, y + 3).assign(Isolator.SLOT_RESULT);
|
||||
new ControlSlot(this, x, y + 3 + 36).assign(Isolator.SLOT_SEQUENCER_VIAL);
|
||||
new ControlIconDisplay(this, x + 1, y + 3 + 19, GUIIcon.ArrowUp.getIcon());
|
||||
x += 20;
|
||||
new ControlIconDisplay(this, x, y + 3 + 1, GUIIcon.ArrowRight.getIcon());
|
||||
@@ -65,7 +66,7 @@ public class WindowIsolator extends WindowMachine {
|
||||
|
||||
@Override
|
||||
public String getTitle() {
|
||||
return "Incubator";
|
||||
return I18N.localise(Genetics.instance, "machine.machine.isolator");
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -75,6 +76,6 @@ public class WindowIsolator extends WindowMachine {
|
||||
|
||||
@Override
|
||||
protected String getName() {
|
||||
return "Isolator";
|
||||
return getTitle();
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user