Package org.getspout.spoutapi.gui

Examples of org.getspout.spoutapi.gui.GenericButton


            groupname.setTooltip("The name of the group...");
            groupname.setColor(textSecondaryColor);
            groupname.setFieldColor(fieldcolor);
            popup.gridAttachWidget("GroupName",plug, groupname,1,3);

            GenericButton truebutton = new GenericButton("SetTrue");
            truebutton.setTooltip("Set the flag to true.");
            truebutton.setColor(textSecondaryColor);
            truebutton.setHoverColor(hoverColor);
            popup.gridAttachWidget("TrueButton",plug, truebutton,2,1);

            GenericButton falsebutton = new GenericButton("SetFalse");
            falsebutton.setTooltip("Set the flag to false.");
            falsebutton.setColor(textSecondaryColor);
            falsebutton.setHoverColor(hoverColor);
            popup.gridAttachWidget("FalseButton",plug, falsebutton,2,2);

            GenericButton removebutton = new GenericButton("Remove");
            removebutton.setTooltip("Remove the flag.");
            removebutton.setColor(textSecondaryColor);
            removebutton.setHoverColor(hoverColor);
            popup.gridAttachWidget("RemoveButton",plug, removebutton,2,3);
           
            GenericButton removeallbutton = new GenericButton("RemoveAll");
            removeallbutton.setTooltip("Remove all flags from the player or group...");
            removeallbutton.setColor(textSecondaryColor);
            removeallbutton.setHoverColor(hoverColor);
            popup.gridAttachWidget("RemoveAllButton",plug, removeallbutton,3,3);

            screens.put(p, popup);
            p.getMainScreen().attachPopupScreen(popup);
        } else {
View Full Code Here


    GenericPopup popup = new GenericPopup();

    GenericContainer container = new GenericContainer();

    GenericButton button1 = new GenericButton("Fight");
    button1.setAnchor(WidgetAnchor.CENTER_LEFT);
    button1.setWidth(80).setHeight(20).setMarginLeft(10).setFixed(true);

    GenericButton button2 = new GenericButton("Craft");
    button2.setAnchor(WidgetAnchor.CENTER_LEFT);
    button2.setWidth(80).setHeight(20).setMarginLeft(10).setFixed(true);

    GenericButton button3 = new GenericButton("Mine");
    button3.setAnchor(WidgetAnchor.CENTER_LEFT);
    button3.setWidth(80).setHeight(20).setMarginLeft(10).setFixed(true);

    GenericButton button4 = new GenericButton("Food");
    button4.setAnchor(WidgetAnchor.CENTER_LEFT);
    button4.setWidth(80).setHeight(20).setMarginLeft(10).setMarginRight(10).setFixed(true);

    container.addChildren(button1, button2, button3, button4);
    container.setX(x).setY(y);
    container.setWidth(370).setHeight(20);
    container.setAuto(false);
View Full Code Here

  public void createOverlay(SpoutPlayer player) {
      
        GenericPopup popup = new GenericPopup();
       
  
        GenericButton button1 = new GenericButton("Team RED");
        button1.setAnchor(WidgetAnchor.CENTER_CENTER);
        button1.setWidth(100).setHeight(20);
        button1.shiftXPos(-button1.getWidth()-5).shiftYPos(button1.getHeight()/2);
  
        GenericButton button2 = new GenericButton("Team BLUE");
        button2.setAnchor(WidgetAnchor.CENTER_CENTER);
        button2.setWidth(100).setHeight(20);
        button2.shiftXPos(5).shiftYPos(button1.getHeight()/2);
  
      
        popup.attachWidget(plugin, button1);
        popup.attachWidget(plugin, button2);
        player.getMainScreen().attachPopupScreen(popup);
View Full Code Here

  public GenericButton button;
 
  public SkillButton(String text, int width, int height, int marginLeft, int marginRight, int level, HashMap<String, Integer> relevantMap,
      int relevantValue, HashMap<String, Integer> prereq, int prereqValue, SpoutPlayer player, String tooltip){
   
     button = new GenericButton(text);
         button.setAnchor(WidgetAnchor.TOP_LEFT);
         button.setWidth(width).setHeight(height);
         button.setMarginLeft(marginLeft).setMarginRight(marginRight).setFixed(true);
         button.setTooltip(tooltip);
         button.setResize(true);
View Full Code Here

TOP

Related Classes of org.getspout.spoutapi.gui.GenericButton

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.