Package org.getspout.spoutapi.gui

Examples of org.getspout.spoutapi.gui.GenericButton.shiftXPos()


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


        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

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.