Examples of attachWidget()


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

    // Miscellaneous
    label = new GenericLabel("Miscellaneous 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;

    control = new SnooperButton(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", linebreak);
    top += 6;

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

  @Override
View Full Code Here

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

    // Controls and audio
    label = new GenericLabel("Controls and Audio 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;

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

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

    Gradient 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;

    control = new MusicSlider().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", linebreak);
    top += 6;

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

    control = new SoundEffectsSlider().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 SoundEffectsSlider().setAlign(WidgetAnchor.TOP_CENTER);
    control.setWidth(150).setHeight(20).setX(right).setY(top);
    screen.attachWidget("Spoutcraft", control);
    top += 22;

    control = new FieldOfViewSlider().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 FieldOfViewSlider().setAlign(WidgetAnchor.TOP_CENTER);
    control.setWidth(150).setHeight(20).setX(left).setY(top);
    screen.attachWidget("Spoutcraft", control);

    control = new SensitivitySlider().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 SensitivitySlider().setAlign(WidgetAnchor.TOP_CENTER);
    control.setWidth(150).setHeight(20).setX(right).setY(top);
    screen.attachWidget("Spoutcraft", control);
    top += 22;

    control = new InvertMouseButton().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 InvertMouseButton().setAlign(WidgetAnchor.TOP_CENTER);
    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;
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.