Examples of GenericButton


Examples of org.spoutcraft.api.gui.GenericButton

    this.parentScreen = parent;
  }

  protected void createInstances() {
    labelTitle = new GenericLabel("Controls");
    buttonDone = new GenericButton("Done");
    buttonAdd = new GenericButton("Add Shortcut");
    buttonEdit = new GenericButton("Edit");
    buttonEdit.setTooltip("Edit Shortcut");
    buttonRemove = new DeleteControlButton(this);
    buttonRemove.setTooltip("Remove Shortcut");
    labelDescription = new GenericLabel();
    labelDescription.setText("Double-click an item, then press the key (combination).");
View Full Code Here

Examples of org.spoutcraft.api.gui.GenericButton

  protected void createInstances() {
    title = new GenericLabel("Drag the minimap around");
    minimapDrag = new GenericGradient();
    minimapDrag.setTopColor(dragColor);
    minimapDrag.setBottomColor(dragColor);
    buttonDone = new GenericButton("Done");
    buttonReset = new GenericButton("Reset to Default");
    sliderScale = new GenericSlider();
    float scale = MinimapConfig.getInstance().getSizeAdjust();
    sliderScale.setSliderPosition(scale / 4);

    getScreen().attachWidgets("Spoutcraft", title, minimapDrag, buttonDone, buttonReset, sliderScale);
View Full Code Here

Examples of org.spoutcraft.api.gui.GenericButton

  @Override
  protected void createInstances() {
    title = new GenericLabel("Overview Map");
    noRenderLabel = new GenericLabel("The overview map will not work until the minimap is enabled.");
    minimapEnabled = MinimapConfig.getInstance().isEnabled();
    buttonDone = new GenericButton("Done");
    buttonZoomIn = new GenericButton("+");
    buttonZoomOut = new GenericButton("-");
    buttonShowPlayer = new GenericButton("Player");
    buttonReset = new GenericButton("Reset View");
    buttonSave = new GenericButton("Save to Desktop");
    buttonDeathpoints = new GenericCheckBox("Deathpoints");
    ((GenericCheckBox)buttonDeathpoints).setChecked(MinimapConfig.getInstance().isDeathpoints());
    map = new MapWidget(this);
    map.setGeometry(0, 0, width, height);
    map.scrollTo(map.getPlayerPosition(), false, 0);

    if (minimapEnabled == false) {
      getScreen().attachWidgets("Spoutcraft", noRenderLabel, buttonDone);
    } else {
      getScreen().attachWidgets("Spoutcraft", map, title, buttonDone, buttonZoomIn, buttonZoomOut, buttonShowPlayer, buttonReset, buttonSave, buttonDeathpoints);
    }

    hoverMenu = new GenericScrollArea();
    hoverMenu.setBackgroundColor(new Color(0x55ffffff));
    hoverMenu.setPriority(RenderPriority.Lowest);
    menuTitle = new GenericLabel("What do you want to do?");
    buttonWaypoint = new GenericButton("Add Waypoint");
    buttonFocus = new GenericButton("Set Focus");
    buttonFocus.setTooltip("If a waypoint is in focus, the direction\nto it will be drawn on the minimap.");
    buttonCloseMenu = new GenericButton("Close");
    hoverMenu.attachWidgets("Spoutcraft", buttonFocus, buttonWaypoint, buttonCloseMenu, menuTitle);

    setMenuVisible(false);
    getScreen().attachWidget("Spoutcraft", hoverMenu);
  }
View Full Code Here

Examples of org.spoutcraft.api.gui.GenericButton

    this.guiLeft = (this.width - this.xSize) / 2;
    this.guiTop = (this.height - this.ySize) / 2;

    // Spout Start
    if (Spoutcraft.hasPermission("spout.plugin.sortinventory")) {
      orderByAlphabet = new GenericButton("A-Z");
      orderById = new GenericButton("Id");
      orderByAlphabet.setTooltip("Will sort the inventory contents by their name");
      orderById.setTooltip("Will sort the inventory contents by their id");
      ScreenType type = ScreenUtil.getType(this);

      if (type == ScreenType.PLAYER_INVENTORY) {
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.