Fixed/Updated GUIs
|
@ -27,8 +27,8 @@ public class ContainerAlloySmelter extends TechRebornContainer {
|
|||
this.player = player;
|
||||
|
||||
// input
|
||||
this.addSlotToContainer(new Slot(tileAlloysmelter.inventory, 0, 56, 25));
|
||||
this.addSlotToContainer(new Slot(tileAlloysmelter.inventory, 1, 56, 43));
|
||||
this.addSlotToContainer(new Slot(tileAlloysmelter.inventory, 0, 47, 17));
|
||||
this.addSlotToContainer(new Slot(tileAlloysmelter.inventory, 1, 65, 17));
|
||||
// outputs
|
||||
this.addSlotToContainer(new SlotOutput(tileAlloysmelter.inventory, 2,
|
||||
116, 35));
|
||||
|
|
|
@ -26,11 +26,11 @@ public class ContainerBlastFurnace extends TechRebornContainer {
|
|||
this.player = player;
|
||||
|
||||
// input
|
||||
this.addSlotToContainer(new Slot(tileblastfurnace.inventory, 0, 56, 25));//Input 1
|
||||
this.addSlotToContainer(new Slot(tileblastfurnace.inventory, 1, 56, 43));//Input 2
|
||||
this.addSlotToContainer(new Slot(tileblastfurnace.inventory, 0, 40, 25));//Input 1
|
||||
this.addSlotToContainer(new Slot(tileblastfurnace.inventory, 1, 40, 43));//Input 2
|
||||
// outputs
|
||||
this.addSlotToContainer(new SlotOutput(tileblastfurnace.inventory, 2, 116, 35));//Output 1
|
||||
this.addSlotToContainer(new SlotOutput(tileblastfurnace.inventory, 3, 116, 53));//Output 2
|
||||
this.addSlotToContainer(new SlotOutput(tileblastfurnace.inventory, 2, 100, 35));//Output 1
|
||||
this.addSlotToContainer(new SlotOutput(tileblastfurnace.inventory, 3, 118, 35));//Output 2
|
||||
|
||||
int i;
|
||||
|
||||
|
|
|
@ -21,15 +21,15 @@ public class ContainerGrinder extends TechRebornContainer{
|
|||
this.player = player;
|
||||
|
||||
// input
|
||||
this.addSlotToContainer(new Slot(tileGrinder.inventory, 0, 29, 26));
|
||||
this.addSlotToContainer(new Slot(tileGrinder.inventory, 1, 29, 44));
|
||||
this.addSlotToContainer(new Slot(tileGrinder.inventory, 0, 32, 26));
|
||||
this.addSlotToContainer(new Slot(tileGrinder.inventory, 1, 32, 44));
|
||||
|
||||
|
||||
// outputs
|
||||
this.addSlotToContainer(new SlotOutput(tileGrinder.inventory, 2, 73, 35));
|
||||
this.addSlotToContainer(new SlotOutput(tileGrinder.inventory, 3, 91, 35));
|
||||
this.addSlotToContainer(new SlotOutput(tileGrinder.inventory, 4, 109, 35));
|
||||
this.addSlotToContainer(new SlotOutput(tileGrinder.inventory, 5, 127, 35));
|
||||
this.addSlotToContainer(new SlotOutput(tileGrinder.inventory, 2, 77, 35));
|
||||
this.addSlotToContainer(new SlotOutput(tileGrinder.inventory, 3, 95, 35));
|
||||
this.addSlotToContainer(new SlotOutput(tileGrinder.inventory, 4, 113, 35));
|
||||
this.addSlotToContainer(new SlotOutput(tileGrinder.inventory, 5, 131, 35));
|
||||
|
||||
int i;
|
||||
|
||||
|
|
|
@ -23,11 +23,11 @@ public class ContainerImplosionCompressor extends TechRebornContainer{
|
|||
this.player = player;
|
||||
|
||||
// input
|
||||
this.addSlotToContainer(new Slot(tilecompressor.inventory, 0, 34, 16));
|
||||
this.addSlotToContainer(new Slot(tilecompressor.inventory, 1, 34, 34));
|
||||
this.addSlotToContainer(new Slot(tilecompressor.inventory, 0, 37, 26));
|
||||
this.addSlotToContainer(new Slot(tilecompressor.inventory, 1, 37, 44));
|
||||
// outputs
|
||||
this.addSlotToContainer(new SlotOutput(tilecompressor.inventory, 2, 86, 25));
|
||||
this.addSlotToContainer(new SlotOutput(tilecompressor.inventory, 3, 104, 25));
|
||||
this.addSlotToContainer(new SlotOutput(tilecompressor.inventory, 2, 93, 35));
|
||||
this.addSlotToContainer(new SlotOutput(tilecompressor.inventory, 3, 111, 35));
|
||||
|
||||
|
||||
int i;
|
||||
|
|
|
@ -53,7 +53,8 @@ public class GuiAlloyFurnace extends GuiContainer {
|
|||
protected void drawGuiContainerForegroundLayer(int p_146979_1_,
|
||||
int p_146979_2_)
|
||||
{
|
||||
this.fontRendererObj.drawString(StatCollector.translateToLocal("tile.techreborn.alloyfurnace.name"), 40, 6, 4210752);
|
||||
String name = StatCollector.translateToLocal("tile.techreborn.alloyfurnace.name");
|
||||
this.fontRendererObj.drawString(name, this.xSize / 2 - this.fontRendererObj.getStringWidth(name) / 2, 6, 4210752);
|
||||
this.fontRendererObj.drawString(
|
||||
I18n.format("container.inventory", new Object[0]), 8,
|
||||
this.ySize - 96 + 2, 4210752);
|
||||
|
|
|
@ -50,7 +50,8 @@ public class GuiAlloySmelter extends GuiContainer {
|
|||
protected void drawGuiContainerForegroundLayer(int p_146979_1_,
|
||||
int p_146979_2_)
|
||||
{
|
||||
this.fontRendererObj.drawString(StatCollector.translateToLocal("tile.techreborn.alloysmelter.name"), 40, 6, 4210752);
|
||||
String name = StatCollector.translateToLocal("tile.techreborn.alloysmelter.name");
|
||||
this.fontRendererObj.drawString(name, this.xSize / 2 - this.fontRendererObj.getStringWidth(name) / 2, 6, 4210752);
|
||||
this.fontRendererObj.drawString(
|
||||
I18n.format("container.inventory", new Object[0]), 8,
|
||||
this.ySize - 96 + 2, 4210752);
|
||||
|
|
|
@ -52,7 +52,8 @@ public class GuiAssemblingMachine extends GuiContainer {
|
|||
protected void drawGuiContainerForegroundLayer(int p_146979_1_,
|
||||
int p_146979_2_)
|
||||
{
|
||||
this.fontRendererObj.drawString(StatCollector.translateToLocal("tile.techreborn.assemblinmachine.name"), 40, 6, 4210752);
|
||||
String name = StatCollector.translateToLocal("tile.techreborn.assemblinmachine.name");
|
||||
this.fontRendererObj.drawString(name, this.xSize / 2 - this.fontRendererObj.getStringWidth(name) / 2, 6, 4210752);
|
||||
this.fontRendererObj.drawString(
|
||||
I18n.format("container.inventory", new Object[0]), 8,
|
||||
this.ySize - 96 + 2, 4210752);
|
||||
|
|
|
@ -53,7 +53,8 @@ public class GuiBlastFurnace extends GuiContainer {
|
|||
int p_146979_2_)
|
||||
{
|
||||
super.drawGuiContainerForegroundLayer(p_146979_1_, p_146979_2_);
|
||||
this.fontRendererObj.drawString(StatCollector.translateToLocal("tile.techreborn.blastfurnace.name"), 35, 6, 4210752);
|
||||
String name = StatCollector.translateToLocal("tile.techreborn.blastfurnace.name");
|
||||
this.fontRendererObj.drawString(name, this.xSize / 2 - this.fontRendererObj.getStringWidth(name) / 2, 6, 4210752);
|
||||
this.fontRendererObj.drawString(blastfurnace.getHeat() + " heat", 75, 20, 4210752);
|
||||
this.fontRendererObj.drawString(
|
||||
I18n.format("container.inventory", new Object[0]), 8,
|
||||
|
|
|
@ -11,38 +11,34 @@ import techreborn.tiles.TileCentrifuge;
|
|||
|
||||
public class GuiCentrifuge extends GuiContainer {
|
||||
|
||||
private static final ResourceLocation texture = new ResourceLocation(
|
||||
"techreborn", "textures/gui/centrifuge.png");
|
||||
private static final ResourceLocation texture = new ResourceLocation(
|
||||
"techreborn", "textures/gui/industrial_centrifuge.png");
|
||||
|
||||
TileCentrifuge centrifuge;
|
||||
TileCentrifuge centrifuge;
|
||||
|
||||
public GuiCentrifuge(EntityPlayer player, TileCentrifuge tileCentrifuge)
|
||||
{
|
||||
super(new ContainerCentrifuge(tileCentrifuge, player));
|
||||
this.xSize = 176;
|
||||
this.ySize = 167;
|
||||
centrifuge = tileCentrifuge;
|
||||
}
|
||||
public GuiCentrifuge(EntityPlayer player, TileCentrifuge tileCentrifuge) {
|
||||
super(new ContainerCentrifuge(tileCentrifuge, player));
|
||||
this.xSize = 176;
|
||||
this.ySize = 167;
|
||||
centrifuge = tileCentrifuge;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void drawGuiContainerBackgroundLayer(float p_146976_1_,
|
||||
int p_146976_2_, int p_146976_3_)
|
||||
{
|
||||
this.mc.getTextureManager().bindTexture(texture);
|
||||
int k = (this.width - this.xSize) / 2;
|
||||
int l = (this.height - this.ySize) / 2;
|
||||
this.drawTexturedModalRect(k, l, 0, 0, this.xSize, this.ySize);
|
||||
}
|
||||
@Override
|
||||
protected void drawGuiContainerBackgroundLayer(float p_146976_1_, int p_146976_2_, int p_146976_3_) {
|
||||
this.mc.getTextureManager().bindTexture(texture);
|
||||
int k = (this.width - this.xSize) / 2;
|
||||
int l = (this.height - this.ySize) / 2;
|
||||
this.drawTexturedModalRect(k, l, 0, 0, this.xSize, this.ySize);
|
||||
}
|
||||
|
||||
protected void drawGuiContainerForegroundLayer(int p_146979_1_,
|
||||
int p_146979_2_)
|
||||
{
|
||||
this.fontRendererObj.drawString(
|
||||
I18n.format("container.inventory", new Object[0]), 8,
|
||||
this.ySize - 96 + 2, 4210752);
|
||||
this.fontRendererObj.drawString(centrifuge.tickTime + " "
|
||||
+ centrifuge.isRunning, 110, this.ySize - 96 + 2, 4210752);
|
||||
}
|
||||
protected void drawGuiContainerForegroundLayer(int p_146979_1_, int p_146979_2_) {
|
||||
String namePt1 = StatCollector.translateToLocal("tile.techreborn.industrialBlock.name");
|
||||
String namePt2 = StatCollector.translateToLocal("tile.techreborn.centrifuge.name");
|
||||
this.fontRendererObj.drawString(namePt1, 98, 6, 4210752);
|
||||
this.fontRendererObj.drawString(namePt2, 98, 14, 4210752);
|
||||
this.fontRendererObj.drawString(I18n.format("container.inventory", new Object[0]), 8, this.ySize - 96 + 2, 4210752);
|
||||
this.fontRendererObj.drawString(centrifuge.tickTime + " " + centrifuge.isRunning, 110, this.ySize - 96 + 2, 4210752);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void initGui() {
|
||||
|
@ -50,7 +46,7 @@ public class GuiCentrifuge extends GuiContainer {
|
|||
this.buttonList.clear();
|
||||
int k = (this.width - this.xSize) / 2;
|
||||
int l = (this.height - this.ySize) / 2;
|
||||
this.buttonList.add(new GuiButton(0, k + 4, l + 4, 20, 20, "R"));
|
||||
this.buttonList.add(new GuiButton(0, k + 4, l + 4, 20, 20, "R"));
|
||||
super.initGui();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -64,7 +64,8 @@ public class GuiChunkLoader extends GuiContainer{
|
|||
protected void drawGuiContainerForegroundLayer(int p_146979_1_,
|
||||
int p_146979_2_)
|
||||
{
|
||||
this.fontRendererObj.drawString(StatCollector.translateToLocal("tile.techreborn.chunkloader.name"), 30, 6, 4210752);
|
||||
String name = StatCollector.translateToLocal("tile.techreborn.chunkloader.name");
|
||||
this.fontRendererObj.drawString(name, this.xSize / 2 - this.fontRendererObj.getStringWidth(name) / 2, 6, 4210752);
|
||||
this.fontRendererObj.drawString(
|
||||
I18n.format("container.inventory", new Object[0]), 8,
|
||||
this.ySize - 96 + 2, 4210752);
|
||||
|
|
|
@ -38,7 +38,8 @@ public class GuiDieselGenerator extends GuiContainer {
|
|||
protected void drawGuiContainerForegroundLayer(int p_146979_1_,
|
||||
int p_146979_2_)
|
||||
{
|
||||
this.fontRendererObj.drawString(StatCollector.translateToLocal("tile.techreborn.dieselgenerator.name"), 8, 6, 4210752);
|
||||
String name = StatCollector.translateToLocal("tile.techreborn.dieselgenerator.name");
|
||||
this.fontRendererObj.drawString(name, this.xSize / 2 - this.fontRendererObj.getStringWidth(name) / 2, 6, 4210752);
|
||||
this.fontRendererObj.drawString(
|
||||
I18n.format("container.inventory", new Object[0]), 8,
|
||||
this.ySize - 96 + 2, 4210752);
|
||||
|
|
|
@ -40,7 +40,8 @@ public class GuiGrinder extends GuiContainer{
|
|||
protected void drawGuiContainerForegroundLayer(int p_146979_1_,
|
||||
int p_146979_2_)
|
||||
{
|
||||
this.fontRendererObj.drawString(StatCollector.translateToLocal("tile.techreborn.grinder.name"), 40, 6, 4210752);
|
||||
String name = StatCollector.translateToLocal("tile.techreborn.grinder.name");
|
||||
this.fontRendererObj.drawString(name, this.xSize / 2 - this.fontRendererObj.getStringWidth(name) / 2, 6, 4210752);
|
||||
this.fontRendererObj.drawString(
|
||||
I18n.format("container.inventory", new Object[0]), 8,
|
||||
this.ySize - 96 + 2, 4210752);
|
||||
|
|
|
@ -50,7 +50,8 @@ public class GuiImplosionCompressor extends GuiContainer{
|
|||
protected void drawGuiContainerForegroundLayer(int p_146979_1_,
|
||||
int p_146979_2_)
|
||||
{
|
||||
this.fontRendererObj.drawString(StatCollector.translateToLocal("tile.techreborn.implosioncompressor.name"), 40, 6, 4210752);
|
||||
String name = StatCollector.translateToLocal("tile.techreborn.implosioncompressor.name");
|
||||
this.fontRendererObj.drawString(name, this.xSize / 2 - this.fontRendererObj.getStringWidth(name) / 2, 6, 4210752);
|
||||
this.fontRendererObj.drawString(
|
||||
I18n.format("container.inventory", new Object[0]), 8,
|
||||
this.ySize - 96 + 2, 4210752);
|
||||
|
|
|
@ -52,7 +52,8 @@ public class GuiIndustrialElectrolyzer extends GuiContainer {
|
|||
protected void drawGuiContainerForegroundLayer(int p_146979_1_,
|
||||
int p_146979_2_)
|
||||
{
|
||||
this.fontRendererObj.drawString(StatCollector.translateToLocal("tile.techreborn.industrialelectrolyzer.name"), 40, 6, 4210752);
|
||||
String name = StatCollector.translateToLocal("tile.techreborn.industrialelectrolyzer.name");
|
||||
this.fontRendererObj.drawString(name, (this.xSize / 2 - this.fontRendererObj.getStringWidth(name) / 2), 6, 4210752);
|
||||
this.fontRendererObj.drawString(
|
||||
I18n.format("container.inventory", new Object[0]), 8,
|
||||
this.ySize - 96 + 2, 4210752);
|
||||
|
|
|
@ -52,7 +52,8 @@ public class GuiLathe extends GuiContainer {
|
|||
protected void drawGuiContainerForegroundLayer(int p_146979_1_,
|
||||
int p_146979_2_)
|
||||
{
|
||||
this.fontRendererObj.drawString(StatCollector.translateToLocal("tile.techreborn.lathe.name"), 60, 6, 4210752);
|
||||
String name = StatCollector.translateToLocal("tile.techreborn.lathe.name");
|
||||
this.fontRendererObj.drawString(name, this.xSize / 2 - this.fontRendererObj.getStringWidth(name) / 2, 6, 4210752);
|
||||
this.fontRendererObj.drawString(
|
||||
I18n.format("container.inventory", new Object[0]), 8,
|
||||
this.ySize - 96 + 2, 4210752);
|
||||
|
|
|
@ -40,7 +40,8 @@ public class GuiMatterFabricator extends GuiContainer{
|
|||
protected void drawGuiContainerForegroundLayer(int p_146979_1_,
|
||||
int p_146979_2_)
|
||||
{
|
||||
this.fontRendererObj.drawString(StatCollector.translateToLocal("tile.techreborn.matterfabricator.name"), 40, 6, 4210752);
|
||||
String name = StatCollector.translateToLocal("tile.techreborn.matterfabricator.name");
|
||||
this.fontRendererObj.drawString(name, this.xSize / 2 - this.fontRendererObj.getStringWidth(name) / 2, 6, 4210752);
|
||||
this.fontRendererObj.drawString(
|
||||
I18n.format("container.inventory", new Object[0]), 8,
|
||||
this.ySize - 96 + 2, 4210752);
|
||||
|
|
|
@ -54,7 +54,8 @@ public class GuiPlateCuttingMachine extends GuiContainer {
|
|||
protected void drawGuiContainerForegroundLayer(int p_146979_1_,
|
||||
int p_146979_2_)
|
||||
{
|
||||
this.fontRendererObj.drawString(StatCollector.translateToLocal("tile.techreborn.platecuttingmachine.name"), 40, 6, 4210752);
|
||||
String name = StatCollector.translateToLocal("tile.techreborn.platecuttingmachine.name");
|
||||
this.fontRendererObj.drawString(name, this.xSize / 2 - this.fontRendererObj.getStringWidth(name) / 2, 6, 4210752);
|
||||
this.fontRendererObj.drawString(
|
||||
I18n.format("container.inventory", new Object[0]), 8,
|
||||
this.ySize - 96 + 2, 4210752);
|
||||
|
|
|
@ -36,7 +36,8 @@ public class GuiQuantumChest extends GuiContainer {
|
|||
protected void drawGuiContainerForegroundLayer(int p_146979_1_,
|
||||
int p_146979_2_)
|
||||
{
|
||||
this.fontRendererObj.drawString(StatCollector.translateToLocal("tile.techreborn.quantumChest.name"), 8, 6, 4210752);
|
||||
String name = StatCollector.translateToLocal("tile.techreborn.quantumChest.name");
|
||||
this.fontRendererObj.drawString(name, this.xSize / 2 - this.fontRendererObj.getStringWidth(name) / 2, 6, 4210752);
|
||||
this.fontRendererObj.drawString(
|
||||
I18n.format("container.inventory", new Object[0]), 8,
|
||||
this.ySize - 96 + 2, 4210752);
|
||||
|
|
|
@ -36,7 +36,8 @@ public class GuiQuantumTank extends GuiContainer {
|
|||
protected void drawGuiContainerForegroundLayer(int p_146979_1_,
|
||||
int p_146979_2_)
|
||||
{
|
||||
this.fontRendererObj.drawString(StatCollector.translateToLocal("tile.techreborn.quantumTank.name"), 8, 6, 4210752);
|
||||
String name = StatCollector.translateToLocal("tile.techreborn.quantumTank.name");
|
||||
this.fontRendererObj.drawString(name, this.xSize / 2 - this.fontRendererObj.getStringWidth(name) / 2, 6, 4210752);
|
||||
this.fontRendererObj.drawString(
|
||||
I18n.format("container.inventory", new Object[0]), 8,
|
||||
this.ySize - 96 + 2, 4210752);
|
||||
|
|
|
@ -37,7 +37,8 @@ public class GuiRollingMachine extends GuiContainer {
|
|||
protected void drawGuiContainerForegroundLayer(int p_146979_1_,
|
||||
int p_146979_2_)
|
||||
{
|
||||
this.fontRendererObj.drawString(StatCollector.translateToLocal("tile.techreborn.rollingmachine.name"), 50, 6, 4210752);
|
||||
String name = StatCollector.translateToLocal("tile.techreborn.rollingmachine.name");
|
||||
this.fontRendererObj.drawString(name, this.xSize / 2 - this.fontRendererObj.getStringWidth(name) / 2, 6, 4210752);
|
||||
this.fontRendererObj.drawString(
|
||||
I18n.format("container.inventory", new Object[0]), 8,
|
||||
this.ySize - 96 + 2, 4210752);
|
||||
|
|
|
@ -36,7 +36,8 @@ public class GuiThermalGenerator extends GuiContainer {
|
|||
protected void drawGuiContainerForegroundLayer(int p_146979_1_,
|
||||
int p_146979_2_)
|
||||
{
|
||||
this.fontRendererObj.drawString(StatCollector.translateToLocal("tile.techreborn.thermalGenerator.name"), 8, 6, 4210752);
|
||||
String name = StatCollector.translateToLocal("tile.techreborn.thermalGenerator.name");
|
||||
this.fontRendererObj.drawString(name, this.xSize / 2 - this.fontRendererObj.getStringWidth(name) / 2, 6, 4210752);
|
||||
this.fontRendererObj.drawString(
|
||||
I18n.format("container.inventory", new Object[0]), 8,
|
||||
this.ySize - 96 + 2, 4210752);
|
||||
|
|
Before Width: | Height: | Size: 1.8 KiB After Width: | Height: | Size: 1.8 KiB |
After Width: | Height: | Size: 2.8 KiB |
After Width: | Height: | Size: 1.8 KiB |
Before Width: | Height: | Size: 1.8 KiB After Width: | Height: | Size: 1.8 KiB |
After Width: | Height: | Size: 1.8 KiB |
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 1.8 KiB |
Before Width: | Height: | Size: 1.8 KiB After Width: | Height: | Size: 1.8 KiB |
Before Width: | Height: | Size: 2.1 KiB After Width: | Height: | Size: 2.1 KiB |
Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 1.7 KiB |
Before Width: | Height: | Size: 2.1 KiB After Width: | Height: | Size: 2.1 KiB |
Before Width: | Height: | Size: 2.4 KiB After Width: | Height: | Size: 2.4 KiB |
After Width: | Height: | Size: 2.6 KiB |
Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 1.7 KiB |
Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 1.8 KiB |
After Width: | Height: | Size: 1.9 KiB |
After Width: | Height: | Size: 2 KiB |