phaser3-nineslice
phaser3-nineslice copied to clipboard
A Nineslice plugin for Phaser 3
I added a seemingly unrelated asset to my TexturePacker atlas and my 9slice object seemed to corrupt. After a bit of noodling I realised that the additional asset had caused...
Hit this dealing with a 9x9 frame (attached) and using a uniform offset of 2.  When rendered it produced the following frame:  When used offsets of 3 it...
Currently direct updates on .height/.width will cause traditional scaling instead of 9slice scaling. Ideally changing size like that would be supported behavior.
``` const textBg = scene.add.nineslice( 0, 0, 74, 74, {key: 'nineimages', frame: 'bg-assets.png'}, [1,36], ); ``` set textBg width to 500 ``` textBg.setSize(500,50) ``` left and right is not semi-circle....