Package org.spoutcraft.api.gui

Examples of org.spoutcraft.api.gui.RadioButton


      screen.attachWidget("Spoutcraft", message);

      //top += 47;
    }

    RadioButton button;
    button = (RadioButton) new FavorPerformanceButton("Favor Performance", message).setGroup(1).setAlign(WidgetAnchor.TOP_CENTER);
    button.setWidth(150).setHeight(20).setX(left).setY(top);
    button.setTooltip("Spoutcraft will attempt to provide smooth framerates, potentially at the cost of appearance.");
    screen.attachWidget("Spoutcraft", button);
    button.setSelected(Configuration.isAutomatePerformance() && Configuration.getAutomateMode() == 0);

    button = (RadioButton) new OptimalGameplayButton("Balanced Gameplay", message).setGroup(1).setAlign(WidgetAnchor.TOP_CENTER);
    button.setWidth(150).setHeight(20).setX(right).setY(top);
    button.setTooltip("Spoutcraft will attempt to provide reasonable framerates and appearance.");
    screen.attachWidget("Spoutcraft", button);
    button.setSelected(Configuration.isAutomatePerformance() && Configuration.getAutomateMode() == 1);

    top += 22;

    button = (RadioButton) new FavorAppearanceButton("Favor Appearance", message).setGroup(1).setAlign(WidgetAnchor.TOP_CENTER);
    button.setWidth(150).setHeight(20).setX(left).setY(top);
    button.setTooltip("Spoutcraft will attempt to provide the best appearance, but potentially at the cost of framerates.");
    screen.attachWidget("Spoutcraft", button);
    button.setSelected(Configuration.isAutomatePerformance() && Configuration.getAutomateMode() == 2);

    button = (RadioButton) new ManualSelectionButton("Manual Selection", message, parent).setGroup(1).setAlign(WidgetAnchor.TOP_CENTER);
    button.setWidth(150).setHeight(20).setX(right).setY(top);
    button.setTooltip("Disable automatic performance settings and adjust the settings manually.");
    screen.attachWidget("Spoutcraft", button);
    button.setSelected(!Configuration.isAutomatePerformance());

    top += 22;

    linebreak = new GenericGradient();
    linebreak.setBottomColor(grey);
View Full Code Here


      screen.attachWidget("Spoutcraft", message);

      //top += 47;
    }

    RadioButton button;
    button = (RadioButton) new FavorPerformanceButton("Favor Performance", message).setGroup(1).setAlign(WidgetAnchor.TOP_CENTER);
    button.setWidth(150).setHeight(20).setX(left).setY(top);
    button.setTooltip("Spoutcraft will attempt to provide smooth framerates, potentially at the cost of appearance.");
    screen.attachWidget("Spoutcraft", button);
    button.setSelected(Configuration.isAutomatePerformance() && Configuration.getAutomateMode() == 0);

    button = (RadioButton) new OptimalGameplayButton("Balanced Gameplay", message).setGroup(1).setAlign(WidgetAnchor.TOP_CENTER);
    button.setWidth(150).setHeight(20).setX(right).setY(top);
    button.setTooltip("Spoutcraft will attempt to provide reasonable framerates and appearance.");
    screen.attachWidget("Spoutcraft", button);
    button.setSelected(Configuration.isAutomatePerformance() && Configuration.getAutomateMode() == 1);

    top += 22;

    button = (RadioButton) new FavorAppearanceButton("Favor Appearance", message).setGroup(1).setAlign(WidgetAnchor.TOP_CENTER);
    button.setWidth(150).setHeight(20).setX(left).setY(top);
    button.setTooltip("Spoutcraft will attempt to provide the best appearance, but potentially at the cost of framerates.");
    screen.attachWidget("Spoutcraft", button);
    button.setSelected(Configuration.isAutomatePerformance() && Configuration.getAutomateMode() == 2);

    button = (RadioButton) new ManualSelectionButton("Manual Selection", message, parent).setGroup(1).setAlign(WidgetAnchor.TOP_CENTER);
    button.setWidth(150).setHeight(20).setX(right).setY(top);
    button.setTooltip("Disable automatic performance settings and adjust the settings manually.");
    screen.attachWidget("Spoutcraft", button);
    button.setSelected(!Configuration.isAutomatePerformance());

    top += 22;
    // TODO add option controls to the scroll area
  }
View Full Code Here

    if (control instanceof CheckBox) {
      CheckBox check = (CheckBox) control;
      check.setChecked(!check.isChecked());
    }
    if (control instanceof RadioButton) {
      RadioButton radio = (RadioButton) control;
      radio.setSelected(true);
    }
    this.buttonClicked((Button) control);
    SpoutClient.getInstance().getPacketManager().sendSpoutPacket(new PacketControlAction(screen, control, 1));
    ((Button) control).onButtonClick();
    if (control instanceof GenericComboBox) {
View Full Code Here

TOP

Related Classes of org.spoutcraft.api.gui.RadioButton

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.