Richard Davey
|
302a49863b
|
Improved jsdocs
|
2020-09-01 18:38:44 +01:00 |
|
Richard Davey
|
5b96ade1c7
|
Types.GameObjects.Text.GetTextSizeObject
|
2020-09-01 18:38:35 +01:00 |
|
Richard Davey
|
ed33253fb1
|
Merge pull request #5235 from mk360/text-padding
[types] allow Text#setPadding to receive an object
|
2020-08-20 10:04:35 +01:00 |
|
mk360
|
748e699d43
|
update setPadding jsdoc
|
2020-08-10 08:21:26 +03:00 |
|
Bulat Khasanov
|
8e1b5e757d
|
Allow to pass font in TextStyle
|
2020-08-09 23:34:31 +03:00 |
|
Patrick Sletvold
|
edf0c17703
|
Use TextPadding type in Text game object
|
2020-08-01 13:35:02 +02:00 |
|
Patrick Sletvold
|
87e8eba213
|
Correctly type style in TextFactory
|
2020-08-01 13:34:37 +02:00 |
|
Patrick Sletvold
|
a525e43dcf
|
Add TextConfig type for TextCreator
|
2020-08-01 13:34:07 +02:00 |
|
mk360
|
a7371b9a85
|
[types] allow Text#setPadding to receive an object
|
2020-07-24 18:48:17 +03:00 |
|
Richard Davey
|
d942e2bd47
|
Update TextWebGLRenderer.js
|
2020-07-16 16:59:59 +01:00 |
|
Richard Davey
|
68585f1718
|
The Text Game Object now supports rendering in Light2d, no matter which font, stroke or style it is using.
|
2020-07-16 16:16:26 +01:00 |
|
Richard Davey
|
f7af980b1e
|
Fixed version number
|
2020-07-13 13:01:41 +01:00 |
|
Richard Davey
|
be158f48e6
|
Merge pull request #5194 from mikewesthad/types-fix-wordwrap
Update TextStyle to have jsdocs for word wrap related properties
|
2020-07-13 12:57:29 +01:00 |
|
Michael Hadley
|
8285bcf44f
|
Fix spacing
|
2020-06-17 08:21:06 -05:00 |
|
Michael Hadley
|
a161aa58cc
|
Update TextStyle to have jsdocs for: wordWrapWidth, wordWrapUseAdvanced, wordWrapCallbackScope, wordWrapCallback
|
2020-06-17 07:53:23 -05:00 |
|
Michael Hadley
|
4e0176691a
|
Fix return type in Text#getTextMetrics: object -> Phaser.Types.GameObjects.Text.TextMetric
|
2020-05-30 07:53:48 -05:00 |
|
Richard Davey
|
f92b649d85
|
Merge pull request #5004 from samme/fix/4976-headless-text
Fix updateText() error for headless renderer
|
2020-04-27 12:36:01 +01:00 |
|
samme
|
eeb00c1a92
|
Docs: when to quote fontFamily
Fixes #5076
|
2020-04-04 10:56:52 -07:00 |
|
samme
|
55e4dc2329
|
Fix TypeError for headless renderer
|
2020-02-15 11:50:05 -08:00 |
|
Jason Kwok
|
8e82f22858
|
Fixed this return types for Phaser.GameObjects.Text
|
2020-01-26 21:43:48 +08:00 |
|
Richard Davey
|
ff65e69cd1
|
Changed copyright date to 2020
|
2020-01-15 12:07:09 +00: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 |
|
Hua
|
3c4cf8834e
|
Don't add white space at last word of a line
|
2019-11-27 13:09:07 +08:00 |
|
Richard Davey
|
f4002471d7
|
Updated context lost / restored handlers
|
2019-07-17 16:38:00 +01:00 |
|
Richard Davey
|
0d8a9bb7ae
|
Fixed TextSyle typo. Fix #4630
|
2019-07-02 12:32:29 +01:00 |
|
Richard Davey
|
f5cae5a48b
|
Added in Text justification feature. Fix #4291
|
2019-06-19 09:46:32 +01:00 |
|
Richard Davey
|
2cdb672d36
|
Added new Text Padding typedef
|
2019-06-05 23:40:27 +01:00 |
|
Richard Davey
|
2446e2f3fc
|
Setting padding in a Text style configuration object would cause an error about calling split on undefined. Padding can now be applied both in the config and via setPadding
|
2019-06-05 23:40:10 +01:00 |
|
Richard Davey
|
558f6aea55
|
JSDoc fixes
|
2019-06-04 16:01:37 +01:00 |
|
Richard Davey
|
278bde236b
|
lint fix
|
2019-05-30 23:05:06 +01:00 |
|
Richard Davey
|
ec6bbdeebd
|
Added typedefs for the Text Game Object. Fix #4551
|
2019-05-30 23:01:53 +01: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 |
|
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
|
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
|
b09ddc9048
|
GameObject Types
|
2019-05-09 12:01:00 +01:00 |
|
Richard Davey
|
1a3263ad5e
|
Text Types
|
2019-05-09 11:59:10 +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 |
|
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
|
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 |
|
Hua
|
a05cd9377a
|
Update rectangle hitarea when updated text
|
2019-04-18 11:04:27 +08:00 |
|
Richard Davey
|
d13e79a8db
|
Merge pull request #4427 from rexrainbow/master
Fix bug about counting height of text object
|
2019-04-05 17:25:27 +01:00 |
|
Richard Davey
|
e017691c68
|
The ScaleMode Component has been removed from every Game Object, and along with it the scaleMode property and setScaleMode method. These did nothing anyway as they were not hooked to the render pipeline and scale mode should be set on the texture, not the Game Object. Fix #4413
|
2019-03-24 23:07:27 +00:00 |
|