var textbox={create:function(t,{centerX:i,centerY:e,width:x,text:o,fixedWidth:s=!1,fontSize:h=26,align:n="center"}){this.box=t.add.group(),this.box.name=o;this.textBg=t.add.image(0,0,"whiteBox"),this.boxText=t.add.text(i,e,o,{fontFamily:"Font",color:"#000",fontSize:h+"px",align:n,wordWrap:{width:x}});var r=1;"left"==n?r=1:"right"==n&&(r=0),this.boxText.setOrigin(r,0);var a=this.boxText.getBounds();return s?this.textBg.setOrigin(0).setDisplaySize(x,a.height+36+48).setPosition(a.x+36,a.y):this.textBg.setOrigin(0).setDisplaySize(a.width+72,a.height+36+48).setPosition(a.x-36,a.y-36),this.box.addMultiple([this.textBg,this.boxText]),this.box}};
//# sourceMappingURL=index.2d0c5282.js.map
