Commit graph

40 commits

Author SHA1 Message Date
Dhashvir Lalla
835d77cb85 fix nineslice hit areas 2024-01-15 05:16:56 +11:00
Alvaro Estrada
0b22354afd Update NineSlice.js
Fixed the horiztonal typo
2023-11-10 13:43:50 -06:00
Richard Davey
47d393ac29 Update NineSlice.js 2023-11-10 16:44:16 +00:00
Richard Davey
1b93e66cb1 Updates to support the new scale9 Frame data
* You can now create a `NineSlice` Game Object without specifying a width or height for it. If you do this, it will use the size of the texture frame instead.
* The `NineSlice` Game Object will now check to see if its associated Frame has any scale9 data set, and if so this is now used automatically to populate all of the border values.
* The `NineSlice.setSlices` method has a new optional boolean parameter `skipScale9` which will allow you to set the border values of the Nine Slice directly, even if its Frame has associated scale9 data
2023-11-09 18:26:37 +00:00
Richard Davey
5944a8f5a2 Add default origin. Fixes setInteractive(). 2023-03-23 00:34:21 +00:00
Richard Davey
5805925cc6 Fixed PostFX on custom render objects 2023-03-20 17:27:18 +00:00
Richard Davey
74f1bc639f Remove old FX component 2023-02-16 23:49:45 +00:00
Richard Davey
36e6bc8a05 Added PostPipeline component 2023-02-03 17:52:36 +00:00
Richard Davey
b25337b4e8 setTexture on a 3-slice should change the height now. #6350 2023-01-19 15:15:42 +00:00
Richard Davey
9101bfe5cb Added setSlices method. Fix #6350 2023-01-19 15:12:51 +00:00
Richard Davey
468bf7821d Updated copyright year 2023-01-02 17:36:27 +00:00
Richard Davey
6d0fd99a13 Spelling fix 2022-12-09 18:44:32 +00:00
Richard Davey
3d1e2f952f Typo fixes 2022-12-09 18:17:26 +00:00
Richard Davey
380100c4c1 Fix height math and update docs 2022-12-08 22:48:46 +00:00
Richard Davey
a6135be4eb Clamp min width/height 2022-12-08 22:44:40 +00:00
Richard Davey
73c7cf6d7a Updated jsdocs 2022-12-08 22:44:19 +00:00
Richard Davey
e304952a8b Added NineSlice Creator functions 2022-12-08 22:43:44 +00:00
Richard Davey
8de87cfeca Height now locked for a 3-slice object 2022-12-08 18:55:09 +00:00
Richard Davey
5d4dd9d918 Added full documentation, 3-slice support, support for frames in texture atlases and changing frames 2022-12-08 18:41:09 +00:00
Richard Davey
2d409cbe54 Now supports origin component 2022-12-08 16:19:29 +00:00
Richard Davey
fea262f3e0 Testing origin 2022-12-07 18:51:26 +00:00
Richard Davey
cb124bf9a5 Uses new vertexAvailable check and src tint and alpha 2022-12-07 18:30:08 +00:00
Richard Davey
c7475151ae Added FX, GetBounds, Origin components and Tint methods 2022-12-07 18:29:40 +00:00
Richard Davey
c09240124d New parameters and docs 2022-12-07 18:28:51 +00:00
Richard Davey
00564508d4 Tidying up 2022-12-06 22:48:26 +00:00
Richard Davey
4dcef816b9 Vertex updating working 2022-12-06 22:45:13 +00:00
Richard Davey
50efdf0ab7 Complete 9-slice vertices done 2022-12-06 19:37:24 +00:00
Richard Davey
715002df86 Add alpha value 2022-12-06 18:30:33 +00:00
Richard Davey
468548c918 Skip alpha zero verts 2022-12-06 18:30:22 +00:00
Richard Davey
f8ae7c8bab Now created via addQuad method 2022-12-06 18:02:32 +00:00
Richard Davey
4e8d0efb1e Render direct from vertices, not Faces 2022-12-06 18:02:16 +00:00
Richard Davey
b3c7cc83d7 Preparing for 12 area calculations 2022-12-06 13:39:07 +00:00
Richard Davey
b84aecb1d4 Added docs (from Pixi) and finished 3-slice scaling 2022-12-05 22:58:49 +00:00
Richard Davey
657a33da8c Moved data to arrays and added config object 2022-12-05 21:43:35 +00:00
Richard Davey
343ee5d216 Added config object 2022-12-05 21:43:23 +00:00
Richard Davey
83cf8d12fc Update NineSlice.js 2022-12-05 18:46:53 +00:00
Richard Davey
1f51d418db Working through manual vertex creation 2022-12-05 18:21:57 +00:00
Richard Davey
72cfbbb741 Removed inView checks 2022-12-05 18:21:47 +00:00
Richard Davey
6867136672 Testing Mesh based NineSlice Game Objectg 2022-12-02 18:07:20 +00:00
Richard Davey
951006bf8f Create NineSlice.js 2022-09-27 18:42:50 +01:00