Examples of BeefGuiRedNetChannelSelector


Examples of erogenousbeef.bigreactors.gui.controls.BeefGuiRedNetChannelSelector

    topY += titleString.getHeight() + 8;
   
    selectedChannel = 0;
    for(int i = 0; i < channelLabelStrings.length; i+=2) {
      channelSelectors[i] = new BeefGuiRedNetChannelSelector(this, channelLabelStrings[i], i, leftX, topY, 60, 20);
      grabTargets[i] = new RedNetConfigGrabTarget(this, leftX + 42, topY+2, port, i);
     
      if(i == 0) {
        channelSelectors[i].setSelected(true);
      }

      leftX += 74;
     
      channelSelectors[i + 1] = new BeefGuiRedNetChannelSelector(this, channelLabelStrings[i+1], i+1, leftX, topY, 60, 20);
      grabTargets[i + 1] = new RedNetConfigGrabTarget(this, leftX + 42, topY+2, port, i + 1);
      topY += 24;
      leftX = guiLeft + 4;
     
      registerControl(channelSelectors[i]);
View Full Code Here

Examples of erogenousbeef.bigreactors.gui.controls.BeefGuiRedNetChannelSelector

    if(clickedControl instanceof BeefGuiRedNetChannelSelector) {
      // Set all selectors to unselected, except the one we clicked
      // Also change the subsetting selectors, in case those are visible
      for(IBeefGuiControl control : controls) {
        if(control instanceof BeefGuiRedNetChannelSelector) {
          BeefGuiRedNetChannelSelector selector = (BeefGuiRedNetChannelSelector)control;

          boolean wasSelected = selector.isSelected();
          selector.setSelected(control == clickedControl);
          if(control == clickedControl) {
            this.selectedChannel = selector.getChannel();
          }
         
          onChannelChanged(selector.getChannel());
        }
      }
    }
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.