Package org.spoutcraft.api.gui

Examples of org.spoutcraft.api.gui.Label


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

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

      //top += 47;
View Full Code Here


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

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

      //top += 47;
View Full Code Here

    if (btn == buttonReset) {
      map.reset();
    }
    if (btn == buttonSave) {
      if (map.saveToDesktop()) {
        Label label = new FadingLabel("Saved to Desktop!", 500).setTextColor(new Color(0x7FFF00));
        label.setGeometry(width / 2 - Spoutcraft.getMinecraftFont().getTextWidth(label.getText()) / 2, height / 2, 100, 12);
        getScreen().attachWidgets("Spoutcraft", label);
      } else {
        Label label = new FadingLabel("Failed to save Minimap!", 500).setTextColor(new Color(0xEE0000));
        label.setGeometry(width / 2 - Spoutcraft.getMinecraftFont().getTextWidth(label.getText()) / 2, height / 2, 100, 12);
        getScreen().attachWidgets("Spoutcraft", label);
      }
    }
    if (btn == buttonDeathpoints) {
      MinimapConfig.getInstance().setDeathpoints(!MinimapConfig.getInstance().isDeathpoints());
View Full Code Here

TOP

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

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.