Commit graph

237 commits

Author SHA1 Message Date
Richard Davey
468bf7821d Updated copyright year 2023-01-02 17:36:27 +00:00
Richard Davey
9140bedd34 Added missing lineSpacing property 2022-12-09 16:01:02 +00:00
Richard Davey
a41247e2d9 Fixed incorrect jsdocs #6309 2022-12-09 15:59:02 +00:00
arbassic
1fd986fe58 fix JSDocs 2022-12-05 22:32:23 +01:00
arbassic
9fe15df66b fix JSDocs 2022-12-05 22:31:19 +01:00
arbassic
720cf7e296 better comment, include in toJSON 2022-12-05 22:14:55 +01:00
arbassic
aa0d9be861 Add lineSpacing property to BitmapText 2022-12-05 22:10:45 +01:00
Richard Davey
c0e592770f Update BitmapTextWord.js 2022-11-23 15:10:50 +00:00
Richard Davey
e0a8486dbc Update BitmapTextWord.js 2022-11-23 14:22:13 +00:00
Richard Davey
6943989f46 The BitmapText Game Object has two new read-only properties displayWidth and displayHeight. This allows the BitmapText to correctly use the GetBounds component.
The `BitmapText` Game Object now has the `GetBounds` component added to it, meaning you can now correctly get its dimensions as part of a Container. Fix #6237
2022-11-08 18:42:05 +00:00
Jaro Vanderheijden
e4b3e1ac15 Move BitmapTextCharacter typedef to proper location 2022-10-10 17:05:56 +02:00
Jaro Vanderheijden
b271accaf0 Add raw character index to bitmap text bounds 2022-08-20 12:29:47 +02:00
Richard Davey
810cfa587b Added link to SnowBMF 2022-08-17 16:41:40 +01:00
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