Richard Davey
|
ec6bbdeebd
|
Added typedefs for the Text Game Object. Fix #4551
|
2019-05-30 23:01:53 +01:00 |
|
Richard Davey
|
114b7b570d
|
Merge pull request #4552 from rexrainbow/master
Set canvas size equal to text object size
|
2019-05-30 22:24:51 +01:00 |
|
Richard Davey
|
897de33a64
|
Merge pull request #4554 from samme/types/group-classType
Remove GroupClassTypeConstructor type
|
2019-05-30 22:05:55 +01:00 |
|
Richard Davey
|
90e04c7e90
|
Merge pull request #4563 from samme/types/tween-configs
Add types for tween configs
|
2019-05-30 22:00:37 +01:00 |
|
Richard Davey
|
df0b474638
|
Added getTopCenter, getBottomCenter, getLeftCenter and getRightCenter
|
2019-05-29 16:27:31 +01:00 |
|
samme
|
777f436aa3
|
Add NumberTweenBuilderConfig to path configs
|
2019-05-28 14:11:28 -07:00 |
|
samme
|
7125334677
|
Duration is optional
|
2019-05-28 14:08:03 -07:00 |
|
samme
|
c3c11652ef
|
Merge branch 'master' of https://github.com/photonstorm/phaser into types/group-classType
|
2019-05-28 09:16:27 -07:00 |
|
samme
|
84e476762a
|
Docs description for GroupCreateConfig
|
2019-05-27 09:05:16 -07:00 |
|
samme
|
e879ec7703
|
Correct types for GroupCreateConfig.key, GroupCreateConfig.frame
|
2019-05-27 09:03:28 -07:00 |
|
Rex
|
9a958631fc
|
Don't draw text only when width or height is 0
It can fix this issue:
Text is empty string '', but have fixedWidth and fixedHeight, with backgroundColor setting.
|
2019-05-26 20:58:40 +08:00 |
|
samme
|
8e717d5588
|
Remove GroupClassTypeConstructor type
|
2019-05-23 15:10:40 -07:00 |
|
Hua
|
cc7870906b
|
Fix coding style
|
2019-05-23 17:30:04 +08:00 |
|
Hua
|
d1b31649ec
|
Fix text align to right/center issue
Calculate text-width in fixedWidth mode
|
2019-05-23 17:22:51 +08:00 |
|
Hua
|
97b60efa21
|
Set canvas size equal to text object size
Canvas size might less than text object size, when `fixedWidth` and `fixedHeight` is set.
|
2019-05-23 16:54:32 +08:00 |
|
Richard Davey
|
9959dce57e
|
Passing a Frame object to Bob.setFrame would fail, as it expected a string or integer. It now checks the type of object, and if a Frame it checks to make sure it's a Frame belonging to the parent Blitter's texture, and if so sets it. Fix #4516
|
2019-05-17 14:00:39 +01:00 |
|
Richard Davey
|
0ac5d7b8d9
|
There was some test code left in the DOMElementCSSRenderer file that caused getBoundingClientRect to be called every render. This has been removed, which increases performance significantly for DOM heavy games.
|
2019-05-17 13:43:55 +01:00 |
|
Richard Davey
|
e23a86d45a
|
The default BaseShader vertex shader has a new uniform uResolution which is set during the Shader init and load to be the size of the Game Object to which the shader is bound.
|
2019-05-16 17:44:59 +01:00 |
|
Hua
|
fd454a1e9b
|
Use customHitArea in condition
customHitArea has been added in 3.17.0, used in text game object
|
2019-05-14 10:12:32 +08:00 |
|
Richard Davey
|
c91ed91ce3
|
License link update
|
2019-05-10 16:15:04 +01:00 |
|
Richard Davey
|
7deaa9e2b2
|
Merge pull request #4517 from antoine-pous/patch-1
JSDoc fix returned object type
|
2019-05-10 14:19:36 +01:00 |
|
Richard Davey
|
a6341a97a8
|
Fixed Types references
|
2019-05-09 15:32:53 +01:00 |
|
Antoine Pous
|
ce1577bcc3
|
JSDoc fix returned object type
|
2019-05-09 15:20:37 +02:00 |
|
Richard Davey
|
290389c4ae
|
Input Types
|
2019-05-09 12:02:03 +01:00 |
|
Richard Davey
|
b09ddc9048
|
GameObject Types
|
2019-05-09 12:01:00 +01:00 |
|
Richard Davey
|
7ba03dff54
|
TileSprite Types
|
2019-05-09 11:59:43 +01:00 |
|
Richard Davey
|
1a3263ad5e
|
Text Types
|
2019-05-09 11:59:10 +01:00 |
|
Richard Davey
|
ff723f64b6
|
Sprite Types
|
2019-05-09 11:58:41 +01:00 |
|
Richard Davey
|
275a3afe5f
|
RenderTexture Types
|
2019-05-09 11:58:09 +01:00 |
|
Richard Davey
|
3ca2b667b3
|
PathFollower Types
|
2019-05-09 11:57:27 +01:00 |
|
Richard Davey
|
29aee69aa0
|
Particles Types
|
2019-05-09 11:57:00 +01:00 |
|
Richard Davey
|
8e8b182359
|
Group Types
|
2019-05-09 11:56:16 +01:00 |
|
Richard Davey
|
32b4e6b04e
|
Graphics Types
|
2019-05-09 11:55:40 +01:00 |
|
Richard Davey
|
a51a81791f
|
Bitmap Text Types
|
2019-05-09 11:54:43 +01:00 |
|
Richard Davey
|
2b073cba51
|
Actions Types
|
2019-05-09 11:44:01 +01:00 |
|
Richard Davey
|
4092056e84
|
Fixed namespace
|
2019-05-09 11:05:42 +01:00 |
|
Richard Davey
|
ad09a18133
|
Finished JSDocs
|
2019-05-08 21:49:36 +01:00 |
|
Richard Davey
|
64572c430c
|
Finished JSDocs for all DOM Element methods and properties
|
2019-05-08 17:35:35 +01:00 |
|
Richard Davey
|
04e4e07047
|
More JSDocs
|
2019-05-08 15:42:53 +01:00 |
|
Richard Davey
|
860cdbf2bf
|
Adding DOM Element JSDocs
|
2019-05-08 15:00:04 +01:00 |
|
Richard Davey
|
faa72add9b
|
Removed ComputedSize component as we need the values read-only.
Fixed renderer for DOM Elements inside of Containers, or outside, or in a scaled canvas.
|
2019-05-08 00:26:54 +01:00 |
|
Richard Davey
|
cdd9d85b8e
|
DOM Elements set visible in preUpdate now. Fix #4486
|
2019-05-07 16:39:46 +01:00 |
|
Richard Davey
|
18a924c39c
|
Passing an _array_ of configuration objects to physics.add.group would ignore them and none of the children would be assigned a physics body. Fix #4511
|
2019-05-07 16:17:28 +01:00 |
|
Richard Davey
|
acc5f92a8a
|
Merge pull request #4503 from jcyuan/master
expose ParseXMLBitmapFont for combined XML font file
|
2019-05-04 12:23:02 +01:00 |
|
Richard Davey
|
9672602c2f
|
Merge pull request #4504 from rexrainbow/master
Constraints canvas size via object size
|
2019-05-04 12:21:06 +01:00 |
|
Richard Davey
|
73d50071a8
|
DOM Element will check if parent can render
|
2019-05-03 19:01:02 +01:00 |
|
Richard Davey
|
abccac28f8
|
Can pass in either a BaseShader or a string
|
2019-05-01 17:04:53 +01:00 |
|
Richard Davey
|
b22f5ce5fd
|
Improved jsdocs
|
2019-05-01 12:59:05 +01:00 |
|
Richard Davey
|
4edd77275a
|
Removed funcmap and moved to renderer. Finished method jsdocs.
|
2019-05-01 12:30:09 +01:00 |
|
Richard Davey
|
2f48d68735
|
A shader can now be used as a bitmap mask
|
2019-05-01 11:12:31 +01:00 |
|
Rex
|
72df134571
|
Constrains canvas sizer via game object size
|
2019-05-01 11:48:08 +08:00 |
|
Rex
|
2a51bb8c3b
|
Remove redundant code
|
2019-05-01 10:10:05 +08:00 |
|
Rex
|
816eb6d677
|
Remove redundant code
|
2019-05-01 10:09:20 +08:00 |
|
Rex
|
b2a32a8e8f
|
Constraints canvas size if using fixedWidth, fixedHeight style
|
2019-05-01 10:06:04 +08:00 |
|
Richard Davey
|
de7c804c47
|
Shaders can now easily handle sampler2D uniforms
|
2019-05-01 00:05:52 +01:00 |
|
Richard Davey
|
0ebdf7073c
|
Optional texture key array
|
2019-05-01 00:05:22 +01:00 |
|
Richard Davey
|
8484f33c18
|
Handle invalid shader keys gracefully
|
2019-04-30 19:56:03 +01:00 |
|
Richard Davey
|
272fbfcd7a
|
Improved jsdocs, finished splitting up render process
|
2019-04-30 19:43:50 +01:00 |
|
Richard Davey
|
38d8ae7d68
|
Uniforms properly applied
|
2019-04-30 19:11:29 +01:00 |
|
Richard Davey
|
e5d944b977
|
Updating Shader Game Object to use new Shader class
|
2019-04-30 17:11:55 +01:00 |
|
J.C
|
b6047df1b5
|
flag which version has this method
|
2019-04-30 23:29:28 +08:00 |
|
J.C
|
8c3de0897e
|
expose ParseXMLBitmapFont for combined XML font file
|
2019-04-30 19:31:47 +08:00 |
|
Richard Davey
|
3c655bff3e
|
Improved jsdocs
|
2019-04-30 11:08:34 +01:00 |
|
Richard Davey
|
14ae8ecf19
|
Added NOOP
|
2019-04-29 17:14:05 +01:00 |
|
Richard Davey
|
e07248a403
|
Use proper elapsed time for the shader
|
2019-04-26 19:13:45 +01:00 |
|
Richard Davey
|
8620e2303d
|
Added setPointer
|
2019-04-26 00:56:53 +01:00 |
|
Richard Davey
|
55410038eb
|
Updated factory
|
2019-04-25 17:48:06 +01:00 |
|
Richard Davey
|
4d16f21c20
|
re-init uniforms if setShader
|
2019-04-25 17:13:31 +01:00 |
|
Richard Davey
|
2c4d0d9fd3
|
Uniforms are now synced properly and attribute is hard coded
|
2019-04-25 16:57:12 +01:00 |
|
Richard Davey
|
a26a420f23
|
Added transformOnly flag
|
2019-04-25 15:44:19 +01:00 |
|
Richard Davey
|
d849031195
|
Y oh Y :)
|
2019-04-25 15:08:32 +01:00 |
|
Richard Davey
|
a0ef6e9d1b
|
Added default shader
|
2019-04-25 15:07:46 +01:00 |
|
Richard Davey
|
27d6bd544f
|
Drop the modelMatrix, it's not needed for this GO. Also only change vertexView elements that need changing.
|
2019-04-25 14:21:33 +01:00 |
|
Richard Davey
|
5449f7b51d
|
Skip blendMode and add setShader method
|
2019-04-25 14:03:50 +01:00 |
|
Richard Davey
|
f37a61de27
|
Shader now using viewLoad2D instead and accounting for origin
|
2019-04-25 12:12:49 +01:00 |
|
Richard Davey
|
ba8d1adbbb
|
Removing use of Shader pipeline
|
2019-04-25 11:30:23 +01:00 |
|
Richard Davey
|
7d74425491
|
Added new Shader Game Object
|
2019-04-25 03:15:51 +01:00 |
|
Richard Davey
|
ac3fac4ab6
|
UpdateList.remove will now move the removed child to the internal _pendingRemoval array, instead of slicing it directly out of the active list. The pending list is cleared at the start of the next game frame. Fix #4365
|
2019-04-24 13:58:05 +01:00 |
|
Richard Davey
|
f4a86fd368
|
The Container.setScrollFactor method has a new optional argument updateChildren . If set, it will change the scrollFactor values of all the Container children as well as the Container. Fix #4466 #4475
|
2019-04-24 12:09:16 +01:00 |
|
Richard Davey
|
53c14df798
|
Changing any aspect of a Text object, such as the font size or content, wouldn't update its hitArea if it had been enabled for input, causing it to carry on using the old hit area size. Now, as long as the Text was created _without_ a custom hitArea, the hitArea size will be changed to match the new texture size on update. If you have provided your own custom hitArea shape, you need to modify it when the Text changes size yourself. Fix #4456
|
2019-04-24 11:21:36 +01:00 |
|
Richard Davey
|
f65f643a5f
|
Added setClassName method.
|
2019-04-23 11:21:26 +01:00 |
|
Richard Davey
|
e82e7c6ba0
|
Formatting fix
|
2019-04-18 17:55:49 +01:00 |
|
Richard Davey
|
7b438bfd3b
|
Copy paste fix
|
2019-04-18 17:55:42 +01:00 |
|
Hua
|
a05cd9377a
|
Update rectangle hitarea when updated text
|
2019-04-18 11:04:27 +08:00 |
|
Richard Davey
|
14d16b3c06
|
Add temp matrix to Graphics to avoid sharing issue during mask rendering
|
2019-04-15 23:38:09 +01:00 |
|
Richard Davey
|
78e1ef9df0
|
Particle Emitters and Containers can now have geometry masked children
|
2019-04-15 16:46:47 +01:00 |
|
Richard Davey
|
754ae7caa2
|
Particle Emitters can now be masked
|
2019-04-12 17:46:52 +01:00 |
|
Richard Davey
|
9dd3e7cd15
|
Added missing Mask component
|
2019-04-12 17:46:39 +01:00 |
|
Richard Davey
|
1a9f6130bf
|
Update DOMElementCSSRenderer.js
|
2019-04-09 23:43:47 +01:00 |
|
Richard Davey
|
a0c48596b3
|
Can now create dom elements on creation of the object.
|
2019-04-09 23:29:32 +01:00 |
|
Richard Davey
|
d823b7b49e
|
More flexible Factory function including element, style and innerText setters
|
2019-04-09 23:29:14 +01:00 |
|
Richard Davey
|
1b135b2efb
|
Tidying up CSS rendering
|
2019-04-09 23:28:56 +01:00 |
|
Richard Davey
|
950fc79e2e
|
Took DOM Element out of experimental and hooked to the Scale Manager
|
2019-04-09 23:28:40 +01:00 |
|
Richard Davey
|
9b29001449
|
Defaults should be false for closePath , not true .
|
2019-04-08 13:53:08 +01:00 |
|
Richard Davey
|
1995be80a2
|
GameObjects.Components.PathFollower is a new component that manages any type of Game Object following a path. The original Path Follower Game Object has been updated to use this new component directly, but it can be applied to any custom Game Object class.
|
2019-04-08 13:53:08 +01:00 |
|
Richard Davey
|
f0acd2dfaf
|
rgb fix, lint fix and no need for frame argument
|
2019-04-08 12:49:03 +01:00 |
|
Richard Davey
|
55959500d2
|
Update RenderTextureConfig.js
|
2019-04-08 12:44:37 +01:00 |
|
Richard Davey
|
7c0645c1b9
|
Merge branch 'master' into master
|
2019-04-08 12:44:04 +01:00 |
|
Richard Davey
|
19c0b47167
|
Removed Graphics.lineFxTo and moveFxTo and the associated commands.
|
2019-04-08 12:32:07 +01:00 |
|
Richard Davey
|
05fb7b28e0
|
Merge pull request #3979 from pixelpicosean/fix-graphics-fx-drawing
Fix graphics moveFxTo and lineFxTo not work
|
2019-04-08 12:18:09 +01:00 |
|