Commit graph

1400 commits

Author SHA1 Message Date
Richard Davey
30276cd4c2
Merge pull request #3765 from DrevanTonder/master
change ParticleEmitter.startFollow to fix issue 3764
2018-06-19 13:20:19 +01:00
Richard Davey
622fd7c34a
Merge pull request #3745 from cyantree/feature/update-graphics-jsdoc
Changed options and sub options of `Graphics` constructor in docs to …
2018-06-19 13:19:12 +01:00
Richard Davey
62661b46fb Updated rounded rect functions 2018-06-19 13:17:38 +01:00
Richard Davey
cc5f1bb91e
Merge pull request #3755 from TadejZupancic/patch-8
Add rounded rectangle to Graphics
2018-06-19 12:47:58 +01:00
Richard Davey
95f923bcad
Merge pull request #3762 from dvdbrink/patch-1
Fix GameObject typings when returning itself
2018-06-19 12:30:57 +01:00
TadejZupancic
c1d0c11b30
Update Graphics.js 2018-06-18 10:52:49 +02:00
Andre van Tonder
b2f8a139cc change ParticleEmitter.startFollow to fix issue 3764 2018-06-18 14:25:12 +08:00
Chris Andrew
a480232d87 Documented Graphics.save() and Graphics.restore().
Adapted from Mozilla's descriptions of the corresponding Canvas methods.
2018-06-17 19:43:05 +01:00
Daniel van den Brink
9a2c110c44
Fix GameObject typings for returning this 2018-06-17 08:54:28 +02:00
DannyT
1eb60e09a3 changed animation api calls to include updated set verb (e.g. .setDelay() vs .delay()) 2018-06-16 18:15:29 +01:00
TadejZupancic
caef54a34e
Update Graphics.js 2018-06-15 14:36:24 +02:00
TadejZupancic
321aba14c3
Update Graphics.js 2018-06-15 14:31:44 +02:00
TadejZupancic
9affc60037
Update Graphics.js 2018-06-15 14:23:40 +02:00
Chris Andrew
47fdf779d3 Switched to example annotations for the setStyle() examples. 2018-06-14 14:49:29 +01:00
Chris Andrew
885b404b98 Fixed the indentation of setStyle() examples. 2018-06-14 14:41:17 +01:00
Chris Andrew
a6b8b8ed31 Documented the Text game object and its TextStyle companion.
Minor update to JSON representation descriptions.
2018-06-14 14:27:58 +01:00
cyantree
a727437304 Changed options and sub options of Graphics constructor in docs to be optional 2018-06-13 20:01:26 +02:00
Chris Andrew
468b61da6f Tweaked the LightsPlugin example in its class description. 2018-06-13 18:56:57 +01:00
Chris Andrew
124b0ff773 Documented Light, LightsManager and LightsPlugin.
Documented class description for TransformMatrix.

Added a missing description from Container's EachContainerCallback.
2018-06-13 18:44:32 +01:00
Chris Andrew
566fdaca0e Documented the TransformMatrix component. 2018-06-13 14:36:07 +01:00
Chris Andrew
eb84ad58df Documented the MatrixStack component. 2018-06-13 13:48:33 +01:00
Richard Davey
15b544fc46 jsdoc fixes 2018-06-13 08:37:40 +01:00
Richard Davey
9d52b6ac91 Fixed jsdoc errors 2018-06-12 17:05:39 +01:00
Richard Davey
5c7e624260 setInteractive will now take a configuration object as the only argument, allowing for easier setting of more complex input values 2018-06-11 11:35:31 +01:00
Chris Andrew
c08dde33b1 Documented some remaining TileSprite descriptions. 2018-06-08 17:07:35 +01:00
Chris Andrew
469c34feee Documented the remaining descriptions in the Quad and Sprite game objects. 2018-06-08 15:50:44 +01:00
Chris Andrew
ae214a8664 Documented the missing descriptions for the Mesh game object. 2018-06-08 15:42:55 +01:00
Chris Andrew
07e9878166 Documented the Light game object. 2018-06-08 15:40:39 +01:00
Chris Andrew
f8ee35d46a Fixed Gamepad lint errors, tweaked some Graphics docs. 2018-06-07 18:36:27 +01:00
Chris Andrew
62d6496dfb Adapted Graphics class description from Phaser CE.
Documented the remaining properties and a few more methods.
2018-06-07 16:47:27 +01:00
Chris Andrew
786d2068a3 Documented most of the Graphics Game Object methods. 2018-06-07 16:01:40 +01:00
Chris Andrew
69ec32a2fe Documented initial Graphics options and Graphics style settings types. 2018-06-07 16:01:40 +01:00
Chris Andrew
ab5853f65e Started documenting the Graphics game object.
Added a couple of missing descriptions for the Container game object.
2018-06-06 17:52:31 +01:00
Chris Andrew
39ace6c9e9 Finished all BitmapText descriptions, other than GameObject class descriptions. 2018-06-06 17:34:18 +01:00
Chris Andrew
fb33fd045d Documented DynamicBitmapText display callbacks.
Finished up some DynamicBitmapText related descriptions.

Removed the align property from BitmapTextConfig, as it's not used.
2018-06-06 17:26:55 +01:00
Chris Andrew
79c3242c68 Tweaked and filled in a few more BitmapText related descriptions. 2018-06-06 16:58:48 +01:00
Chris Andrew
c9d4ff9f83 Fixed case of @readOnly annotations in BitmapText and DynamicBitmapText. 2018-06-06 16:34:49 +01:00
Chris Andrew
96d750bb60 Documented BitmapText and DynamicBitmapText.
Moved BitmapFontData typedefs to the BitmapText class file.
2018-06-06 16:32:58 +01:00
Chris Andrew
25f1dedb74 Started documenting Bitmap Font data structures. 2018-06-06 15:12:12 +01:00
Chris Andrew
a90e78d0a9 Finished UpdateList and RetroFont.Config documentation. 2018-06-06 15:11:40 +01:00
Chris Andrew
4aaf071ad3 Cleaned up some previous documentation, finished the RenderTexture GameObject documentation. 2018-06-06 14:23:39 +01:00
Richard Davey
c0ac1259ea Significant Data Manager overhaul.
Adds in values property, removes redundant functions, streamlines the event flow, adds features to the get and set handlers.
2018-06-05 01:01:13 +01:00
Richard Davey
a67e5dbbd5
Merge pull request #3726 from samme/feature/updatelist-length
Add Phaser.GameObjects.UpdateList#length
2018-06-03 21:01:07 +01:00
samme
5be5ea8024 Add Phaser.GameObjects.UpdateList#length 2018-06-02 20:59:01 -07:00
Chris Andrew
9e49b30d31 Fixed @return annotation spacing for GetBitmapTextSize. 2018-06-01 15:32:03 +01:00
Chris Andrew
085efa3190 Fixed a couple of BitmapTextSize descriptions. 2018-06-01 15:28:00 +01:00
Chris Andrew
8a7f381a28 Improved some GetBitmapTextSize descriptions. 2018-06-01 15:25:16 +01:00
Chris Andrew
efaff363aa Documented XML Bitmap Font parsing and the GetBitmapTextSize function. 2018-06-01 15:21:10 +01:00
Chris Andrew
4750e92be4 Fixed a method signature issue with the Animation component's 'remove' event handler.
This prevented removed animations from stopping correctly, when they were removed from the AnimationManager.
2018-06-01 14:37:15 +01:00
Chris Andrew
007ac01f10 Documented the Animation, Pipeline and ToJSON Game Object components. 2018-06-01 14:08:35 +01:00
Chris Andrew
cb6077f231 Documented most of the Animation component class and some of the Animation class. 2018-06-01 13:11:25 +01:00
Chris Andrew
544daa8d4a Documented the DisplayList and UpdateList plugins, and the BuildGameObject function. 2018-06-01 11:36:12 +01:00
Richard Davey
7df02a4447 Added 2 NOOPs instead of merging the whole mixins. 2018-06-01 00:03:45 +01:00
TadejZupancic
6f7463f4f7
Particle Emitter Manager in Container
Added Alpha and ScrollFactor Mixin to Particle Emitter Manager otherwise it crashes when added to the Container.
2018-05-30 10:44:49 +02:00
Richard Davey
a739be27a1 RenderTexture.resize will allow you to resize the underlying Render Texture to the new dimensions given. Doing this also clears the Render Texture at the same time 2018-05-29 12:07:40 +01:00
Richard Davey
a7da8dc28f The Canvas RenderTexture drawImage method incorrectly set the values of the frame, causing them to appear wrongly scaled in the canvas renderer. Fix #3710 2018-05-29 11:50:23 +01:00
Richard Davey
6ab124c591
Merge pull request #3687 from thomastanck/thomastanck-typedefupdates
Update type definitions
2018-05-24 13:49:30 +01:00
Richard Davey
30678b44ff Updated method names 2018-05-23 23:09:31 +01:00
Richard Davey
1a1dbe2dd7 lint fix 2018-05-23 14:55:51 +01:00
Richard Davey
457ab68ef4 Container updated to use preDestroy and remove event hooks 2018-05-22 16:02:28 +01:00
Richard Davey
d629923e54 Blitter preDestroy will now clear the children List and renderList. 2018-05-22 16:02:13 +01:00
Richard Davey
b3ef36ed08 Added preDestroy callback 2018-05-22 15:59:23 +01:00
Richard Davey
660887f338 Group.destroy now respects the ignoreDestroy property. 2018-05-22 15:59:10 +01:00
Richard Davey
2630c982b4 jsdoc fixes 2018-05-22 15:55:36 +01:00
Richard Davey
137f97b325 RenderTexture.destroy has been renamed to preDestroy to take advantage of the preDestroy callback system. 2018-05-22 15:55:22 +01:00
Richard Davey
0893c158d1 Added jsdocs 2018-05-22 15:55:02 +01:00
Richard Davey
126ec196c1 TileSprite.destroy has been renamed to preDestroy to take advantage of the preDestroy callback system. 2018-05-22 15:54:53 +01:00
Thomas Tan
0fcfe73de1
Missed some cases 2018-05-22 16:08:44 +08:00
Thomas Tan
2c5cadc67c
Use this return type annotation 2018-05-22 12:46:26 +08:00
Thomas Tan
0fa334ff3e
Change Group.* return types from GameObject to any 2018-05-22 12:05:52 +08:00
Richard Davey
7c28a7bd08 Bob.reset will now reset the position, frame, flip, visible and alpha values of the Bob, plus JSDocs completed. 2018-05-18 14:44:25 +01:00
Richard Davey
9429a28574 The Particle tint value was incorrectly calculated, causing the color channels to be inversed. Fix #3643 2018-05-18 13:16:17 +01:00
Richard Davey
0d0846a415 Calling a creator, such as GraphicsCreator, without passing in a config object, would cause an error to be thrown. All Game Object creators now catch against this. 2018-05-16 15:17:08 +01:00
Richard Davey
984c90f0bc
Merge pull request #3659 from samme/fix/typescript-body
Correct JSDoc type for GameObject#body
2018-05-15 16:27:20 +01:00
Richard Davey
26faa58ad7 Corrected an error in Container.getBoundsTransformMatrix that called a missing method, causing a getBounds on a nested container to fail. Fix #3624 2018-05-15 16:23:33 +01:00
samme
0bbffdc965 Correct JSDoc type for GameObject#body 2018-05-15 08:04:44 -07:00
Richard Davey
5b0cb0faf3 All Game Objects have a new method setRandomPosition which will randomly position them anywhere within the defined area, or if no area is given, anywhere within the game size. 2018-05-15 15:58:53 +01:00
Richard Davey
350cb037b7 All systems now register themselves with the new PluginCache 2018-05-15 12:51:50 +01:00
Richard Davey
11cbf0cf8d Marked the children parameter as optional. Fix #3657 2018-05-10 23:32:46 +01:00
Richard Davey
be330e609e Moved PluginManager to new location 2018-05-10 17:14:33 +01:00
Richard Davey
672a535d88 Added disableInteractive and removeInteractive methods. #3621 2018-05-08 16:15:50 +01:00
Richard Davey
107ca71d6b BitmapText, both static and dynamic, can now take any data-type, including numbers, for the text argument in the constructor. Before they only worked via setText 2018-05-03 15:52:12 +01:00
Richard Davey
c13c828dc4 lint fix 2018-05-02 11:36:03 +01:00
Richard Davey
28251fd0f5 addToScene added to all Game Object Creators 2018-05-02 10:57:26 +01:00
Richard Davey
a30d5acb9e The Graphics Creator would automatically add the Graphics to the display list by mistake. The default should be to remain hidden. Fix #3637 2018-05-02 10:57:04 +01:00
Richard Davey
661ed5f675
Merge pull request #3629 from samme/fix/setEmitZone
Fix `source` checks in ParticleEmitter#setEmitZone
2018-05-01 11:38:52 +01:00
Richard Davey
3323b785b2 space-infix fix 2018-04-30 13:03:44 +01:00
Richard Davey
63dbd9fd12 The Animation Component setProgress method was setting the frame on the wrong object. Fix #3633 2018-04-30 12:37:50 +01:00
Richard Davey
373ebe7d3f Merge branch 'master' of https://github.com/photonstorm/phaser 2018-04-30 12:28:36 +01:00
Richard Davey
9fa74400ab Container.getBounds now checks if it can call getBounds on its children before doing so, as some do not have this method (such as Graphics objects) so they no longer cause the call to crash. Fix #3623 2018-04-30 12:28:26 +01:00
samme
5fc6f94c67 Remove source checks in setEmitZone 2018-04-28 13:10:22 -07:00
samme
f59f90d2ca Correct source types in *ZoneConfig definitions 2018-04-28 13:09:59 -07:00
samme
84ba1ba191 Correct source checks in setEmitZone 2018-04-28 08:41:32 -07:00
Rex
0a46d64328 Remove extra space in each line end
Add space only when the word index is greater than last one.
2018-04-28 14:54:59 +08:00
Richard Davey
2037cf468b More clarity. #3622 2018-04-27 12:42:37 +01:00
Richard Davey
b2b631534c
Merge pull request #3616 from samme/fix/particles
Fix ParticleEmitter#toJSON() output
2018-04-26 13:03:30 +01:00
samme
bd9831912c Don't stringify emitter ops twice 2018-04-24 14:20:23 -07:00
samme
0de5340201 Add 'angle' to configOpMap
It was missing from toJSON() output
2018-04-24 14:20:23 -07:00
samme
66f1ff848e Fix no children created from GroupCreateConfig[] (multiple adds)
Fixes #3612
2018-04-23 18:14:36 -07:00
Richard Davey
6d958c5157 jsdoc udpate 2018-04-23 23:39:24 +01:00