Examples of shiftXPos()


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

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

        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

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

    // redBase Label
    GenericLabel redBaselabel = new GenericLabel("no base set");
    redBaselabel.setScale((float) 0.5);
    redBaselabel.setAnchor(WidgetAnchor.TOP_RIGHT);
    redBaselabel.setTextColor(new org.getspout.spoutapi.gui.Color(255, 0, 0));
    redBaselabel.shiftXPos(-70).shiftYPos(120);
    redBaselabel.setWidth(200).setHeight(10);
    ConflictPlugin.redBaseLabels.put(player, redBaselabel);

    if (null != ConflictPlugin.redBase) {
      redBaselabel.setText("Red Base: " + ConflictPlugin.redBase.koordsString());
View Full Code Here

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

    // blueBase Label
    GenericLabel blueBaselabel = new GenericLabel("no base set");
    blueBaselabel.setScale((float) 0.5);
    blueBaselabel.setAnchor(WidgetAnchor.TOP_RIGHT);
    blueBaselabel.setTextColor(new org.getspout.spoutapi.gui.Color(0, 0, 255));
    blueBaselabel.shiftXPos(-70).shiftYPos(130);
    blueBaselabel.setWidth(200).setHeight(10);
    ConflictPlugin.blueBaseLabels.put(player, blueBaselabel);

    if (null != ConflictPlugin.blueBase) {
      blueBaselabel.setText("Blue Base: " + ConflictPlugin.blueBase.koordsString());
View Full Code Here

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

  public void initDamageLabel(SpoutPlayer player) {
    GenericLabel damageLabel = new GenericLabel("Camping Damage: 0" + "/" + ConflictPlugin.damageTresholdForPlayer);
    damageLabel.setScale((float) 0.5);
    damageLabel.setAnchor(WidgetAnchor.TOP_RIGHT);
    // damageLabel.setTextColor(new org.getspout.spoutapi.gui.Color(0, 0, 255));
    damageLabel.shiftXPos(-70).shiftYPos(140);
    damageLabel.setWidth(200).setHeight(10);
    ConflictPlugin.damageLabels.put(player, damageLabel);
    player.getMainScreen().attachWidget(this, damageLabel);
  }
View Full Code Here

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

  public void initArtNumberLabel(SpoutPlayer player) {
    GenericLabel artNumberLabel1 = new GenericLabel(Integer.toString(ConflictPlugin.artRed));
    artNumberLabel1.setScale((float) 1.0);
    artNumberLabel1.setAnchor(WidgetAnchor.TOP_CENTER);
    artNumberLabel1.setTextColor(new org.getspout.spoutapi.gui.Color(255, 0, 0));
    artNumberLabel1.shiftXPos(-10).shiftYPos(10);
    artNumberLabel1.setWidth(200).setHeight(10);
    ConflictPlugin.artNumberLabelsRed.put(player, artNumberLabel1);
    player.getMainScreen().attachWidget(this, artNumberLabel1);

    GenericLabel artNumberLabel2 = new GenericLabel(Integer.toString(ConflictPlugin.artBlue));
View Full Code Here

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

    GenericLabel artNumberLabel2 = new GenericLabel(Integer.toString(ConflictPlugin.artBlue));
    artNumberLabel2.setScale((float) 1.0);
    artNumberLabel2.setAnchor(WidgetAnchor.TOP_CENTER);
    artNumberLabel2.setTextColor(new org.getspout.spoutapi.gui.Color(0, 0, 255));
    artNumberLabel2.shiftXPos(10).shiftYPos(10);
    artNumberLabel2.setWidth(200).setHeight(10);
    ConflictPlugin.artNumberLabelsBlue.put(player, artNumberLabel2);
    player.getMainScreen().attachWidget(this, artNumberLabel2);

  }
View Full Code Here

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

   */
  public void initAlarmLabels(SpoutPlayer player) {

    GenericTexture alarmTexture = new GenericTexture("http://tossat.de/~mcbukkit/images/alarm128.png");
    alarmTexture.setAnchor(WidgetAnchor.TOP_LEFT);
    alarmTexture.shiftXPos(10).shiftYPos(10);
    alarmTexture.setWidth(16).setHeight(16);
    alarmTexture.setVisible(false);
    ConflictPlugin.alarmLamps.put(player, alarmTexture);
    player.getMainScreen().attachWidget(this, alarmTexture);

View Full Code Here

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

   */
  public void initEnemyBaseLabels(SpoutPlayer player) {

    GenericTexture alarmTexture = new GenericTexture("http://tossat.de/~mcbukkit/images/camping_penalty.png");
    alarmTexture.setAnchor(WidgetAnchor.TOP_LEFT);
    alarmTexture.shiftXPos(10).shiftYPos(30);
    alarmTexture.setWidth(16).setHeight(16);
    alarmTexture.setVisible(false);
    ConflictPlugin.enemyBaseLamps.put(player, alarmTexture);
    player.getMainScreen().attachWidget(this, alarmTexture);

View Full Code Here

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

   */
  public void initOwnBaseLabels(SpoutPlayer player) {

    GenericTexture alarmTexture = new GenericTexture("http://tossat.de/~mcbukkit/images/base_bonus.png");
    alarmTexture.setAnchor(WidgetAnchor.TOP_LEFT);
    alarmTexture.shiftXPos(10).shiftYPos(30);
    alarmTexture.setWidth(16).setHeight(16);
    alarmTexture.setVisible(false);
    ConflictPlugin.ownBaseLamps.put(player, alarmTexture);
    player.getMainScreen().attachWidget(this, alarmTexture);

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.