Package erogenousbeef.bigreactors.gui.controls

Examples of erogenousbeef.bigreactors.gui.controls.GuiSelectableButton


    int buttonOrdinal = MINIMUM_SETTING_SELECTOR_ID;
    leftX = guiLeft + 16;
    CircuitType currentCircuitType = port.getCircuitType();
    for(CircuitType ct : CircuitType.values()) {
      if(ct == CircuitType.DISABLED) { continue; }
      GuiSelectableButton newBtn = new GuiSelectableButton(buttonOrdinal++, leftX, topY, reactorPartBlock.getRedNetConfigIcon(ct), 0xFF00FF00, this);
      newBtn.displayString = GuiReactorRedNetPort.grabbableTooltips[ct.ordinal()-1];

      if(ct == currentCircuitType) {
        newBtn.setSelected(true);
      }

      leftX += 28;
      if(leftX > guiLeft + 130) {
        topY += 28;
View Full Code Here


      }
    }
    else if(clickedButton.id >= MINIMUM_SETTING_SELECTOR_ID && clickedButton.id < MINIMUM_SETTING_SELECTOR_ID + btnMap.size()) {
      CircuitType ct = CircuitType.DISABLED;
      for(Entry<CircuitType, GuiSelectableButton> pair : btnMap.entrySet()) {
        GuiSelectableButton btn = pair.getValue();
        btn.setSelected(btn.id == clickedButton.id);

        if(btn.isSelected()) {
          ct = pair.getKey();
        }
      }
     
      setSubSettingsToDefaults(ct);
View Full Code Here

TOP

Related Classes of erogenousbeef.bigreactors.gui.controls.GuiSelectableButton

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.