Commit graph

2030 commits

Author SHA1 Message Date
samme
f4c011496c Fix PathFollower always at end of path 2020-01-16 14:44:26 -08:00
Richard Davey
4a6b2087f7 Fixed internal callback handlers 2020-01-15 12:45:59 +00:00
Richard Davey
ff65e69cd1 Changed copyright date to 2020 2020-01-15 12:07:09 +00:00
Richard Davey
e1a6214c9b A DOMElement will now set the display mode to 'none' during its render if the Scene in which it belongs is no longer visible. 2020-01-15 11:15:23 +00:00
Richard Davey
867a11b30b DOMElement has a new private method handleSceneEvent which will handle toggling the display setting of the element when a Scene sleeps and wakes. A DOM Element will now listen for the Scene sleep and wake events. These event listeners are removed in the preDestroy method. 2020-01-15 11:15:09 +00:00
Richard Davey
90c8825ddb A PathFollower with a very short duration would often not end in the correct place, which is the very end of the Path, due to the tween handling the movement not running one final update when the tween was complete. It will now always end at the final point of the path, no matter how short the duration. Fix #4950 2020-01-15 10:42:56 +00:00
Richard Davey
08c4ab0e4c Added internalCreateCallback and internalRemoveCallback to a Group 2020-01-14 23:55:21 +00:00
Richard Davey
a81c2ea132 When playing an Animation, if you were to play another, then pause it, then play another the internal _paused wouldn't get reset, preventing you from them pausing the animations from that point on. You can now play and pause animations at will. Fix #4835 2020-01-14 22:42:14 +00:00
Richard Davey
1928480913 Fixed JSDocs 2020-01-13 12:35:33 +00:00
Andrew Brampton
e42f227ec2
Update documentation and one import, to use the consistent name of Vector2.
There were examples that used Vec2, which wouldn't work. For example `An array of Point or Vector2 objects: [new Phaser.Math.Vec2(x1, y1), ...]` was not copy and pastable.
2020-01-11 06:46:25 -08:00
Richard Davey
2d3a87a3a6 Updated existing for TS defs. Fix #4941 2020-01-06 13:33:23 +00:00
Richard Davey
5e027f7031 Added JSDocs 2020-01-02 16:45:28 +00:00
Richard Davey
4892cc7feb The Graphics Game Object now uses the AlphaSingle component, allowing you to uniformly set the alpha of the element, rather than a quad alpha, which never worked for these objects. 2019-12-28 17:37:13 +00:00
Richard Davey
6ffdacc959 The DOMElement Game Object now uses the AlphaSingle component, allowing you to uniformly set the alpha of the element, rather than a quad alpha, which never worked for these objects. 2019-12-28 17:37:04 +00:00
Richard Davey
e6464f6ad3 Merge branch 'master' of https://github.com/photonstorm/phaser 2019-12-28 17:29:11 +00:00
Richard Davey
f0e7a9bcf9 The Container Game Object now uses the AlphaSingle component, allowing you to uniformly set the alpha of the container, rather than a quad alpha, which never worked consistently across Container children. Fix #4916 2019-12-28 17:27:31 +00:00
Richard Davey
949d882788 The Shape Game Object now uses the AlphaSingle component, allowing you to uniformly set the alpha of the shape, rather than a quad alpha, which never worked for Shape objects. 2019-12-28 17:27:15 +00:00
Richard Davey
695cb7e4e2 AlphaSingle is a new Game Object Component that allows a Game Object to set its alpha values, but only as a single uniform value, not on a per-quad basis. 2019-12-28 17:27:01 +00:00
Richard Davey
5130fccbf5
Merge pull request #4921 from samme/feature/emitter-remove
Add ParticleEmitter.remove() and ParticleEmitterManager#removeEmitter()
2019-12-28 16:35:07 +00:00
Richard Davey
5adf6382ff
Merge pull request #4922 from samme/feature/emitter-setTint
Add ParticleEmitter#setTint()
2019-12-28 16:33:39 +00:00
J.C
936563df11 Crop component is missing from RenderTexture class 2019-12-27 17:01:14 +08:00
samme
15506e0faf Add ParticleEmitter.remove() and ParticleEmitterManager#removeEmitter() 2019-12-23 10:36:35 -08:00
samme
559c89eaf2 Add ParticleEmitter#setTint() 2019-12-23 09:25:35 -08:00
Richard Davey
66a25e2117 Setting lineSpacing in the Text Game Object style config would set the value but not apply it to the Text, leaving you to call updateText yourself. If set, it's now applied on instantiation. Fix #4901 2019-12-18 14:55:12 +00:00
Richard Davey
752999c92b The Mesh and Quad Game Objects have had the GetBounds component removed as it cannot operate on a Mesh as they don't have origins. Fix #4902 2019-12-18 14:43:23 +00:00
Richard Davey
205bbab268
Merge pull request #4886 from rexrainbow/text-wrap
Don't add white space at last word of a line
2019-12-18 14:31:11 +00:00
Richard Davey
e5ab24ec8c
Merge pull request #4912 from javigaralva/add-gameobjectfactory-docs
Added doc for `GameObjectFactory.register` and `GameObjectFactory.remove`
2019-12-18 14:29:25 +00:00
Richard Davey
427d88ed79
Merge pull request #4913 from javigaralva/fix-doc-static-functions
Fix doc static functions
2019-12-18 14:28:51 +00:00
Javier García Álvarez
9d418eae73 Fixed jsdoc types to get TS definition intellisense. 2019-12-18 12:25:14 +01:00
Javier García Álvarez
e1d288a834 Add optional params to ParseFromAtlas doc 2019-12-18 12:22:30 +01:00
Javier García Álvarez
dbaf6f1f75 Fixed jsdocs @name to @method 2019-12-18 11:48:30 +01:00
Javier García Álvarez
718db273c2 Added doc for GameObjectFactory.register and GameObjectFactory.remove 2019-12-18 11:32:29 +01:00
Javier García Álvarez
7576c824af Fixed semicolon in updateList doc 2019-12-18 10:38:44 +01:00
Chris Andrew
15ac5e736a #4903 Clarified z position documentation by linking to depth GO component. 2019-12-09 16:57:05 +00:00
Hua
3c4cf8834e Don't add white space at last word of a line 2019-11-27 13:09:07 +08:00
Richard Davey
7650c5535f BitmapText with a maxWidth set wouldn't update the text correctly if it was modified post-creation. You can now update the text and/or width independantly and it'll update correctly. Fix #4881 2019-11-26 14:31:27 +00:00
Richard Davey
4a33c7b5c8 Don't reset text 2019-11-22 16:43:13 +00:00
Richard Davey
a7b3cd585d Tidying up 2019-11-22 16:42:53 +00:00
Richard Davey
0d46c7107a Fixed issue with carriage-returns not reflowing text 2019-11-22 16:42:43 +00:00
Richard Davey
4435791cc1 Updated to use current null approach 2019-11-22 13:54:07 +00:00
Richard Davey
28982fb7fc Fixed word wrapping 2019-11-22 13:48:10 +00:00
Richard Davey
b297950875 Added wordWrapCharCode 2019-11-22 13:48:01 +00:00
Richard Davey
5b1401153c Working through BitmapText wrapping 2019-11-21 17:11:43 +00:00
Richard Davey
ce2dbb7095
Merge pull request #4873 from samme/feature/group-type
Add `type` for Group, Arcade.Group, Arcade.StaticGroup
2019-11-20 21:54:10 +00:00
samme
8585541e15 Add type for Group, PhysicsGroup, StaticPhysicsGroup 2019-11-20 11:53:38 -08:00
Richard Davey
3eafac9f4f lint fixes 2019-11-19 13:02:05 +00:00
Richard Davey
c37058ef4b When calling TileSprite.setTexture or setFrame, if the new frame size didn't match the old one, the new fill pattern would become distorted and the potWidth and potHeight values would be incorrect. 2019-11-19 11:49:54 +00:00
Richard Davey
b95a6a45bd Fixed some JSDocs resulting from #4850 2019-11-19 11:23:19 +00:00
Richard Davey
4606f0b443
Merge pull request #4850 from rexrainbow/group-improvement
Add some action methods
2019-11-19 11:04:17 +00:00
Richard Davey
171ca39544
Merge pull request #4847 from rexrainbow/Action-of-scrollFactor
Add SetScrollFactor into Action and Group's createFromConfig
2019-11-19 10:55:16 +00:00