Removed Recipes button and moved to progress bar

This commit is contained in:
Gig 2015-06-27 10:01:39 +01:00
parent 6f08a56df2
commit d1196d0a7c
25 changed files with 90 additions and 41 deletions

View file

@ -26,11 +26,8 @@ public class GuiAlloyFurnace extends GuiContainer {
@Override
public void initGui() {
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"));
super.initGui();
}

View file

@ -24,10 +24,8 @@ public class GuiAlloySmelter extends GuiContainer {
@Override
public void initGui() {
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"));
super.initGui();
}

View file

@ -26,10 +26,8 @@ public class GuiAssemblingMachine extends GuiContainer {
@Override
public void initGui() {
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"));
super.initGui();
}

View file

@ -18,8 +18,7 @@ public class GuiBlastFurnace extends GuiContainer {
TileBlastFurnace blastfurnace;
public GuiBlastFurnace(EntityPlayer player,
TileBlastFurnace tileblastfurnace)
public GuiBlastFurnace(EntityPlayer player, TileBlastFurnace tileblastfurnace)
{
super(new ContainerBlastFurnace(tileblastfurnace, player));
this.xSize = 176;
@ -29,17 +28,13 @@ public class GuiBlastFurnace extends GuiContainer {
@Override
public void initGui() {
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"));
super.initGui();
}
@Override
protected void drawGuiContainerBackgroundLayer(float p_146976_1_,
int p_146976_2_, int p_146976_3_)
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;

View file

@ -24,10 +24,8 @@ public class GuiCentrifuge extends GuiContainer {
@Override
public void initGui() {
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"));
super.initGui();
}

View file

@ -26,10 +26,8 @@ public class GuiChemicalReactor extends GuiContainer {
@Override
public void initGui() {
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"));
super.initGui();
}

View file

@ -25,8 +25,7 @@ public class GuiGasTurbine extends GuiContainer {
}
@Override
protected void drawGuiContainerBackgroundLayer(float p_146976_1_,
int p_146976_2_, int p_146976_3_)
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;

View file

@ -29,10 +29,8 @@ public class GuiImplosionCompressor extends GuiContainer{
@Override
public void initGui() {
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"));
super.initGui();
}

View file

@ -31,10 +31,8 @@ public class GuiIndustrialElectrolyzer extends GuiContainer {
@Override
public void initGui() {
// 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"));
super.initGui();
}

View file

@ -27,11 +27,8 @@ public class GuiIndustrialSawmill extends GuiContainer {
@Override
public void initGui() {
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"));
super.initGui();
}

View file

@ -26,10 +26,8 @@ public class GuiLathe extends GuiContainer {
@Override
public void initGui() {
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"));
super.initGui();
}

View file

@ -27,10 +27,8 @@ public class GuiPlateCuttingMachine extends GuiContainer {
@Override
public void initGui() {
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"));
super.initGui();
}

View file

@ -15,8 +15,7 @@ public class GuiRollingMachine extends GuiContainer {
"techreborn", "textures/gui/rolling_machine.png");
TileRollingMachine rollingMachine;
public GuiRollingMachine(EntityPlayer player,
TileRollingMachine tileRollingmachine)
public GuiRollingMachine(EntityPlayer player, TileRollingMachine tileRollingmachine)
{
super(new ContainerRollingMachine(tileRollingmachine, player));
this.xSize = 176;
@ -25,8 +24,7 @@ public class GuiRollingMachine extends GuiContainer {
}
@Override
protected void drawGuiContainerBackgroundLayer(float p_146976_1_,
int p_146976_2_, int p_146976_3_)
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;

View file

@ -25,8 +25,7 @@ public class GuiSemifluidGenerator extends GuiContainer {
}
@Override
protected void drawGuiContainerBackgroundLayer(float p_146976_1_,
int p_146976_2_, int p_146976_3_)
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;