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:
parent
0fc51db772
commit
7d3972a504
2 changed files with 9 additions and 2 deletions
|
@ -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`
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue