You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I'm trying to use the plugin in my TypeScript code.
I've installed the plugin via npm.
I've added the typescript definition file "phaser-nineslice.d.ts" to my tsconfig.json
Hi,
I'm trying to use the plugin in my TypeScript code.
I've installed the plugin via npm.
I've added the typescript definition file "phaser-nineslice.d.ts" to my tsconfig.json
In my preloader state I've added the plugin using
this.game.plugins.add(PhaserNineSlice.Plugin);
Directly after this line I've added
this.game.load.nineSlice('my-image', '/images/my-image.jpg', 25);
I get the error: "property nineSlice does not exist on type Loader"
I've spent a couple of hours to find a solutiion without any success.
I also tried to use directly the typescript code from your github project but I get also a bunch of error messages.
Any help really appreciated
Thanks
The text was updated successfully, but these errors were encountered: