Richard Davey
|
fc6e7ef759
|
Removed un-used properties
|
2020-07-31 15:46:05 +01:00 |
|
Richard Davey
|
4baa0522b9
|
Bumping to 3.50
|
2020-07-31 13:41:29 +01:00 |
|
Richard Davey
|
d16d8dc9ce
|
BitmapTextWebGLRenderer has been rewritten from scratch to make use of the new pre-cached WebGL uv texture and character location data generated by GetBitmapTextSize . This has reduced the number of calculations made in the function dramatically, as it no longer has work out glyph advancing or offsets during render, but only when the text content updates.
|
2020-07-31 13:39:49 +01:00 |
|
Richard Davey
|
49682e744d
|
Update BitmapText.js
|
2020-07-31 13:34:50 +01:00 |
|
Richard Davey
|
72654e04d3
|
Fixed bounds sizes
|
2020-07-31 13:34:28 +01:00 |
|
Richard Davey
|
c166976fcc
|
Update BitmapTextCharacter.js
|
2020-07-31 12:06:57 +01:00 |
|
Richard Davey
|
a4577e2135
|
The GetBitmapTextSize function has a new boolean parameter updateOrigin , which will adjust the origin of the parent BitmapText if set, based on the new bounds calculations.
|
2020-07-31 12:06:45 +01:00 |
|
Richard Davey
|
a682b83b7c
|
BitmapText.getCharacterAt is a new method that will return the character data from the BitmapText at the given x and y corodinates. The character data includes the code, position, dimensions and glyph information.
|
2020-07-31 11:36:48 +01:00 |
|
Richard Davey
|
e195aac919
|
ParseXMLBitmapFont will now calculate the WebGL uv data for the glyphs during parsing. This avoids it having to be done during rendering, saving CPU cycles on an operation that never changes.
|
2020-07-31 11:32:37 +01:00 |
|
Richard Davey
|
214b383fcd
|
Use correct scale and added start of getCharacterAt method
|
2020-07-30 23:59:06 +01:00 |
|
Richard Davey
|
a39bcfe69a
|
Always return chars
|
2020-07-30 22:38:06 +01:00 |
|
Richard Davey
|
a678f723c6
|
Always calculate includeChars
|
2020-07-30 22:37:34 +01:00 |
|
Richard Davey
|
1579069c50
|
Pixel accurate character data
|
2020-07-30 18:24:04 +01:00 |
|
Richard Davey
|
eef67b6c11
|
Update BitmapTextWebGLRenderer.js
|
2020-07-30 18:23:50 +01:00 |
|
Richard Davey
|
77feb773fd
|
Fixed descriptions
|
2020-07-30 18:23:45 +01:00 |
|
Richard Davey
|
b108cd03f0
|
Fix call to GetBitmapTextSize
|
2020-07-30 15:43:43 +01:00 |
|
Richard Davey
|
408a545aac
|
BitmapTextWord , BitmapTextCharacter and BitmapTextLines are three new type defs that are now part of the BitmapTextSize config object, as returned by getTextBounds . This improves the TypeScript defs and JS Docs for this object.
|
2020-07-30 15:24:49 +01:00 |
|
Richard Davey
|
286be7df49
|
The GetBitmapTextSize and BitmapText.getTextBounds functions have a new boolean parameter includeChars . When set to true it will include a characters array in the returned bounds object that contains the scaled position coordinates of each character in the BitmapText, which you could use for tasks such as determining which character of the object was clicked.
|
2020-07-30 15:14:25 +01:00 |
|
Richard Davey
|
cc3d3f7da3
|
The GetBitmapTextSize function used Math.round on the values, if the round parameter was true , which didn't create integers. It now uses Math.ceil instead to give integer results.
|
2020-07-30 14:47:31 +01:00 |
|
Richard Davey
|
841389628e
|
The BitmapText.getTextBounds method was being called every frame, even if the bounds didn't change, potentially costing a lot of CPU depending on the text length and quantity of them. It now only updates the bounds if they change.
|
2020-07-30 14:46:32 +01:00 |
|
Richard Davey
|
6c9a5f62a6
|
Uses setGameObject to support Light2D
|
2020-07-16 15:15:48 +01:00 |
|
Richard Davey
|
a21641e19b
|
The Dynamic Bitmap Text Game Object WebGL Renderer function has been updated to support multi-texture units.
|
2020-07-15 16:54:04 +01:00 |
|
Richard Davey
|
50f10b3d4b
|
The Bitmap Text Game Object WebGL Renderer function has been updated to support multi-texture units.
|
2020-07-15 16:53:48 +01:00 |
|
Richard Davey
|
dc13060042
|
Fixed namespace
|
2020-07-14 09:45:37 +01:00 |
|
Richard Davey
|
40929a57e3
|
Calling getTextBounds on a BitmapText object would return the incorrect values if the origin had been changed, but the text itself had not, as it was using out of date dimensions. Changing the origin now automatically triggers BitmapText to be dirty, forcing the bounds to be refreshed. Fix #5121
|
2020-07-13 14:06:06 +01:00 |
|
Jason Kwok
|
401cb81590
|
Fixed this return type for Phaser.GameObjects.DynamicBitmapText
|
2020-01-26 20:16:18 +08:00 |
|
Richard Davey
|
ff65e69cd1
|
Changed copyright date to 2020
|
2020-01-15 12:07:09 +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 |
|
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
|
c60530eedd
|
Removed commented-out code
|
2019-10-11 18:35:27 +01:00 |
|
Richard Davey
|
be02c80be9
|
Origin and canvas renderer work again now. Fix #4108
|
2019-10-01 17:43:47 +01: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
|
a51a81791f
|
Bitmap Text Types
|
2019-05-09 11:54:43 +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
|
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 |
|
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
|
4e817497d4
|
Namespace fixes
|
2019-02-12 12:48:41 +00:00 |
|
J.C
|
cb0f3e079c
|
add doc for the static method. BTW: have to admit that Phaser is absolutely well considered, even for such case that user probably make all BMFont atlas combined into one.
|
2019-01-25 11:02:38 +08:00 |
|
Richard Davey
|
aa341854c7
|
Happy New Year
|
2019-01-15 16:20:22 +00:00 |
|
Richard Davey
|
5c6d1cbe17
|
Merge pull request #4214 from matosummer/master
Add link to bitmaptext
|
2018-12-12 11:27:00 +00:00 |
|