Richard Davey
a4d8e87095
Fixed lint errors
2022-05-10 17:06:53 +01:00
Richard Davey
919fa39faa
Merge pull request #6067 from TJ09/commonjs-import-change
...
Don't reassign the return values from require()
2022-05-09 16:49:58 +01:00
T.J. L
ff4ef2872b
Don't overwrite the return values from require()
2022-04-02 01:49:19 -07:00
T.J. L
1551d1b270
Fix kerning for BitmapText on Canvas renderer
2022-04-02 01:33:04 -07:00
Richard Davey
59fbcc5ca3
Updated copyright year
2022-02-28 14:29:51 +00:00
arbassic
38f23baaf7
Fix kerning for BitmapText
...
There was a bug in the GetBitmapTextSize function, causing that kerning was not applied at all to BitmapTexts.
The fix sets 'x' of the character with calculated 'x' local variable (instead of general xAdvance.
Also xAdvance is modified with kerningOffset to provide consistency between proceeding characters
2022-02-15 19:03:13 +01:00
Richard Davey
93db763f69
Merge pull request #5340 from 16patsle/Fix_object_types
...
Add more specific 'object' types, including GO Configs
2021-09-23 15:30:43 +01:00
Richard Davey
7411c805b8
Version fix
2021-03-24 16:30:33 +00:00
Vladislav Forsh
ab202efea7
Handle case when fromAtlas could be undefined
2021-03-17 10:26:47 +03:00
Vladislav Forsh
22edb0d95f
Update fromAtlas property on font change
2021-03-16 19:44:26 +03:00
Vladislav Forsh
2418b7f484
Fix #5545
2021-03-16 18:04:38 +03:00
Richard Davey
9116eddf99
Some Bitmap Text fonts were not rendering under Canvas due to the way in which the texture offset was calculated. It now uses the __BASE
frame to get the texture offset, rather than the first frame in the set. Fix #5462 #5501
2021-01-14 11:06:04 +00:00
Richard Davey
1c8662dc1f
Call addToRenderList
2021-01-07 14:52:08 +00:00
Richard Davey
00d8b6a009
Invoke camera.addToRenderList
method
2021-01-07 12:31:31 +00:00
Richard Davey
f5376b20a4
BitmapText Drop Shadow working. Fix #5446
2020-12-14 09:34:32 +00:00
Patrick Sletvold
f1836738a0
Merge remote-tracking branch 'origin/master' into Fix_object_types
2020-12-10 11:23:35 +01:00
Richard Davey
0ee1338765
Better post pipeline call (less code)
2020-11-26 09:51:40 +00:00
Richard Davey
d2e2e86ef1
Updated accessor
2020-11-23 16:22:11 +00:00
Richard Davey
ec5da6930c
Added post pipeline support to all Game Objects
2020-11-23 16:17:13 +00:00
Richard Davey
02c34cd64e
Replace integer with number
2020-11-23 10:22:13 +00:00
Richard Davey
eee3feb667
Pass Game Object to batchQuad
2020-11-09 13:19:31 +00:00
Richard Davey
d3c70002ea
Removed use of _tempMatrix
from all renderers
2020-11-06 09:44:29 +00:00
Richard Davey
4ba2b0eb7b
All swapped to using renderer matrices to make pipelines smaller
2020-10-28 16:52:59 +00:00
Patrick Sletvold
79114a00e5
Add return type for ParseRetroFont
2020-09-25 18:26:44 +02:00
Richard Davey
d5de353890
You can now use setMaxWidth
on DynamicBitmapText
, which wasn't previously possible. Fix #4997
2020-09-22 16:52:36 +01:00
Richard Davey
6bf36083a8
Added setMaxWidth
docs. Fix #4997
2020-09-22 16:48:38 +01:00
Richard Davey
5a6dec237c
Fixed RetroFont Parser. Fix #5310
2020-09-22 16:47:05 +01:00
Richard Davey
4fd46f4d1f
Fixed DynamicBitmapText WebGL Renderer. Fix #5303
2020-09-22 16:38:17 +01:00
Richard Davey
6a966e3f3b
Removed interpolationPercentage
parameter from all render methods, as it has never been used.
2020-09-14 15:33:58 +01:00
Richard Davey
8d25510b61
GameObjects.GetCalcMatrix
is a new function that is used to calculate the transformed Game Object matrix, based on the given Game Object, Camera and Parent. This function is now used by the following Game Objects: BitmapText
(Static and Dynamic), Graphics
, Mesh
, Rope
, Shader
, Arc
, Curve
, Ellipse
, Grid
, IsoBox
, IsoTriangle
, Line
, Polygon
, Rectangle
, Star
and Triangle
. This dramatically reduces the amount of duplicate code across the API.
2020-09-14 15:01:40 +01:00
Richard Davey
e5ce83aebd
New direct tint value
2020-09-14 11:06:16 +01:00
Richard Davey
4ade25fc79
No longer read private values for tint
...
The `Multi Pipeline`, `Bitmap Text`, `Render Texture`, `Text`, `TileSprite` and `Camera` now all read the tint values from the public properties instead of the private `_tintTL` etc ones. They also now set the `tintEffect` value directly from the `tintFill` property, removing another conditional check.
2020-09-14 11:05:09 +01:00
Richard Davey
d198818d80
Game Objects now call the new Pipeline Manager methods directly
2020-09-09 13:05:18 +01:00
Richard Davey
4ea080e8a8
JSDoc fix
2020-09-09 13:05:17 +01:00
Richard Davey
7e572c3577
Improves JSDocs
2020-08-25 09:54:09 +01:00
Richard Davey
e77639561b
Use charIndex, not i
2020-08-06 17:06:10 +01:00
Richard Davey
6aaf54e8a7
Don't add frame if empty
2020-08-05 14:15:01 +01:00
Richard Davey
96a64eae4e
ParseXMLBitmapFont
has a new optional parameter texture
. If defined, this Texture is populated with Frame data, one frame per glyph. This happens automatically when loading Bitmap Text data in Phaser.
2020-08-05 12:46:28 +01:00
Richard Davey
a2c9c3cef6
Fix char right adjustment
2020-08-05 11:48:25 +01:00
Richard Davey
00e5c5fe0f
Update BitmapTextSize.js
2020-08-04 11:25:10 +01:00
Richard Davey
ee01d36918
Update BitmapTextCharacter.js
2020-08-04 11:25:07 +01:00
Richard Davey
1db3ba72f8
Cache shadow values
2020-08-04 11:25:03 +01:00
Richard Davey
50dcc624df
Get Character using char top, right and bottom
2020-08-04 11:24:56 +01:00
Richard Davey
1ae0cfc619
Include char top, right and bottom values
2020-08-04 11:24:43 +01:00
Richard Davey
47a62cd30c
If you apply setSize
to the Dynamic BitmapText the scissor is now calculated based on the parent transforms, not just the local ones, meaning you can crop Bitmap Text objects that exist within Containers. Fix #4653
2020-08-03 11:33:41 +01:00
Richard Davey
2f574070d5
Setting the color
value in the DynamicBitmapText.setDisplayCallback
would inverse the red and blue channels if the color was not properly encoded for WebGL. It is now encoded automatically, meaning you can pass normal hex values as the colors in the display callback. Fix #5225
2020-08-03 10:53:27 +01:00
Richard Davey
ec845ce015
Use GetColorFromValue
2020-08-03 10:49:05 +01:00
Richard Davey
42d6456993
Encode dropshadow color
2020-08-01 11:24:26 +01:00
Richard Davey
959645d1f0
Always render drop shadow behind text
2020-08-01 11:24:15 +01:00
Richard Davey
22e8d22e3f
BitmapText.setWordTint
is a new method that allows you to set a tint color (either additive, or fill) on all matching words within a static Bitmap Text. You can specify the word by string, or numeric offset, and the number of replacements to tint.
2020-07-31 18:36:27 +01:00