Package org.spoutcraft.api.gui

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


    Color grey = new Color(0.80F, 0.80F, 0.80F, 0.65F);

    hastebinLink = new GenericLabel("Generating hastie...");
    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));
View Full Code Here


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

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

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

  @Override
  public void drawScreen(int var1, int var2, float var3) {
View Full Code Here

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

    LocalTexture texture = new LocalTexture();
    texture.setUrl(FileUtil.getAssetsDir().getPath()+"/misc/disconnected.png").setX((int) (width / 2 - 64)).setY(top);
    texture.setHeight(128).setWidth(128);
    screen.attachWidget("Spoutcraft", texture);
View Full Code Here

    screen.attachWidget("Spoutcraft", label);

    LocalTexture texture = new LocalTexture();
    texture.setUrl(FileUtil.getAssetsDir().getPath()+"/misc/disconnected.png").setX((int) (width / 2 - 64)).setY(top);
    texture.setHeight(128).setWidth(128);
    screen.attachWidget("Spoutcraft", texture);

    top += 116;

    Button button;
    button = new ReconnectButton().setText("Attempt to Reconnect");
View Full Code Here

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

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

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

  @Override
  public void drawScreen(int var1, int var2, float var3) {
View Full Code Here

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

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

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