Examples of containsWidget()


Examples of org.getspout.spoutapi.gui.Screen.containsWidget()

      in = current;
    }
    if (in == null) {
      return;
    }
    if (!in.containsWidget(slot)) {
      return;
    }

    // Slot handling code goes here.
    Slot slot = (Slot) in.getWidget(this.slot);
View Full Code Here

Examples of org.spoutcraft.api.gui.InGameHUD.containsWidget()

        if (SpoutClient.getHandle().currentScreen != null) {
          SpoutClient.getHandle().currentScreen.update((OverlayScreen)widget);
          overlay = (OverlayScreen)widget;
        }
      } else if (screen.equals(mainScreen.getId())) { // Determine if this is a widget on the main screen
        if (mainScreen.containsWidget(widget.getId())) {
          mainScreen.updateWidget(widget);
          widget.setScreen(mainScreen);
        } else {
          widget.setScreen(mainScreen);
          mainScreen.attachWidget(widget.getAddon(), widget);
View Full Code Here

Examples of org.spoutcraft.api.gui.PopupScreen.containsWidget()

        } else {
          widget.setScreen(mainScreen);
          mainScreen.attachWidget(widget.getAddon(), widget);
        }
      } else if (popup != null && screen.equals(popup.getId())) { // Determine if this is a widget on the popup screen
        if (popup.containsWidget(widget.getId())) {
          popup.updateWidget(widget);
          widget.setScreen(popup);
        } else {
          widget.setScreen(popup);
          popup.attachWidget(widget.getAddon(), widget);
View Full Code Here

Examples of org.spoutcraft.api.gui.Screen.containsWidget()

        } else {
          widget.setScreen(popup);
          popup.attachWidget(widget.getAddon(), widget);
        }
      } else if (overlay != null && screen.equals(overlay.getId())) { // Determine if this is a widget on an overlay screen
        if (overlay.containsWidget(widget.getId())) {
          overlay.updateWidget(widget);
          widget.setScreen(overlay);
        } else {
          widget.setScreen(overlay);
          overlay.attachWidget(widget.getAddon(), widget);
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.