closes #180
This commit is contained in:
parent
4a12aaf581
commit
14b387dd56
2 changed files with 13 additions and 16 deletions
|
@ -34,13 +34,13 @@ public class ContainerIDSU extends TechRebornContainer {
|
||||||
for (i = 0; i < 3; ++i) {
|
for (i = 0; i < 3; ++i) {
|
||||||
for (int j = 0; j < 9; ++j) {
|
for (int j = 0; j < 9; ++j) {
|
||||||
this.addSlotToContainer(new Slot(player.inventory, j + i * 9
|
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) {
|
for (i = 0; i < 9; ++i) {
|
||||||
this.addSlotToContainer(new Slot(player.inventory, i, 7 + i * 16,
|
this.addSlotToContainer(new Slot(player.inventory, i, 8 + i * 18,
|
||||||
142 + 30));
|
142));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -21,21 +21,18 @@ public class GuiIDSU extends GuiBase {
|
||||||
|
|
||||||
ContainerIDSU containerIDSU;
|
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;
|
ElementTextFieldLimited idFeild;
|
||||||
ElementTextField nameFeild;
|
ElementTextField nameFeild;
|
||||||
|
|
||||||
|
public GuiIDSU(EntityPlayer player, TileIDSU tileIDSU) {
|
||||||
public GuiIDSU(EntityPlayer player,
|
|
||||||
TileIDSU tileIDSU) {
|
|
||||||
super(new ContainerIDSU(tileIDSU, player));
|
super(new ContainerIDSU(tileIDSU, player));
|
||||||
this.xSize = 156;
|
this.xSize = 176;
|
||||||
this.ySize = 200;
|
this.ySize = 165;
|
||||||
idsu = tileIDSU;
|
idsu = tileIDSU;
|
||||||
this.containerIDSU = (ContainerIDSU) this.inventorySlots;
|
this.containerIDSU = (ContainerIDSU) this.inventorySlots;
|
||||||
texture = new ResourceLocation(
|
texture = new ResourceLocation("techreborn", "textures/gui/aesu.png");
|
||||||
"techreborn", "textures/gui/aesu.png");
|
|
||||||
drawTitle = false;
|
drawTitle = false;
|
||||||
drawInventory = false;
|
drawInventory = false;
|
||||||
name = StatCollector.translateToLocal("tile.techreborn.aesu.name");
|
name = StatCollector.translateToLocal("tile.techreborn.aesu.name");
|
||||||
|
@ -47,10 +44,10 @@ public class GuiIDSU extends GuiBase {
|
||||||
this.buttonList.clear();
|
this.buttonList.clear();
|
||||||
int k = (this.width - this.xSize) / 2;
|
int k = (this.width - this.xSize) / 2;
|
||||||
int l = (this.height - this.ySize) / 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(0, k + 128, l + 5, 15, 15, "++"));
|
||||||
this.buttonList.add(new GuiButton(1, k + 96, l + 8 + 22, 18, 20, "+"));
|
this.buttonList.add(new GuiButton(1, k + 128, l + 5 + 20, 15, 15, "+"));
|
||||||
this.buttonList.add(new GuiButton(2, k + 96, l + 8 + (22 * 2), 18, 20, "-"));
|
this.buttonList.add(new GuiButton(2, k + 128, l + 5 + (20 * 2), 15, 15, "-"));
|
||||||
this.buttonList.add(new GuiButton(3, k + 96, l + 8 + (22 * 3), 18, 20, "--"));
|
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, "+"));
|
this.buttonList.add(new GuiButton(4, k + 40, l + 10, 10, 10, "+"));
|
||||||
|
|
||||||
listBox.gui = this;
|
listBox.gui = this;
|
||||||
|
@ -65,7 +62,7 @@ public class GuiIDSU extends GuiBase {
|
||||||
|
|
||||||
addElement(idFeild);
|
addElement(idFeild);
|
||||||
|
|
||||||
nameFeild = new ElementTextField(this, 10, 100, 50, 10);
|
nameFeild = new ElementTextField(this, 70, 10, 50, 10);
|
||||||
|
|
||||||
addElement(nameFeild);
|
addElement(nameFeild);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue