Package org.getspout.spoutapi.gui

Examples of org.getspout.spoutapi.gui.GenericTexture


        ConflictPlugin.skillFightMonsters, 2, player,
        "Verdoppelt den Camping-Treshold (d.h. man kann doppelt so lange im gegn. Gebiet bleiben)");
    SkillButton b12 = new SkillButton("Ender", 80, 20, 20, 0, 10, ConflictPlugin.skillFightDrop, 1,
        ConflictPlugin.skillFightMonsters, 2, player, "Endermen droppen immer eine EnderPearl)");

    GenericTexture t1 = new GenericTexture("http://tossat.de/~mcbukkit/images/Arrow11.png");
    t1.setWidth(16).setHeight(16).setMarginLeft(32).setFixed(true);
    GenericTexture t2 = new GenericTexture("http://tossat.de/~mcbukkit/images/Arrow11.png");
    t2.setWidth(16).setHeight(16).setMarginLeft(104).setFixed(true);
    GenericTexture t3 = new GenericTexture("http://tossat.de/~mcbukkit/images/Arrow11.png");
    t3.setWidth(16).setHeight(16).setMarginLeft(84).setFixed(true);
    GenericTexture t4 = new GenericTexture("http://tossat.de/~mcbukkit/images/Arrow11.png");
    t4.setWidth(16).setHeight(16).setMarginLeft(84).setFixed(true);
    GenericTexture t5 = new GenericTexture("http://tossat.de/~mcbukkit/images/Arrow11.png");
    t5.setWidth(16).setHeight(16).setMarginLeft(32).setFixed(true);
    GenericTexture t6 = new GenericTexture("http://tossat.de/~mcbukkit/images/Arrow11.png");
    t6.setWidth(16).setHeight(16).setMarginLeft(104).setFixed(true);
    GenericTexture t7 = new GenericTexture("http://tossat.de/~mcbukkit/images/Arrow11.png");
    t7.setWidth(16).setHeight(16).setMarginLeft(84).setFixed(true);
    GenericTexture t8 = new GenericTexture("http://tossat.de/~mcbukkit/images/Arrow11.png");
    t8.setWidth(16).setHeight(16).setMarginLeft(84).setFixed(true);

    container.addChildren(layer1Skills, layer1Arrows, layer2Skills, layer2Arrows, layer3Skills);
    container.setX(x).setY(y);
    container.setWidth(400).setHeight(125);
    container.setAuto(false);
View Full Code Here


    GenericContainer layer1Arrows = new GenericContainer();
    GenericContainer layer2Arrows = new GenericContainer();
    GenericContainer layer3Arrows = new GenericContainer();

    GenericTexture t1 = new GenericTexture("http://tossat.de/~mcbukkit/images/Arrow11.png");
    t1.setWidth(16).setHeight(16).setMarginLeft(192).setFixed(true);

    GenericTexture t2 = new GenericTexture("http://tossat.de/~mcbukkit/images/Arrow11.png");
    t2.setWidth(16).setHeight(16).setMarginLeft(38).setFixed(true);
    GenericTexture t3 = new GenericTexture("http://tossat.de/~mcbukkit/images/Arrow11.png");
    t3.setWidth(16).setHeight(16).setMarginLeft(89).setFixed(true);
    GenericTexture t4 = new GenericTexture("http://tossat.de/~mcbukkit/images/Arrow11.png");
    t4.setWidth(16).setHeight(16).setMarginLeft(89).setFixed(true);
    GenericTexture t5 = new GenericTexture("http://tossat.de/~mcbukkit/images/Arrow11.png");
    t5.setWidth(16).setHeight(16).setMarginLeft(89).setFixed(true);

    GenericTexture t6 = new GenericTexture("http://tossat.de/~mcbukkit/images/Arrow11.png");
    t6.setWidth(16).setHeight(16).setMarginLeft(38).setFixed(true);
    GenericTexture t7 = new GenericTexture("http://tossat.de/~mcbukkit/images/Arrow11.png");
    t7.setWidth(16).setHeight(16).setMarginLeft(89).setFixed(true);
    GenericTexture t8 = new GenericTexture("http://tossat.de/~mcbukkit/images/Arrow11.png");
    t8.setWidth(16).setHeight(16).setMarginLeft(89).setFixed(true);
    GenericTexture t9 = new GenericTexture("http://tossat.de/~mcbukkit/images/Arrow11.png");
    t9.setWidth(16).setHeight(16).setMarginLeft(89).setFixed(true);

    SkillButton b1 = new SkillButton("Durability 1", 400, 20, 0, 0, 4, ConflictPlugin.skillCraftQual, 1, null, 0,
        player, "Waffen/Bogen/Ruestung/Werkzeuge wird mit 75% Haltbarkeit gecraftet (normal 50%)");
    SkillButton b2 = new SkillButton("Durability 2", 400, 20, 0, 0, 4, ConflictPlugin.skillCraftQual, 2,
        ConflictPlugin.skillCraftQual, 1, player,
View Full Code Here

    GenericContainer layer1Arrows = new GenericContainer();
    GenericContainer layer2Arrows = new GenericContainer();
    GenericContainer layer3Arrows = new GenericContainer();

    GenericTexture t1 = new GenericTexture("http://tossat.de/~mcbukkit/images/Arrow11.png");
    t1.setWidth(16).setHeight(16).setMarginLeft(192).setFixed(true);
    GenericTexture t2 = new GenericTexture("http://tossat.de/~mcbukkit/images/Arrow11.png");
    t2.setWidth(16).setHeight(16).setMarginLeft(28).setFixed(true);
    GenericTexture t3 = new GenericTexture("http://tossat.de/~mcbukkit/images/Arrow11.png");
    t3.setWidth(16).setHeight(16).setMarginLeft(66).setFixed(true);
    GenericTexture t4 = new GenericTexture("http://tossat.de/~mcbukkit/images/Arrow11.png");
    t4.setWidth(16).setHeight(16).setMarginLeft(66).setFixed(true);
    GenericTexture t5 = new GenericTexture("http://tossat.de/~mcbukkit/images/Arrow11.png");
    t5.setWidth(16).setHeight(16).setMarginLeft(66).setFixed(true);
    GenericTexture t6 = new GenericTexture("http://tossat.de/~mcbukkit/images/Arrow11.png");
    t6.setWidth(16).setHeight(16).setMarginLeft(66).setFixed(true);

    GenericTexture t7 = new GenericTexture("http://tossat.de/~mcbukkit/images/Arrow11.png");
    t7.setWidth(16).setHeight(16).setMarginLeft(28).setFixed(true);
    GenericTexture t8 = new GenericTexture("http://tossat.de/~mcbukkit/images/Arrow11.png");
    t8.setWidth(16).setHeight(16).setMarginLeft(66).setFixed(true);
    GenericTexture t9 = new GenericTexture("http://tossat.de/~mcbukkit/images/Arrow11.png");
    t9.setWidth(16).setHeight(16).setMarginLeft(66).setFixed(true);
    GenericTexture t10 = new GenericTexture("http://tossat.de/~mcbukkit/images/Arrow11.png");
    t10.setWidth(16).setHeight(16).setMarginLeft(66).setFixed(true);
    GenericTexture t11 = new GenericTexture("http://tossat.de/~mcbukkit/images/Arrow11.png");
    t11.setWidth(16).setHeight(16).setMarginLeft(66).setFixed(true);

    SkillButton b1 = new SkillButton("Durab 1", 400, 20, 0, 0, 5, ConflictPlugin.skillMineDurab, 1, null, 0,
        player, "Werkzeuge nutzen sich 30% langsamer ab");
    SkillButton b2 = new SkillButton("Durab 2", 400, 20, 0, 0, 5, ConflictPlugin.skillMineDurab, 2,
        ConflictPlugin.skillMineDurab, 1, player, "Werkzeuge nutzen sich 50% langsamer ab");
View Full Code Here

    GenericContainer layer3Skills = new GenericContainer();

    GenericContainer layer1Arrows = new GenericContainer();
    GenericContainer layer2Arrows = new GenericContainer();

    GenericTexture t1 = new GenericTexture("http://tossat.de/~mcbukkit/images/Arrow11.png");
    t1.setWidth(16).setHeight(16).setMarginLeft(28).setFixed(true);

    GenericTexture t2 = new GenericTexture("http://tossat.de/~mcbukkit/images/Arrow11.png");
    t2.setWidth(16).setHeight(16).setMarginLeft(66).setFixed(true);
    GenericTexture t3 = new GenericTexture("http://tossat.de/~mcbukkit/images/Arrow11.png");
    t3.setWidth(16).setHeight(16).setMarginLeft(66).setFixed(true);
    GenericTexture t4 = new GenericTexture("http://tossat.de/~mcbukkit/images/Arrow11.png");
    t4.setWidth(16).setHeight(16).setMarginLeft(66).setFixed(true);
    GenericTexture t5 = new GenericTexture("http://tossat.de/~mcbukkit/images/Arrow11.png");
    t5.setWidth(16).setHeight(16).setMarginLeft(66).setFixed(true);
    GenericTexture t6 = new GenericTexture("http://tossat.de/~mcbukkit/images/Arrow11.png");
    t6.setWidth(16).setHeight(16).setMarginLeft(28).setFixed(true);

    GenericTexture t7 = new GenericTexture("http://tossat.de/~mcbukkit/images/Arrow3.png");
    t7.setWidth(16).setHeight(16).setMarginLeft(24).setFixed(true);

    SkillButton b1 = new SkillButton("G3d 1", 400, 20, 0, 0, 5, ConflictPlugin.skillFoodSeed, 1, null, 0,
        player, "Weizen dropt mehr Saatgut");
    SkillButton b2 = new SkillButton("G3d 2", 72, 20, 0, 0, 5, ConflictPlugin.skillFoodHarvest, 1,
        ConflictPlugin.skillFoodSeed, 1, player, "Weizen dropt 50% mehr Nahrung");
View Full Code Here

   * @param player
   *            Player f�r den das Label initialisiert wird
   */
  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

   * initialisisert das Label, das anzeigt, dass man sich in der gegenrischen basis befindet
   * @param player Player f�r den das Label initialisiert wird
   */
  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

   * initialisisert das Label, das anzeigt, dass man sich in der eigenen basis befindet
   * @param player Player f�r den das Label initialisiert wird
   */
  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

   * @param player
   *            Player f�r den die Texturen initialisiert werden
   */
  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);
    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);
    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);
    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

   * @param player
   *            Player f�r den die Texturen initialisiert werden
   */
  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);
    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);
    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);
    arrowRight.shiftXPos(-11).shiftYPos(-4);
    ConflictPlugin.arrowRightBlue.put(player, arrowRight);

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

   * @param diff
   *            Wert, aus dem die neue Position errechnet wird
   */
  public static void paintRedArrow(int diff, SpoutPlayer player) {

    GenericTexture arrowTop = ConflictPlugin.arrowTopRed.get(player);
    GenericTexture arrowBot = ConflictPlugin.arrowBotRed.get(player);
    GenericTexture arrowLeft = ConflictPlugin.arrowLeftRed.get(player);
    GenericTexture arrowRight = ConflictPlugin.arrowRightRed.get(player);

    if (showArrowRed.get(player) == false) {
      arrowTop.setVisible(false);
      arrowLeft.setVisible(false);
      arrowRight.setVisible(false);
      arrowBot.setVisible(false);
      return;
    }

    if (diff == 1000) {
      arrowTop.setVisible(false);
      arrowLeft.setVisible(false);
      arrowRight.setVisible(false);
      arrowBot.setVisible(false);
      return;
    }

    // top
    if (0 <= diff && diff <= 45) {
      arrowTop.setVisible(true);
      arrowTop.setX(diff * player.getMainScreen().getWidth() / 90);
      arrowLeft.setVisible(false);
      arrowRight.setVisible(false);
      arrowBot.setVisible(false);
    } else if (315 <= diff) {
      arrowTop.setVisible(true);
      arrowTop.setX(-(360 - diff) * player.getMainScreen().getWidth() / 90);
      arrowLeft.setVisible(false);
      arrowRight.setVisible(false);
      arrowBot.setVisible(false);
    } else

    // rechts
    if (diff > 45 && diff <= 135) {
      arrowTop.setVisible(false);
      arrowLeft.setVisible(false);
      arrowRight.setVisible(true);
      arrowRight.setY((diff - 90) * player.getMainScreen().getHeight() / 90);
      arrowBot.setVisible(false);
    } else
    // links
    if (diff < 315 && diff >= 225) {
      arrowTop.setVisible(false);
      arrowLeft.setVisible(true);
      arrowLeft.setY((270 - diff) * player.getMainScreen().getHeight() / 90);
      arrowRight.setVisible(false);
      arrowBot.setVisible(false);
      // bot
    } else {
      arrowTop.setVisible(false);
      arrowLeft.setVisible(false);
      arrowRight.setVisible(false);
      arrowBot.setVisible(true);
    }
  }
View Full Code Here

TOP

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

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.