Fixes the layout of the aesu gui

This commit is contained in:
modmuss50 2015-06-14 11:37:42 +01:00
parent 870958cd68
commit f5bd04db3c
2 changed files with 11 additions and 11 deletions

View file

@ -29,8 +29,8 @@ public class ContainerAesu extends TechRebornContainer {
this.player = player;
// input
this.addSlotToContainer(new Slot(tileaesu.inventory, 0, 128, 14));
this.addSlotToContainer(new Slot(tileaesu.inventory, 1, 128, 50));
this.addSlotToContainer(new Slot(tileaesu.inventory, 0, 116, 23));
this.addSlotToContainer(new Slot(tileaesu.inventory, 1, 116, 59));
int i;
@ -39,14 +39,14 @@ public class ContainerAesu extends TechRebornContainer {
for (int j = 0; j < 9; ++j)
{
this.addSlotToContainer(new Slot(player.inventory, j + i * 9
+ 9, 8 + j * 18, 84 + i * 18));
+ 9, 7 + j * 16, 84 + i * 18 + 30));
}
}
for (i = 0; i < 9; ++i)
{
this.addSlotToContainer(new Slot(player.inventory, i, 8 + i * 18,
142));
this.addSlotToContainer(new Slot(player.inventory, i, 7 + i * 16,
142 + 30));
}
}

View file

@ -26,8 +26,8 @@ public class GuiAesu extends GuiContainer {
TileAesu tileaesu)
{
super(new ContainerAesu(tileaesu, player));
this.xSize = 176;
this.ySize = 167;
this.xSize = 156;
this.ySize = 200;
aesu = tileaesu;
this.containerAesu = (ContainerAesu) this.inventorySlots;
}
@ -38,10 +38,10 @@ public class GuiAesu extends GuiContainer {
this.buttonList.clear();
int k = (this.width - this.xSize) / 2;
int l = (this.height - this.ySize) / 2;
this.buttonList.add(new GuiHiddenButton(0, k + 106, l + 4, 18, 18, ""));
this.buttonList.add(new GuiHiddenButton(1, k + 106, l + 4 + 18, 18, 18, ""));
this.buttonList.add(new GuiHiddenButton(2, k + 106, l + 4 + (18*2), 18, 18, ""));
this.buttonList.add(new GuiHiddenButton(3, k + 106, l + 4 + (18*3), 18, 18, ""));
this.buttonList.add(new GuiButton(0, k + 96, l + 8, 18, 20, "++"));
this.buttonList.add(new GuiButton(1, k + 96, l + 8 + 22, 18, 20, "+"));
this.buttonList.add(new GuiButton(2, k + 96, l + 8 + (22*2), 18, 20, "-"));
this.buttonList.add(new GuiButton(3, k + 96, l + 8 + (22*3), 18, 20, "--"));
}
@Override