Examples of attachWidget()


Examples of org.spoutcraft.api.gui.GenericScrollArea.attachWidget()

    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);
View Full Code Here

Examples of org.spoutcraft.api.gui.GenericScrollArea.attachWidget()

    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.");
View Full Code Here

Examples of org.spoutcraft.api.gui.InGameHUD.attachWidget()

        if (mainScreen.containsWidget(widget.getId())) {
          mainScreen.updateWidget(widget);
          widget.setScreen(mainScreen);
        } else {
          widget.setScreen(mainScreen);
          mainScreen.attachWidget(widget.getAddon(), widget);
        }
      } else if (popup != null && screen.equals(popup.getId())) { // Determine if this is a widget on the popup screen
        if (popup.containsWidget(widget.getId())) {
          popup.updateWidget(widget);
          widget.setScreen(popup);
View Full Code Here

Examples of org.spoutcraft.api.gui.PopupScreen.attachWidget()

        if (popup.containsWidget(widget.getId())) {
          popup.updateWidget(widget);
          widget.setScreen(popup);
        } else {
          widget.setScreen(popup);
          popup.attachWidget(widget.getAddon(), widget);
        }
      } else if (overlay != null && screen.equals(overlay.getId())) { // Determine if this is a widget on an overlay screen
        if (overlay.containsWidget(widget.getId())) {
          overlay.updateWidget(widget);
          widget.setScreen(overlay);
View Full Code Here

Examples of org.spoutcraft.api.gui.Screen.attachWidget()

        if (overlay.containsWidget(widget.getId())) {
          overlay.updateWidget(widget);
          widget.setScreen(overlay);
        } else {
          widget.setScreen(overlay);
          overlay.attachWidget(widget.getAddon(), widget);
        }
      }
    }
  }
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.