var EHDI = EHDI || Object.create(null); EHDI.displays = EHDI.displays || Object.create(null); EHDI.displays.InfoContainer = function(label, labelStyle) { EHDI.aka.Sprite.call(this, EHDI.Assets.images["parabuilder_banner"]); this.label = new EHDI.aka.PixiText(label, labelStyle); this.label.pivot.set(this.label.width/2, this.label.height/2); this.label.position.set(10, 6); this.addChild(this.label); }; EHDI.displays.InfoContainer.prototype = Object.create(EHDI.aka.Sprite.prototype); EHDI.displays.InfoContainer.prototype.setLabel = function(val) { this.label.text = val; }