use of logisticspipes.utils.gui.InputBar in project LogisticsPipes by RS485.
the class GuiAddTracking method initGui.
@Override
public void initGui() {
Keyboard.enableRepeatEvents(true);
super.initGui();
buttonList.clear();
// Refresh
buttonList.add(new GuiButton(3, guiLeft + 4, bottom - 25, 50, 20, "Refresh"));
buttonList.add(new GuiButton(0, right - 55, bottom - 25, 50, 20, "Add"));
// Next page
buttonList.add(new SmallGuiButton(1, right - 15, guiTop + 5, 10, 10, ">"));
// Prev page
buttonList.add(new SmallGuiButton(2, right - 90, guiTop + 5, 10, 10, "<"));
// Sort
buttonList.add(new SmallGuiButton(20, xCenter - 13, bottom - 21, 26, 10, "Sort"));
if (search == null) {
search = new InputBar(fontRenderer, getBaseScreen(), guiLeft + 30, bottom - 78, right - guiLeft - 58, 15);
}
search.reposition(guiLeft + 10, bottom - 58, right - guiLeft - 20, 15);
if (itemDisplay == null) {
itemDisplay = new ItemDisplay(this, fontRenderer, getBaseScreen(), null, guiLeft + 10, guiTop + 18, xSize - 20, ySize - 100, 0, 0, 0, new int[] { 1, 10, 64, 64 }, true);
}
itemDisplay.reposition(guiLeft + 10, guiTop + 18, xSize - 20, ySize - 80, 0, 0);
}
use of logisticspipes.utils.gui.InputBar in project LogisticsPipes by RS485.
the class SelectItemOutOfList method initGui.
@Override
public void initGui() {
Keyboard.enableRepeatEvents(true);
super.initGui();
buttonList.clear();
buttonList.add(new SmallGuiButton(0, guiLeft + 70, guiTop + 5, 10, 10, "<"));
buttonList.add(new SmallGuiButton(1, guiLeft + 138, guiTop + 5, 10, 10, ">"));
buttonList.add(new GuiButton(2, guiLeft + 100, bottom - 26, 50, 20, "Select"));
if (search == null) {
search = new InputBar(fontRenderer, this.getBaseScreen(), guiLeft + 7, bottom - 23, right - guiLeft - 64, 15, false);
}
search.reposition(guiLeft + 7, bottom - 23, right - guiLeft - 64, 15);
if (itemDisplay == null) {
itemDisplay = new ItemDisplay(this, fontRenderer, this.getBaseScreen(), null, guiLeft + 10, guiTop + 18, xSize - 20, ySize - 48, 0, 0, 0, new int[] { 1, 10, 64, 64 }, true);
itemDisplay.setItemList(candidate);
}
itemDisplay.reposition(guiLeft + 8, guiTop + 18, xSize - 16, ySize - 48, 0, 0);
}
use of logisticspipes.utils.gui.InputBar in project LogisticsPipes by RS485.
the class GuiProgramCompiler method initGui.
@Override
public void initGui() {
Keyboard.enableRepeatEvents(true);
super.initGui();
buttonList.clear();
buttonList.add(new SmallGuiButton(0, guiLeft + 8, guiTop + 90, 15, 10, "/\\"));
buttonList.add(new SmallGuiButton(1, guiLeft + 24, guiTop + 90, 15, 10, "\\/"));
buttonList.add(new SmallGuiButton(2, guiLeft + 40, guiTop + 90, 40, 10, "Unlock"));
buttonList.add(new SmallGuiButton(3, guiLeft + 100, guiTop + 90, 15, 10, "/\\"));
buttonList.add(new SmallGuiButton(4, guiLeft + 116, guiTop + 90, 15, 10, "\\/"));
buttonList.add(programmerButton = new SmallGuiButton(5, guiLeft + 132, guiTop + 90, 40, 10, "Compile"));
search = new InputBar(fontRenderer, this, guiLeft + 30, guiTop + 11, 120, 16);
}
use of logisticspipes.utils.gui.InputBar in project LogisticsPipes by RS485.
the class GuiOrderer method initGui.
@Override
public void initGui() {
Keyboard.enableRepeatEvents(true);
super.initGui();
buttonList.clear();
// Request
buttonList.add(new GuiButton(0, right - 55, bottom - 25, 50, 20, "Request"));
// Next page
buttonList.add(new SmallGuiButton(1, right - 15, guiTop + 5, 10, 10, ">"));
// Prev page
buttonList.add(new SmallGuiButton(2, right - 90, guiTop + 5, 10, 10, "<"));
// -64
buttonList.add(new SmallGuiButton(10, xCenter - 51, bottom - 15, 26, 10, "---"));
// -10
buttonList.add(new SmallGuiButton(4, xCenter - 51, bottom - 26, 15, 10, "--"));
// -1
buttonList.add(new SmallGuiButton(5, xCenter - 35, bottom - 26, 10, 10, "-"));
// +1
buttonList.add(new SmallGuiButton(6, xCenter + 26, bottom - 26, 10, 10, "+"));
// +10
buttonList.add(new SmallGuiButton(7, xCenter + 38, bottom - 26, 15, 10, "++"));
// +64
buttonList.add(new SmallGuiButton(11, xCenter + 26, bottom - 15, 26, 10, "+++"));
// Popup
buttonList.add(new GuiCheckBox(8, guiLeft + 9, bottom - 60, 14, 14, Configs.DISPLAY_POPUP));
// Sort
buttonList.add(new SmallGuiButton(20, xCenter - 13, bottom - 41, 26, 10, "Sort"));
if (search == null) {
search = new InputBar(fontRenderer, this, guiLeft + 10, bottom - 78, xSize - 20, 15);
}
search.reposition(guiLeft + 10, bottom - 78, xSize - 20, 15);
if (itemDisplay == null) {
itemDisplay = new ItemDisplay(this, fontRenderer, this, this, guiLeft + 10, guiTop + 18, xSize - 20, ySize - 100, xCenter, bottom - 24, 49, new int[] { 1, 10, 64, 64 }, true);
}
itemDisplay.reposition(guiLeft + 10, guiTop + 18, xSize - 20, ySize - 100, xCenter, bottom - 24);
}
use of logisticspipes.utils.gui.InputBar in project LogisticsPipes by RS485.
the class GuiAddChannelPopup method initGui.
@Override
public void initGui() {
Keyboard.enableRepeatEvents(true);
super.initGui();
buttonList.clear();
buttonList.add(new GuiCheckBox(0, guiLeft + 94, guiTop + 66, 16, 16, true));
buttonList.add(new GuiCheckBox(1, guiLeft + 94, guiTop + 81, 16, 16, false));
buttonList.add(new GuiCheckBox(2, guiLeft + 94, guiTop + 96, 16, 16, false));
buttonList.add(new SmallGuiButton(4, guiLeft + 58, guiTop + 120, 50, 10, TextUtil.translate(GUI_LANG_KEY + "save")));
if (this.textInput == null) {
this.textInput = new InputBar(Minecraft.getMinecraft().fontRenderer, this.getBaseScreen(), guiLeft + 30, guiTop + 32, right - guiLeft - 20, 15);
}
this.textInput.reposition(guiLeft + 10, guiTop + 34, right - guiLeft - 20, 15);
((GuiCheckBox) buttonList.get(1)).enabled = responsibleSecurityID != null;
}
Aggregations