Examples of attachWidget()


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

    control.setWidth(150).setHeight(20).setX(left).setY(top);
    screen.attachWidget("Spoutcraft", control);

    control = new DifficultyButton().setAlign(WidgetAnchor.TOP_CENTER);
    control.setWidth(150).setHeight(20).setX(right).setY(top);
    screen.attachWidget("Spoutcraft", control);
    top += 22;

    control = new TexturesButton(this).setAlign(WidgetAnchor.TOP_CENTER);
    control.setWidth(150).setHeight(20).setX(center).setY(top);
    screen.attachWidget("Spoutcraft", control);
View Full Code Here

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

    screen.attachWidget("Spoutcraft", control);
    top += 22;

    control = new TexturesButton(this).setAlign(WidgetAnchor.TOP_CENTER);
    control.setWidth(150).setHeight(20).setX(center).setY(top);
    screen.attachWidget("Spoutcraft", control);
    top += 22;

    control = new ControlsButton(this).setAlign(WidgetAnchor.TOP_CENTER);
    control.setWidth(150).setHeight(20).setX(left).setY(top);
    screen.attachWidget("Spoutcraft", control);
View Full Code Here

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

    screen.attachWidget("Spoutcraft", control);
    top += 22;

    control = new ControlsButton(this).setAlign(WidgetAnchor.TOP_CENTER);
    control.setWidth(150).setHeight(20).setX(left).setY(top);
    screen.attachWidget("Spoutcraft", control);

    control = new LanguagesButton(this).setAlign(WidgetAnchor.TOP_CENTER);
    control.setWidth(150).setHeight(20).setX(right).setY(top);
    screen.attachWidget("Spoutcraft", control);
    top += 22;
View Full Code Here

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

    control.setWidth(150).setHeight(20).setX(left).setY(top);
    screen.attachWidget("Spoutcraft", control);

    control = new LanguagesButton(this).setAlign(WidgetAnchor.TOP_CENTER);
    control.setWidth(150).setHeight(20).setX(right).setY(top);
    screen.attachWidget("Spoutcraft", control);
    top += 22;

    control = new ChatButton(this).setAlign(WidgetAnchor.TOP_CENTER);
    control.setWidth(150).setHeight(20).setX(left).setY(top);
    screen.attachWidget("Spoutcraft", control);
View Full Code Here

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

    screen.attachWidget("Spoutcraft", control);
    top += 22;

    control = new ChatButton(this).setAlign(WidgetAnchor.TOP_CENTER);
    control.setWidth(150).setHeight(20).setX(left).setY(top);
    screen.attachWidget("Spoutcraft", control);

    control = new MinimapButton(this).setAlign(WidgetAnchor.TOP_CENTER);
    control.setWidth(150).setHeight(20).setX(right).setY(top);
    screen.attachWidget("Spoutcraft", control);
View Full Code Here

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

    control.setWidth(150).setHeight(20).setX(left).setY(top);
    screen.attachWidget("Spoutcraft", control);

    control = new MinimapButton(this).setAlign(WidgetAnchor.TOP_CENTER);
    control.setWidth(150).setHeight(20).setX(right).setY(top);
    screen.attachWidget("Spoutcraft", control);

    top += 22;

    // Graphics
    label = new GenericLabel("Graphical Settings");
View Full Code Here

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

    // Graphics
    label = new GenericLabel("Graphical Settings");
    size = Spoutcraft.getMinecraftFont().getTextWidth(label.getText());
    label.setX((int) (width / 2 - size / 2)).setY(top);
    label.setTextColor(grey);
    screen.attachWidget("Spoutcraft", label);
    top += 11;

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

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

    linebreak = new GenericGradient();
    linebreak.setBottomColor(grey);
    linebreak.setTopColor(grey);
    linebreak.setX(width/2 - 318 / 2).setY(top).setHeight(3).setWidth(318);
    screen.attachWidget("Spoutcraft", linebreak);
    top += 6;

    // TODO Clean up references to Spoutworth and remove message
    Label message = new GenericLabel("");
    message.setWidth(150).setHeight(20).setX(left).setY(top);
View Full Code Here

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

    // TODO Clean up references to Spoutworth and remove message
    Label message = new GenericLabel("");
    message.setWidth(150).setHeight(20).setX(left).setY(top);

    if (Configuration.isAutomatePerformance()) {
      screen.attachWidget("Spoutcraft", message);

      //top += 47;
    }

    RadioButton button;
View Full Code Here

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

    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.");
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.