var EHDI = EHDI || Object.create(null); EHDI.displays = EHDI.displays || Object.create(null); EHDI.displays.Footer = function(text) { EHDI.aka.Sprite.call(this, EHDI.Assets.images["parabuilder_footer"]); // this.anchor.set(0, 1); this.position.set(0, EHDI.GAME.sceneManager.getStageHeight()); // this.visible = false; var val = text || ""; this.label = new EHDI.aka.PixiText(val, {fontFamily: "Exo-Bold", fontSize: "40px", fill: 0xFFFFFF}); this.label.anchor.set(0.5, 0.5); this.label.position.set(this.width/2, this.height/2); this.addChild(this.label); }; EHDI.displays.Footer.prototype = Object.create(EHDI.aka.Sprite.prototype); EHDI.displays.Footer.prototype.changeText = function(val) { this.label.text = val; }