Package org.getspout.spoutapi.gui

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


   */
  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

   */
  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

  public void initRedArrows(SpoutPlayer player) {

    GenericTexture arrowTop = new GenericTexture("http://tossat.de/~mcbukkit/images/arrowredtop2.png");
    arrowTop.setWidth(8).setHeight(8);
    arrowTop.setAnchor(WidgetAnchor.TOP_CENTER);
    arrowTop.shiftXPos(-4).shiftYPos(3);
    ConflictPlugin.arrowTopRed.put(player, arrowTop);

    GenericTexture arrowBot = new GenericTexture("http://tossat.de/~mcbukkit/images/arrowredbot2.png");
    arrowBot.setWidth(8).setHeight(8);
    arrowBot.setAnchor(WidgetAnchor.BOTTOM_CENTER);
View Full Code Here

    ConflictPlugin.arrowTopRed.put(player, arrowTop);

    GenericTexture arrowBot = new GenericTexture("http://tossat.de/~mcbukkit/images/arrowredbot2.png");
    arrowBot.setWidth(8).setHeight(8);
    arrowBot.setAnchor(WidgetAnchor.BOTTOM_CENTER);
    arrowBot.shiftXPos(-180).shiftYPos(-11);
    ConflictPlugin.arrowBotRed.put(player, arrowBot);

    GenericTexture arrowLeft = new GenericTexture("http://tossat.de/~mcbukkit/images/arrowredleft2.png");
    arrowLeft.setWidth(8).setHeight(8);
    arrowLeft.setAnchor(WidgetAnchor.CENTER_LEFT);
View Full Code Here

    ConflictPlugin.arrowBotRed.put(player, arrowBot);

    GenericTexture arrowLeft = new GenericTexture("http://tossat.de/~mcbukkit/images/arrowredleft2.png");
    arrowLeft.setWidth(8).setHeight(8);
    arrowLeft.setAnchor(WidgetAnchor.CENTER_LEFT);
    arrowLeft.shiftXPos(3).shiftYPos(-4);
    ConflictPlugin.arrowLeftRed.put(player, arrowLeft);

    GenericTexture arrowRight = new GenericTexture("http://tossat.de/~mcbukkit/images/arrowredright2.png");
    arrowRight.setWidth(8).setHeight(8);
    arrowRight.setAnchor(WidgetAnchor.CENTER_RIGHT);
View Full Code Here

    ConflictPlugin.arrowLeftRed.put(player, arrowLeft);

    GenericTexture arrowRight = new GenericTexture("http://tossat.de/~mcbukkit/images/arrowredright2.png");
    arrowRight.setWidth(8).setHeight(8);
    arrowRight.setAnchor(WidgetAnchor.CENTER_RIGHT);
    arrowRight.shiftXPos(-11).shiftYPos(-4);
    ConflictPlugin.arrowRightRed.put(player, arrowRight);

    player.getMainScreen().attachWidget(this, arrowTop);
    player.getMainScreen().attachWidget(this, arrowBot);
    player.getMainScreen().attachWidget(this, arrowLeft);
View Full Code Here

  public void initBlueArrows(SpoutPlayer player) {

    GenericTexture arrowTop = new GenericTexture("http://tossat.de/~mcbukkit/images/arrowbluetop2.png");
    arrowTop.setWidth(8).setHeight(8);
    arrowTop.setAnchor(WidgetAnchor.TOP_CENTER);
    arrowTop.shiftXPos(-4).shiftYPos(3);
    ConflictPlugin.arrowTopBlue.put(player, arrowTop);

    GenericTexture arrowBot = new GenericTexture("http://tossat.de/~mcbukkit/images/arrowbluebot2.png");
    arrowBot.setWidth(8).setHeight(8);
    arrowBot.setAnchor(WidgetAnchor.BOTTOM_CENTER);
View Full Code Here

    ConflictPlugin.arrowTopBlue.put(player, arrowTop);

    GenericTexture arrowBot = new GenericTexture("http://tossat.de/~mcbukkit/images/arrowbluebot2.png");
    arrowBot.setWidth(8).setHeight(8);
    arrowBot.setAnchor(WidgetAnchor.BOTTOM_CENTER);
    arrowBot.shiftXPos(+180).shiftYPos(-11);
    ConflictPlugin.arrowBotBlue.put(player, arrowBot);

    GenericTexture arrowLeft = new GenericTexture("http://tossat.de/~mcbukkit/images/arrowblueleft2.png");
    arrowLeft.setWidth(8).setHeight(8);
    arrowLeft.setAnchor(WidgetAnchor.CENTER_LEFT);
View Full Code Here

    ConflictPlugin.arrowBotBlue.put(player, arrowBot);

    GenericTexture arrowLeft = new GenericTexture("http://tossat.de/~mcbukkit/images/arrowblueleft2.png");
    arrowLeft.setWidth(8).setHeight(8);
    arrowLeft.setAnchor(WidgetAnchor.CENTER_LEFT);
    arrowLeft.shiftXPos(3).shiftYPos(-4);
    ConflictPlugin.arrowLeftBlue.put(player, arrowLeft);

    GenericTexture arrowRight = new GenericTexture("http://tossat.de/~mcbukkit/images/arrowblueright2.png");
    arrowRight.setWidth(8).setHeight(8);
    arrowRight.setAnchor(WidgetAnchor.CENTER_RIGHT);
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.