This commit is contained in:
gigabit101 2015-10-09 22:31:26 +01:00
parent 4a12aaf581
commit 14b387dd56
2 changed files with 13 additions and 16 deletions

View file

@ -34,13 +34,13 @@ public class ContainerIDSU extends TechRebornContainer {
for (i = 0; i < 3; ++i) {
for (int j = 0; j < 9; ++j) {
this.addSlotToContainer(new Slot(player.inventory, j + i * 9
+ 9, 7 + j * 16, 84 + i * 18 + 30));
+ 9, 8 + j * 18, 84 + i * 18));
}
}
for (i = 0; i < 9; ++i) {
this.addSlotToContainer(new Slot(player.inventory, i, 7 + i * 16,
142 + 30));
this.addSlotToContainer(new Slot(player.inventory, i, 8 + i * 18,
142));
}
}

View file

@ -21,21 +21,18 @@ public class GuiIDSU extends GuiBase {
ContainerIDSU containerIDSU;
public static ElementListBox listBox = new ElementListBox(null, 10, 28, 80, 60);
public static ElementListBox listBox = new ElementListBox(null, 10, 28, 100, 40);
ElementTextFieldLimited idFeild;
ElementTextField nameFeild;
public GuiIDSU(EntityPlayer player,
TileIDSU tileIDSU) {
public GuiIDSU(EntityPlayer player, TileIDSU tileIDSU) {
super(new ContainerIDSU(tileIDSU, player));
this.xSize = 156;
this.ySize = 200;
this.xSize = 176;
this.ySize = 165;
idsu = tileIDSU;
this.containerIDSU = (ContainerIDSU) this.inventorySlots;
texture = new ResourceLocation(
"techreborn", "textures/gui/aesu.png");
texture = new ResourceLocation("techreborn", "textures/gui/aesu.png");
drawTitle = false;
drawInventory = false;
name = StatCollector.translateToLocal("tile.techreborn.aesu.name");
@ -47,10 +44,10 @@ public class GuiIDSU extends GuiBase {
this.buttonList.clear();
int k = (this.width - this.xSize) / 2;
int l = (this.height - this.ySize) / 2;
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, "--"));
this.buttonList.add(new GuiButton(0, k + 128, l + 5, 15, 15, "++"));
this.buttonList.add(new GuiButton(1, k + 128, l + 5 + 20, 15, 15, "+"));
this.buttonList.add(new GuiButton(2, k + 128, l + 5 + (20 * 2), 15, 15, "-"));
this.buttonList.add(new GuiButton(3, k + 128, l + 5 + (20 * 3), 15, 15, "--"));
this.buttonList.add(new GuiButton(4, k + 40, l + 10, 10, 10, "+"));
listBox.gui = this;
@ -65,7 +62,7 @@ public class GuiIDSU extends GuiBase {
addElement(idFeild);
nameFeild = new ElementTextField(this, 10, 100, 50, 10);
nameFeild = new ElementTextField(this, 70, 10, 50, 10);
addElement(nameFeild);