Richard Davey
|
e77639561b
|
Use charIndex, not i
|
2020-08-06 17:06:10 +01:00 |
|
Richard Davey
|
a2c9c3cef6
|
Fix char right adjustment
|
2020-08-05 11:48:25 +01:00 |
|
Richard Davey
|
1ae0cfc619
|
Include char top, right and bottom values
|
2020-08-04 11:24:43 +01:00 |
|
Richard Davey
|
7ce39b991c
|
Removed un-used properties
|
2020-07-31 16:17:36 +01:00 |
|
Richard Davey
|
72654e04d3
|
Fixed bounds sizes
|
2020-07-31 13:34:28 +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
|
214b383fcd
|
Use correct scale and added start of getCharacterAt method
|
2020-07-30 23:59: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
|
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
|
ff65e69cd1
|
Changed copyright date to 2020
|
2020-01-15 12:07:09 +00: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
|
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
|
5b1401153c
|
Working through BitmapText wrapping
|
2019-11-21 17:11:43 +00:00 |
|
Richard Davey
|
c91ed91ce3
|
License link update
|
2019-05-10 16:15:04 +01:00 |
|
Richard Davey
|
a51a81791f
|
Bitmap Text Types
|
2019-05-09 11:54:43 +01: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
|
aa341854c7
|
Happy New Year
|
2019-01-15 16:20:22 +00:00 |
|
Richard Davey
|
a16a7457bc
|
Now stores the line data in the bounds object.
|
2018-07-09 17:05:53 +01:00 |
|
Richard Davey
|
91a48c30c4
|
GetBitmapTextSize , which is used internally in the BitmapText Game Objects, will now produce different bounds from the previous version. Previously, the bounds were tight against the letters in the text. However, this meant the bounds were not properly aligned with the origin of the BitmapText, and consequently you'd get different bounds if the text consisted of different characters. The bounds are now calculated purely based on the glyph data and letter spacing values. This will give a far more consistent overall experience, but it does mean if you were using the bounds to position text previously, you'll need to revisit that code again. See issue #3799 for more details (and to discuss this further if you wish)
|
2018-07-09 16:06:36 +01:00 |
|
Richard Davey
|
9d52b6ac91
|
Fixed jsdoc errors
|
2018-06-12 17:05:39 +01:00 |
|
Chris Andrew
|
96d750bb60
|
Documented BitmapText and DynamicBitmapText.
Moved BitmapFontData typedefs to the BitmapText class file.
|
2018-06-06 16:32:58 +01:00 |
|
Chris Andrew
|
4aaf071ad3
|
Cleaned up some previous documentation, finished the RenderTexture GameObject documentation.
|
2018-06-06 14:23:39 +01:00 |
|
Chris Andrew
|
9e49b30d31
|
Fixed @return annotation spacing for GetBitmapTextSize.
|
2018-06-01 15:32:03 +01:00 |
|
Chris Andrew
|
085efa3190
|
Fixed a couple of BitmapTextSize descriptions.
|
2018-06-01 15:28:00 +01:00 |
|
Chris Andrew
|
8a7f381a28
|
Improved some GetBitmapTextSize descriptions.
|
2018-06-01 15:25:16 +01:00 |
|
Chris Andrew
|
efaff363aa
|
Documented XML Bitmap Font parsing and the GetBitmapTextSize function.
|
2018-06-01 15:21:10 +01:00 |
|
Travis O'Neal
|
2ec70cac48
|
Added a letterSpacing property to BitmapText
|
2018-04-02 09:42:24 -04:00 |
|
Travis O'Neal
|
d6265a59dd
|
Initial Commit
|
2018-03-30 13:46:44 -04:00 |
|