Search in sources :

Example 1 with GuiStringHandlerButton

use of logisticspipes.utils.gui.GuiStringHandlerButton in project LogisticsPipes by RS485.

the class GuiElectricManager method initGui.

@SuppressWarnings("unchecked")
@Override
public void initGui() {
    super.initGui();
    //Default item toggle:
    buttonList.clear();
    buttonList.add(new GuiStringHandlerButton(0, width / 2 - 6, height / 2 - 34, 88, 20, () -> _module.isDischargeMode() ? "Discharge Items" : "Charge Items"));
}
Also used : GuiStringHandlerButton(logisticspipes.utils.gui.GuiStringHandlerButton)

Example 2 with GuiStringHandlerButton

use of logisticspipes.utils.gui.GuiStringHandlerButton in project LogisticsPipes by RS485.

the class GuiFirewall method initGui.

@SuppressWarnings("unchecked")
@Override
public void initGui() {
    super.initGui();
    buttonList.clear();
    final String blocked = StringUtils.translate(GuiFirewall.PREFIX + "Blocked");
    final String allowed = StringUtils.translate(GuiFirewall.PREFIX + "Allowed");
    buttonList.add(new GuiStringHandlerButton(0, width / 2 + 23, height / 2 + 27 - 139, 60, 20, () -> pipe.isBlocking() ? blocked : allowed));
    buttonList.add(new GuiStringHandlerButton(1, width / 2 + 23, height / 2 + 60 - 139, 60, 20, () -> pipe.isBlockProvider() ? blocked : allowed));
    buttonList.add(new GuiStringHandlerButton(2, width / 2 + 23, height / 2 + 93 - 139, 60, 20, () -> pipe.isBlockCrafer() ? blocked : allowed));
    buttonList.add(new GuiStringHandlerButton(3, width / 2 + 23, height / 2 + 126 - 139, 60, 20, () -> pipe.isBlockSorting() ? blocked : allowed));
    buttonList.add(new GuiStringHandlerButton(4, width / 2 + 23, height / 2 + 160 - 139, 60, 20, () -> pipe.isBlockPower() ? blocked : allowed));
}
Also used : GuiStringHandlerButton(logisticspipes.utils.gui.GuiStringHandlerButton)

Example 3 with GuiStringHandlerButton

use of logisticspipes.utils.gui.GuiStringHandlerButton in project LogisticsPipes by RS485.

the class GuiAdvancedExtractor method initGui.

@SuppressWarnings("unchecked")
@Override
public void initGui() {
    super.initGui();
    //Default item toggle:
    buttonList.clear();
    buttonList.add(new GuiStringHandlerButton(0, width / 2 + 20, height / 2 - 34, 60, 20, () -> _advancedExtractor.areItemsIncluded() ? "Included" : "Excluded"));
    buttonList.add(new GuiButton(1, width / 2 - 25, height / 2 - 34, 40, 20, "Sneaky"));
}
Also used : GuiButton(net.minecraft.client.gui.GuiButton) GuiStringHandlerButton(logisticspipes.utils.gui.GuiStringHandlerButton)

Example 4 with GuiStringHandlerButton

use of logisticspipes.utils.gui.GuiStringHandlerButton in project LogisticsPipes by RS485.

the class GuiApiaristAnalyser method initGui.

@SuppressWarnings("unchecked")
@Override
public void initGui() {
    super.initGui();
    buttonList.clear();
    buttonList.add(new GuiStringHandlerButton(0, guiLeft + 12, guiTop + 20, 96, 20, () -> module.getExtractMode() == 1 ? "Extract Mode: on" : "Extract Mode: off"));
}
Also used : GuiStringHandlerButton(logisticspipes.utils.gui.GuiStringHandlerButton)

Example 5 with GuiStringHandlerButton

use of logisticspipes.utils.gui.GuiStringHandlerButton 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")));
}
Also used : SmallGuiButton(logisticspipes.utils.gui.SmallGuiButton) GuiStringHandlerButton(logisticspipes.utils.gui.GuiStringHandlerButton)

Aggregations

GuiStringHandlerButton (logisticspipes.utils.gui.GuiStringHandlerButton)6 GuiButton (net.minecraft.client.gui.GuiButton)2 SmallGuiButton (logisticspipes.utils.gui.SmallGuiButton)1