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
|
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
|
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
|
eef67b6c11
|
Update BitmapTextWebGLRenderer.js
|
2020-07-30 18:23:50 +01:00 |
|
Richard Davey
|
b108cd03f0
|
Fix call to GetBitmapTextSize
|
2020-07-30 15:43:43 +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
|
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
|
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 |
|
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 |
|
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
|
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
|
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 |
|
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 |
|
Richard Davey
|
4b27b37a0c
|
Added texture and unit arguments to batchQuad and batchTri , fixing the y2k bug.
|
2018-12-12 11:08:52 +00:00 |
|
Mato
|
87be97aaf0
|
Add link to bitmaptext
|
2018-12-05 16:29:18 +07:00 |
|
Richard Davey
|
6f8759c186
|
Whenever Camera.roundPixels was enabled it would use a bitwise operation to truncate the float (x |= 0 ) - this has been replaced across all files that used it, with a call to Math.round instead. This gives far better results when zooming cameras both in and out of a Scene, stopping thin gaps appearing between closely packed Game Objects.
|
2018-11-30 10:27:25 +00:00 |
|
Richard Davey
|
4b1c762296
|
Updated @memberOf to @memberof
|
2018-10-10 10:49:13 +01:00 |
|
Richard Davey
|
a9063604dc
|
Replace @readOnly with @readonly
|
2018-10-09 13:40:00 +01:00 |
|
Richard Davey
|
fcaa2bfc4f
|
Completing Game Object jsdocs
|
2018-09-15 10:31:10 +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 |
|
TadejZupancic
|
7992924aae
|
Wrong bounds/displayTextOrigin on BitmapText text change
updateDisplayOrigin needs current width and height, which are not recalculated if the _dirty is not set to true.
|
2018-08-14 12:15:59 +02:00 |
|
Richard Davey
|
84ef115c67
|
Remove un-used code
|
2018-08-08 15:01:41 +01:00 |
|
Richard Davey
|
708a857a26
|
SetTransform is a new Canvas Renderer function that consolidates the process of preparing a Game Object for rendering, without actually rendering it. This is used internally by the Graphics and Bitmap Text classes.
|
2018-08-03 19:02:43 +01:00 |
|
Richard Davey
|
9f44896a3f
|
The Blend Mode is now set directly in all Canvas Renderers without comparing it to what's stored in the Canvas Renderer. This fixes problems where the blend mode would be lost between two different Game Objects because they restored the context, but didn't update the renderer flag. Game Objects in Canvas can now mix and match blend modes across the display list.
|
2018-08-03 01:29:18 +01:00 |
|
Richard Davey
|
4481795d32
|
Swapped to using getX / getY
|
2018-07-27 00:53:00 +01:00 |
|
Richard Davey
|
8873bdcbf6
|
Fixed pipeline method call
|
2018-07-26 23:50:54 +01:00 |
|
Richard Davey
|
106e32a4f5
|
Removed un-used imports
|
2018-07-19 13:26:11 +01:00 |
|
Richard Davey
|
ec5bd1912e
|
GameObject.willRender now takes a Camera as its only argument and uses it within the check. This has allowed me to remove 23 duplicate checks spread across the various Game Objects, all of which did the same thing, saving both KB and CPU time as the flags were being checked twice in most cases.
|
2018-07-19 13:19:02 +01:00 |
|
Richard Davey
|
51f94cd444
|
Merge branch 'master' of https://github.com/photonstorm/phaser
|
2018-07-11 16:25:26 +01:00 |
|
Richard Davey
|
5ba80defb7
|
Pass GO to setPipeline
|
2018-07-11 16:23:44 +01:00 |
|
Chris Andrew
|
0858797599
|
Minor documentation fix for BitmapText.getTextBounds().
|
2018-07-11 14:50:23 +01:00 |
|
Richard Davey
|
434c8d1413
|
Fixed issue with sprite matrix and camera scaling
|
2018-07-10 13:59:49 +01:00 |
|