Jump to content

How to make charakter info or Eq popup window?


Mizukage
 Share

Recommended Posts

Thanks for tip, i make this menu ui/ux and working fine

    characterMenu: function () {                this.menuOn = true;                playerMenu = this.game.add.sprite(this.game.camera.x + 30, this.game.camera.y + 120, 'playerMenu');                close = this.game.add.button(this.game.camera.x + 215, this.game.camera.y + 123, "close", this.characterMenuClose, this);                menuTextWeapon = this.game.add.text(this.game.camera.x + 40, this.game.camera.y + 415, "Weapon - "+this.player.weapon.name,        { font: "18px Arial", fill: "#000", align: "center" });                       menuTextStr = this.game.add.text(this.game.camera.x + 40, this.game.camera.y + 440, "Strength - "+this.player.str,        { font: "18px Arial", fill: "#000", align: "center" });                        menuTextAgi = this.game.add.text(this.game.camera.x + 40, this.game.camera.y + 465, "Agility - "+this.player.agi,        { font: "18px Arial", fill: "#000", align: "center" });                menuTextExp = this.game.add.text(this.game.camera.x + 40, this.game.camera.y + 140, "Experience \n"+this.player.exp+' / '+this.lvl1Exp,        { font: "18px Arial", fill: "#000", align: "center" });                menuTextAttack = this.game.add.text(this.game.camera.x + 185, this.game.camera.y + 225, "Attack \n"+this.playerDmg,        { font: "18px Arial", fill: "#000", align: "center" });                close.scale.setTo(1.1);        playerMenu.scale.setTo(1.2);    },    characterMenuClose: function () {        playerMenu.kill();                close.kill();        menuTextWeapon.kill();        menuTextStr.kill();        menuTextAgi.kill();        menuTextExp.kill();        menuTextAttack.kill();                this.menuOn = false;    },
Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...