A Nineslice plugin for Phaser 3
OTHER License
Bot releases are hidden (Show)
@jdotrjs is lazy, Long Live The Community! (specifically @PatrickSachs)
I had been meaning to add Typescript defs for a long time and even went to the effort of learning it for a non-trivial library (cf. phaser3-hadoken) but never got around to actually bringing that knowledge back to nineslice. I think I was afraid of the other stuff I would need to clean up when I got back.
IN ANY CASE.
@PatrickSachs was kind enough to do this for us so I'm happy to release Bluebird
(v0.5.0) into the wild with new and improved typescript .d.ts
files.
โค๏ธ ๐ฆ
Published by jdotrjs about 6 years ago
I've given up on ever having a "complete" release as I should have long ago. That means we get a naming scheme! We're going to start with types of ๐ฆ. In any case...
I've been super distrated by my day job recently so completely missed the RenderTexture updates that came with 3.12. @B3L7 and @fielding both deserve a huge thanks for 1) spotting the break and 2) submitting a fix. โค๏ธ. There is no project swag so my eternal gratitude will have to suffice.
Published by jdotrjs about 6 years ago
This patches a bug introduced with the frame cache used in v0.3.6.
Published by jdotrjs over 6 years ago
Fixes #6 / #11
This improves support for using nineslice elements when backed by a sprite atlas.
My patron saint of sprite atlas bugs remains DannyT who reported this issue and actually got me moving to fix it.
Published by jdotrjs over 6 years ago
I should come up with a release name system but I keep being pretty sure "this time it's the final version."
Anyway, I'm pretty sure this time it's the final version ๐.
This change resolves #5 (frame selection within an atlas). Many thanks to DannyT from the Discord server for reporting it.
Published by jdotrjs over 6 years ago
v0.3.2 Is released which fixes a bug where frame 0
was treated as if not specifying a frame. This is the first externally reported bug so ๐ and a huge thanks to Fabadiculous for filing the issue.
Hack on!
Published by jdotrjs over 6 years ago
No functional changes but the distributed .js can now be used directly or via module system. Major thanks to AleBles who did the digging to fix this (cf. #3)
Examples and README have been updated to reflect the new, better, world.
Published by jdotrjs over 6 years ago
For direct inclusion in your HTML use the attached nineslice-sa.js
.
It's also available via npm at phaser3-nineslice
!
Enjoy!
Published by jdotrjs over 6 years ago
Still working through the details but it's definitely usable at this point.
Instructions for using in your project available in the README.