Search in sources :

Example 1 with ProgWidgetDropItem

use of me.desht.pneumaticcraft.common.progwidgets.ProgWidgetDropItem in project pnc-repressurized by TeamPneumatic.

the class GuiProgWidgetDropItem method initGui.

@Override
public void initGui() {
    super.initGui();
    List<GuiRadioButton> radioButtons = new ArrayList<>();
    GuiRadioButton radioButton = new GuiRadioButton(7, guiLeft + 4, guiTop + 80, 0xFF404040, "Random");
    radioButton.checked = !((ProgWidgetDropItem) widget).dropStraight();
    addWidget(radioButton);
    radioButtons.add(radioButton);
    radioButton.otherChoices = radioButtons;
    GuiRadioButton radioButton2 = new GuiRadioButton(8, guiLeft + 4, guiTop + 94, 0xFF404040, "Straight");
    radioButton2.checked = ((ProgWidgetDropItem) widget).dropStraight();
    addWidget(radioButton2);
    radioButtons.add(radioButton2);
    radioButton2.otherChoices = radioButtons;
}
Also used : ProgWidgetDropItem(me.desht.pneumaticcraft.common.progwidgets.ProgWidgetDropItem) ArrayList(java.util.ArrayList) GuiRadioButton(me.desht.pneumaticcraft.client.gui.widget.GuiRadioButton)

Aggregations

ArrayList (java.util.ArrayList)1 GuiRadioButton (me.desht.pneumaticcraft.client.gui.widget.GuiRadioButton)1 ProgWidgetDropItem (me.desht.pneumaticcraft.common.progwidgets.ProgWidgetDropItem)1