Package org.spoutcraft.api.gui

Examples of org.spoutcraft.api.gui.Widget


  public void run(int playerId) {
    InGameHUD mainScreen = SpoutClient.getInstance().getActivePlayer().getMainScreen();
    PopupScreen popup = mainScreen.getActivePopup();

    Widget w = PacketWidget.allWidgets.get(widget);

    if (w != null && w.getScreen() != null && !(w instanceof Screen)) {
      w.getScreen().removeWidget(w);
    }

    if (w instanceof PopupScreen && popup.getId().equals(w.getId())) {
      // Determine if this is a popup screen and if we need to update it
      mainScreen.closePopup();
    }

    PacketWidget.allWidgets.remove(widget);
View Full Code Here


    output.writeInt(selection);
  }

  public void run(int playerId) {
    if (SpoutClient.getInstance().getActivePlayer().getMainScreen().getActivePopup() != null) {
      Widget w = SpoutClient.getInstance().getActivePlayer().getMainScreen().getActivePopup().getWidget(uuid);
      if (w != null && w instanceof GenericComboBox) {
        box = (GenericComboBox) w;
        box.setOpen(open);
        box.setSelection(selection);
      }
View Full Code Here

    ComboBox openCombobox = null;

    if (eventButton == 0) {
      boolean handled = false;
      for (int i = 4; i >= 0; i--) {
        Widget lastWidget = null;
        for (Widget widget : screen.getAttachedWidgets(true)) {
          lastWidget = widget;
          if (widget.getPriority().getId() != i) {
            continue;
          }
View Full Code Here

  public void run(int playerId) {
    InGameHUD screen = SpoutClient.getInstance().getActivePlayer().getMainScreen();
    PopupScreen popup = screen.getActivePopup();
    if (popup != null) {
      Widget w = popup.getWidget(widgetId);
      if (w != null && w instanceof Control) {
        ((Control)w).setFocus(focus);
      }
    }
  }
View Full Code Here

TOP

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

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.