use of logisticspipes.utils.gui.SmallGuiButton in project LogisticsPipes by RS485.
the class GuiRecipeImport method initGui.
@Override
@SuppressWarnings("unchecked")
public void initGui() {
super.initGui();
buttonList.clear();
buttonList.add(new SmallGuiButton(0, guiLeft + 100, guiTop + 180, 40, 10, "Done"));
buttonList.add(new SmallGuiButton(1, guiLeft + 10, guiTop + 180, 60, 10, "Most likely"));
int x = 0;
int y = 0;
for (Canidates canidate : list) {
buttonList.add(new SmallGuiButton(10 + x + y * 3, guiLeft + 38 + x * 40, guiTop + 88 + y * 40, 15, 10, "/\\"));
buttonList.add(new SmallGuiButton(20 + x + y * 3, guiLeft + 38 + x * 40, guiTop + 98 + y * 40, 15, 10, "\\/"));
x++;
if (x > 2) {
x = 0;
y++;
}
}
}
use of logisticspipes.utils.gui.SmallGuiButton in project LogisticsPipes by RS485.
the class GuiItemSink method initGui.
@SuppressWarnings("unchecked")
@Override
public void initGui() {
super.initGui();
// Default item toggle:
buttonList.clear();
buttonList.add(new GuiStringHandlerButton(0, width / 2 + 50, height / 2 - 34, 30, 20, () -> StringUtils.translate(GuiItemSink.PREFIX + (_itemSink.isDefaultRoute() ? "Yes" : "No"))));
buttonList.add(new SmallGuiButton(1, guiLeft + 10, guiTop + 37, 40, 10, StringUtils.translate(GuiItemSink.PREFIX + "import")));
}
use of logisticspipes.utils.gui.SmallGuiButton in project LogisticsPipes by RS485.
the class GuiOreDictItemSink method initGui.
@SuppressWarnings("unchecked")
@Override
public void initGui() {
super.initGui();
buttonList.clear();
buttonList.add(new SmallGuiButton(0, guiLeft + 159, guiTop + 5, 10, 10, ""));
buttonList.add(new SmallGuiButton(1, guiLeft + 159, guiTop + 17, 10, 10, ""));
((GuiButton) buttonList.get(0)).enabled = true;
((GuiButton) buttonList.get(1)).enabled = true;
}
Aggregations