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
|
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
|
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
|
b09ddc9048
|
GameObject Types
|
2019-05-09 12:01:00 +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 |
|
Hua
|
b562917490
|
Fix fixedWidth, fixedHeight assignment issue
|
2019-03-15 17:11:04 +08:00 |
|
Hua
|
3c75872335
|
Fix word wrap issue
|
2019-03-15 17:06:39 +08:00 |
|
Richard Davey
|
8180764cca
|
Added jsdoc override for origin
|
2019-02-25 17:07:09 +00:00 |
|
Richard Davey
|
e7b1d086e7
|
Moving all of the typedefs to properly namespaced scopes, rather than globals
\o/ ~ "Someone, save me!"
|
2019-02-13 12:35:12 +00:00 |
|
Richard Davey
|
eb9ed3463f
|
Lots of namespace and jsdoc fixes
|
2019-02-01 18:02:58 +00:00 |
|
Richard Davey
|
348306cafb
|
Lots more jsdoc fixes and new documentation
|
2019-01-31 14:47:50 +00:00 |
|
Richard Davey
|
ea9678cc85
|
Removed TextStyle auto-quotes and added docs instead.
|
2019-01-22 14:02:25 +00:00 |
|
Richard Davey
|
aa341854c7
|
Happy New Year
|
2019-01-15 16:20:22 +00:00 |
|
Richard Davey
|
d41a01ac39
|
Updated docs
|
2018-10-18 13:27:56 +01:00 |
|
Richard Davey
|
9dc53d1e5a
|
The WebGLRenderer method canvasToTexture has a new optional argument noRepeat which will stop it from using gl.REPEAT entirely. This is now used by the Text object to avoid it potentially switching between a REPEAT and CLAMP texture, causing texture black-outs
|
2018-10-12 15:08:53 +01:00 |
|
Richard Davey
|
4b1c762296
|
Updated @memberOf to @memberof
|
2018-10-10 10:49:13 +01:00 |
|
Richard Davey
|
fcaa2bfc4f
|
Completing Game Object jsdocs
|
2018-09-15 10:31:10 +01:00 |
|
Richard Davey
|
7722207dbd
|
Remove texture deletion.
|
2018-09-13 13:23:24 +01:00 |
|
Richard Davey
|
0a152949cb
|
Added setLineSpacing method and docs.
|
2018-09-12 16:29:38 +01:00 |
|
Richard Davey
|
dedc939fdd
|
initPipeline now defaults to the Texture Tint Pipeline if nothing else is specified.
|
2018-09-05 11:19:02 +01:00 |
|
Richard Davey
|
27c3cc30ac
|
Previously, changing a Text object by setting its text property directly wouldn't change the text being rendered as using setText was the expected way to change what was being displayed. Internally the text property has been renamed to _text and flagged as private, and a new getter / setter for text has been added, which hands over to the setText method, meaning you can now use both ways of setting the text. Fix #3919
|
2018-08-20 17:41:05 +01:00 |
|
Richard Davey
|
e91d95e107
|
Text updated to use proper texture frame and now supports crop
|
2018-08-03 19:07:12 +01:00 |
|
Richard Davey
|
14ba51d928
|
Added Text.setResolution methods.
|
2018-07-18 14:45:10 +01:00 |
|
Richard Davey
|
94540e112e
|
Text supports high dpi resolution for its internal canvas
|
2018-07-17 22:44:12 +01: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 |
|
Richard Davey
|
0893c158d1
|
Added jsdocs
|
2018-05-22 15:55:02 +01:00 |
|
Richard Davey
|
3323b785b2
|
space-infix fix
|
2018-04-30 13:03:44 +01: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 |
|