Package org.spoutcraft.api.gui

Examples of org.spoutcraft.api.gui.Button


    hastebinLink.setX(95).setY(top);
    hastebinLink.setTextColor(grey);
    screen.attachWidget("Spoutcraft", hastebinLink);
    generateHastie();

    Button button = new CopyErrorURL(this).setText("Copy Link");
    button.setHeight(20).setWidth(80);
    button.setX((int) (hastebinLink.getWidth() + hastebinLink.getX() + 10.0));
    button.setY(top-5);
    button.setAlign(WidgetAnchor.TOP_CENTER);
    screen.attachWidget("Spoutcraft", button);

    top += 25;

    button = new ReportErrorButton().setText("Report");
    button.setHeight(20).setWidth(70);
    button.setX((int) (width / 2 - button.getWidth() - button.getWidth() / 2));
    button.setY(top);
    button.setAlign(WidgetAnchor.TOP_CENTER);
    screen.attachWidget("Spoutcraft", button);

    button = new IgnoreErrorButton().setText("Ignore");
    button.setHeight(20).setWidth(70);
    button.setX((int) (width / 2 + button.getWidth() / 2));
    button.setY(top);
    button.setAlign(WidgetAnchor.TOP_CENTER);
    screen.attachWidget("Spoutcraft", button);
    top += 30;
  }
View Full Code Here


    texture.setHeight(128).setWidth(128);
    screen.attachWidget("Spoutcraft", texture);

    top += 116;

    Button button;
    button = new ReconnectButton().setText("Attempt to Reconnect");
    button.setHeight(20).setWidth(200);
    button.setX((int) (width / 2 - button.getWidth() / 2));
    button.setY(top);
    button.setAlign(WidgetAnchor.TOP_CENTER);
    screen.attachWidget("Spoutcraft", button);
    top += 26;

    button = new ReturnToServerList().setText("Return to " + SpoutClient.getInstance().getServerManager().getJoinedFromName());
    button.setHeight(20).setWidth(200);
    button.setX((int) (width / 2 - button.getWidth() / 2));
    button.setY(top);
    button.setAlign(WidgetAnchor.TOP_CENTER);
    screen.attachWidget("Spoutcraft", button);
    top += 26;

    button = new ReturnToMainMenu().setText("Return to Main Menu");
    button.setHeight(20).setWidth(200);
    button.setX((int) (width / 2 - button.getWidth() / 2));
    button.setY(top);
    button.setAlign(WidgetAnchor.TOP_CENTER);
    screen.attachWidget("Spoutcraft", button);
    top += 26;
  }
View Full Code Here

TOP

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

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.