1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-08-01 17:38:41 +00:00

Add ability to scale HUD text (#9814)

Add 'size' property to HUD text elements that is used for relative font size calculations.
This commit is contained in:
LoneWolfHT 2020-05-19 10:10:39 -07:00 committed by GitHub
parent 0fc51db772
commit 7d3972a504
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 2 deletions

View file

@ -1356,6 +1356,8 @@ Displays text on the HUD.
text. Specify `0xFFFFFF` for white text, `0xFF0000` for red, and so on.
* `alignment`: The alignment of the text.
* `offset`: offset in pixels from position.
* `size`: size of the text.
The player-set font size is multiplied by size.x (y value isn't used).
### `statbar`