Commit graph

2845 commits

Author SHA1 Message Date
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
0d9bd568e5 Correct type 2022-12-08 22:43:28 +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
77c87475d8 Updated jsdocs 2022-12-08 18:40:14 +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
6080bca8e5 Testing Video events 2022-12-02 13:35:20 +00:00
Richard Davey
896afcb68f Update DOMElement.js 2022-12-01 18:45:11 +00:00
Richard Davey
3b129f8cff Calling setDisplayOrigin on a Video Game Object would cause the origins to be set to NaN if the Video was created without an asset key. It will now give Videos a default size, preventing this error, which is reset once a video is loaded. Fix #5560 2022-11-30 22:59:32 +00:00
Richard Davey
14ddd29fbd Fixed TS errors 2022-11-30 15:06:52 +00:00
Richard Davey
f571fc68aa Fix #6296 2022-11-30 13:48:22 +00:00
Richard Davey
8b38fd3641 Reduce warning 2022-11-29 15:24:10 +00:00
Richard Davey
8b8b8fa352
Merge pull request #6281 from Ariorh1337/master
fix advancedWordWrap concatenate when wrapping
2022-11-29 15:23:21 +00:00
Richard Davey
384276ef0e If Rope.setPoints was called with the exact same number of points as before, it wouldn't set the dirty flag, meaning the vertices were not updated on the next render 2022-11-23 15:24:55 +00:00
Richard Davey
c0e592770f Update BitmapTextWord.js 2022-11-23 15:10:50 +00:00
Richard Davey
e0a8486dbc Update BitmapTextWord.js 2022-11-23 14:22:13 +00:00
Richard Davey
5d77e1fdc8 Particle.fire will now check to see if the parent Emitter is set to follow a Game Object and if so, and if the x/y EmitterOps are spread ops, then it'll space the particles out based on the follower coordinates, instead of clumping them all together. Fix #5847 2022-11-23 00:29:12 +00:00
Richard Davey
64ede38b9d Added more docs confirming overrides. Fix #6046 2022-11-22 23:37:20 +00:00
Richard Davey
03b1ed62d1 When using RTL (right-to-left) Text Game Objects, the Text would vanish on iOS15+ if you changed the text or font style. The context RTL properties are now restored when the text is updated, fixing this issue. Fix #6121 2022-11-22 22:58:48 +00:00
Richard Davey
886920155b Add generics 2022-11-22 21:55:30 +00:00
Richard Davey
49c2f106b5 Swapped to non-instance based checks and added generics 2022-11-22 20:35:59 +00:00
Richard Davey
e7efa068a7 Previously, calling createBitmapMask on a Shape Game Object would fail unless you passed the shape to the method. Now, it will correctly create a mask from the Shape without needing to pass it. Fix #5976 2022-11-22 17:40:56 +00:00
Richard Davey
95ef3f9c25 Update Container.js 2022-11-22 00:19:02 +00:00
Richard Davey
d4b386aa90 Added generics to Container 2022-11-18 22:04:39 +00:00
Richard Davey
84cdbdd560 Added generics. Fix #6140 2022-11-18 21:30:28 +00:00
Richard Davey
e608c2caf1 The CONTEXT_RESTORED Game Event has been removed and the WebGL Renderer no longer listens for the contextrestored DOM event, or has a contextRestoredHandler method. This never actually worked properly, in any version of Phaser 3 - although the WebGLRenderer would be restored, none of the shaders, pipelines or textures were correctly re-created. If a context is now lost, Phaser will display an error in the console and all rendering will halt. It will no longer try to re-create the context, leading to masses of WebGL errors in the console. Instead, it will die gracefully and require a page reload. 2022-11-17 18:04:51 +00:00
Richard Davey
6220d9b18d Fake this flag to allow Bobs to get a physics body. Fix #6284 2022-11-14 21:41:37 +00:00
Dmitry Omelchenko
4f30e0b5b9 fix advancedWordWrap concatenate when wrapping 2022-11-12 17:30:27 +02:00
Richard Davey
465bf07334 The GameObjects.Components.Mask.createBitmapMask method can now accept the x, y, texture and frame parameters new to the BitmapMask constructor. 2022-11-10 15:09:27 +00:00
Richard Davey
6943989f46 The BitmapText Game Object has two new read-only properties displayWidth and displayHeight. This allows the BitmapText to correctly use the GetBounds component.
The `BitmapText` Game Object now has the `GetBounds` component added to it, meaning you can now correctly get its dimensions as part of a Container. Fix #6237
2022-11-08 18:42:05 +00:00