Commit graph

161 commits

Author SHA1 Message Date
Richard Davey
9febc6b44a Update version number 2024-01-12 18:03:09 +00:00
samme
5cd5cadf79 Fix removing destroyed Container child 2023-12-03 16:14:46 -08:00
Emil Schnedler Vad
bc6ec0a124 reverted using getTextBounds for cotainer getBounds() 2023-04-08 20:37:12 +02:00
Richard Davey
f82bf52cad Why clear alpha? 2023-03-09 18:34:01 +00:00
Emil Schnedler Vad
70aedd9344 fixed order of function check 2023-02-10 14:03:24 +01:00
Emil Schnedler Vad
f21834c50b container#getBounds now also support getTextBounds for bounds calculations 2023-02-09 14:33:28 +01:00
Richard Davey
f1032c8af5 Swapped to use PostPipeline only 2023-02-03 17:52:23 +00:00
Richard Davey
468bf7821d Updated copyright year 2023-01-02 17:36:27 +00:00
Richard Davey
14ddd29fbd Fixed TS errors 2022-11-30 15:06:52 +00:00
Richard Davey
886920155b Add generics 2022-11-22 21:55:30 +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
cf94e2cc8e Update Container.js 2022-06-22 17:17:52 +01:00
Richard Davey
e032d573b1 Update Container.js 2022-06-22 16:13:41 +01:00
Richard Davey
9fb446c7e2 Container.removeAll (which is also called when a Container is destroyed) will now directly destroy the children, if the given parameter is set, rather than doing it after removing them via the event handler. This fixes an issue where nested Containers would add destroyed children back to the Scene as part of their shutdown process. Fix #6078 2022-06-07 17:07:46 +01:00
Richard Davey
bdc3c05a1a Container.removeHandler now specifies the context for Events.DESTROY, fixing an issue where objects moved from one container, to another, then destroyed, would cause sys reference errors. Fix 5846 2022-06-07 16:54:48 +01:00
Richard Davey
a5132b2342 Call addedToScene and removedFromScene
* `Container.addHandler` will now call `GameObject.addedToScene`.
* `Container.removeHandler` will now call `GameObject.removedFromScene`.
2022-06-07 16:44:26 +01:00
Richard Davey
a4d8e87095 Fixed lint errors 2022-05-10 17:06:53 +01:00
Richard Davey
919fa39faa
Merge pull request #6067 from TJ09/commonjs-import-change
Don't reassign the return values from require()
2022-05-09 16:49:58 +01:00
Richard Davey
f8267e4ff8 ContainerCanvasRenderer would pass in a 5th container parameter to the child renderCanvas call, which was breaking the GraphicsCanvasRenderer and isn't needed by any Game Object, so has been removed. Fix #6093 2022-05-06 15:36:48 +01:00
T.J. L
ff4ef2872b Don't overwrite the return values from require() 2022-04-02 01:49:19 -07:00
Richard Davey
59fbcc5ca3 Updated copyright year 2022-02-28 14:29:51 +00:00
stu
85396d13ab Container game object should supply container reference to child rendering 2022-02-25 17:56:50 +00:00
Vladislav Forsh
7a636379f5 Fix pointToContainer issue with output parameter
provided `output` parameter was ignored when the container didn't have a parent container (was attached directly to the scene)

(cherry picked from commit 0d97dcc1f844f528f2361bfd800dec4885c5edc1)
2022-01-06 13:07:16 +03:00
Richard Davey
93db763f69
Merge pull request #5340 from 16patsle/Fix_object_types
Add more specific 'object' types, including GO Configs
2021-09-23 15:30:43 +01:00
Richard Davey
45ccff26e1 Fixed jsdoc name 2021-05-24 17:33:01 +01:00
Richard Davey
4a32a5cdb8
Merge pull request #5664 from rexrainbow/container-input-2
Invoke `addToRenderList()` before leaving render method
2021-05-24 16:54:43 +01:00
Rex
62ea171971 Add MoveAbove, MoveBelow methods of List structure
MoveAbove: Moves the given array element above another one in the array.
MoveBelow: Moves the given array element below another one in the array.
2021-04-26 15:17:42 +08:00
Rex
fca1eb1206 Also fix it in CanvasRender 2021-04-20 21:15:46 +08:00
Rex
e6ed148abc Invoke addToRenderList first before leaving render method
Leaving render method when children count is 0
2021-04-20 10:22:59 +08:00
Richard Davey
e9da34e39f Docs update. Fix #5604 2021-03-24 16:30:33 +00:00
Richard Davey
bd9fbfe077 Adding a Game Object to a Container that already existed in another Container would leave a copy of it on the Display List 2021-03-24 15:39:30 +00:00
Richard Davey
e2f19617f3 3.53.1 Release 2021-03-08 16:37:16 +00:00
Richard Davey
27806dad9c Container.addHandler will now use the new addToDisplayList and removeFromDisplayList Game Object methods. 2021-03-03 18:00:34 +00:00
Rex
ee16c63987 Fix parameter name bug 2021-01-29 09:32:45 +08:00
Rex
7f610eef98 Fix input bug 2021-01-21 11:13:33 +08:00
Richard Davey
00d8b6a009 Invoke camera.addToRenderList method 2021-01-07 12:31:31 +00:00
Patrick Sletvold
f1836738a0
Merge remote-tracking branch 'origin/master' into Fix_object_types 2020-12-10 11:23:35 +01:00
Richard Davey
3154bf2e6f Update Container.js 2020-12-07 13:11:49 +00:00
Richard Davey
0ee1338765 Better post pipeline call (less code) 2020-11-26 09:51:40 +00:00
Richard Davey
d2e2e86ef1 Updated accessor 2020-11-23 16:22:11 +00:00
Richard Davey
2e4cfde102 Updated post pipeline 2020-11-23 16:18:30 +00:00
Richard Davey
02c34cd64e Replace integer with number 2020-11-23 10:22:13 +00:00
Richard Davey
e29fc62a98 Handle pre and post pipelines 2020-11-05 10:19:15 +00:00
Richard Davey
fb47d2f9e8 Added Pipeline component 2020-11-05 10:18:53 +00:00
Richard Davey
bf7e7f352a Container can how set a pipeline that overrides all children 2020-10-29 17:22:16 +00:00
Richard Davey
ce69c22e86 Added new private forcePipeline property and pipeline methods 2020-10-29 17:22:04 +00:00
Patrick Sletvold
c1d63d32dd
Add Config typedefs for a bunch of GO Creators 2020-10-03 10:40:24 +02:00
Richard Davey
0e72b3d3a0 Container doesn't need to be on the updateList, so remove the handler. 2020-09-30 09:20:16 +01:00
Richard Davey
24de03ca96 Added missing ADDED_TO_SCENE handlers 2020-09-29 20:14:30 +01:00