Package mods.railcraft.client.gui.buttons

Examples of mods.railcraft.client.gui.buttons.GuiToggleButton


        if (actionManager == null)
            return;
        buttonList.clear();
        int w = (width - xSize) / 2;
        int h = (height - ySize) / 2;
        buttonList.add(new GuiToggleButton(0, w + 7, h + 30, 50, LocalizationPlugin.translate(SignalAspect.GREEN.getLocalizationTag()), aspects[SignalAspect.GREEN.ordinal()]));
        buttonList.add(new GuiToggleButton(1, w + 12, h + 55, 70, LocalizationPlugin.translate(SignalAspect.BLINK_YELLOW.getLocalizationTag()), aspects[SignalAspect.BLINK_YELLOW.ordinal()]));
        buttonList.add(new GuiToggleButton(2, w + 63, h + 30, 50, LocalizationPlugin.translate(SignalAspect.YELLOW.getLocalizationTag()), aspects[SignalAspect.YELLOW.ordinal()]));
        buttonList.add(new GuiToggleButton(3, w + 94, h + 55, 70, LocalizationPlugin.translate(SignalAspect.BLINK_RED.getLocalizationTag()), aspects[SignalAspect.BLINK_RED.ordinal()]));
        buttonList.add(new GuiToggleButton(4, w + 119, h + 30, 50, LocalizationPlugin.translate(SignalAspect.RED.getLocalizationTag()), aspects[SignalAspect.RED.ordinal()]));
        buttonList.add(lockButton = new GuiMultiButton(5, w + 152, h + 8, 16, actionManager.getLockController()));
        lockButton.enabled = false;
    }
View Full Code Here


        if (tile == null)
            return;
        buttonList.clear();
        int w = (width - xSize) / 2;
        int h = (height - ySize) / 2;
        buttonList.add(new GuiToggleButton(0, w + 75, h + 18, 70, BUTTON1, waitIfEmpty));
        buttonList.add(new GuiToggleButton(1, w + 75, h + 42, 70, BUTTON2, waitTillFull));
    }
View Full Code Here

        buttonList.clear();
        int w = (width - xSize) / 2;
        int h = (height - ySize) / 2;

        List<GuiBetterButton> row1 = new ArrayList<GuiBetterButton>();
        row1.add(new GuiToggleButton(0, 0, h + 25, 50, "Chicken", detector.chicken));
        row1.add(new GuiToggleButton(1, 0, h + 25, 50, "Cow", detector.cow));
        row1.add(new GuiToggleButton(2, 0, h + 25, 50, "Pig", detector.pig));
        row1.add(new GuiToggleButton(3, 0, h + 25, 50, "Sheep", detector.sheep));
        GuiTools.newButtonRowAuto(buttonList, w, xSize, row1);

        List<GuiBetterButton> row2 = new ArrayList<GuiBetterButton>();
        row2.add(new GuiToggleButton(4, 0, h + 55, 50, "Wolf", detector.wolf));
        row2.add(new GuiToggleButton(5, 0, h + 55, 70, "Mooshroom", detector.mooshroom));
        row2.add(new GuiToggleButton(6, 0, h + 55, 50, "Other", detector.other));
        GuiTools.newButtonRowAuto(buttonList, w, xSize, row2);
    }
View Full Code Here

        if (tile == null)
            return;
        buttonList.clear();
        int w = (width - xSize) / 2;
        int h = (height - ySize) / 2;
        buttonList.add(new GuiToggleButton(0, w + 75, h + 18, 70, button1Label, tile.waitTillEmpty()));
    }
View Full Code Here

TOP

Related Classes of mods.railcraft.client.gui.buttons.GuiToggleButton

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.