var EHDI = EHDI || Object.create(null); EHDI.displays = EHDI.displays || Object.create(null); EHDI.displays.InfoContainer = function(label, labelStyle, value, valueStyle) { EHDI.aka.Sprite.call(this, EHDI.Assets.images["gfx_container"]); this.label = new EHDI.aka.PixiText(label, labelStyle); this.label.anchor.set(0.5, 0.5); this.label.position.set(47, 28); this.addChild(this.label); this.value = new EHDI.aka.PixiText(value, valueStyle); this.value.anchor.set(0.5, 0.5); this.value.position.set(180, 30); this.addChild(this.value); }; EHDI.displays.InfoContainer.prototype = Object.create(EHDI.aka.Sprite.prototype);