Search in sources :

Example 21 with SmallGuiButton

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

Example 22 with SmallGuiButton

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

Example 23 with SmallGuiButton

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

Aggregations

SmallGuiButton (logisticspipes.utils.gui.SmallGuiButton)23 GuiButton (net.minecraft.client.gui.GuiButton)10 GuiCheckBox (logisticspipes.utils.gui.GuiCheckBox)5 ItemDisplay (logisticspipes.utils.gui.ItemDisplay)5 SearchBar (logisticspipes.utils.gui.SearchBar)4 ItemStack (net.minecraft.item.ItemStack)2 ArrayList (java.util.ArrayList)1 BitSet (java.util.BitSet)1 Collection (java.util.Collection)1 HashMap (java.util.HashMap)1 Iterator (java.util.Iterator)1 List (java.util.List)1 Locale (java.util.Locale)1 Map (java.util.Map)1 Entry (java.util.Map.Entry)1 Collectors (java.util.stream.Collectors)1 LogisticsPipes (logisticspipes.LogisticsPipes)1 Configs (logisticspipes.config.Configs)1 GuiDiskPopup (logisticspipes.gui.popup.GuiDiskPopup)1 GuiRequestPopup (logisticspipes.gui.popup.GuiRequestPopup)1