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

HUD: Text element color support (#14558)

This commit is contained in:
SmallJoker 2024-04-20 20:36:44 +02:00 committed by GitHub
parent d2a089ffd9
commit c8a41409d9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 39 additions and 12 deletions

View file

@ -1719,6 +1719,8 @@ Displays text on the HUD.
* `scale`: Defines the bounding rectangle of the text.
A value such as `{x=100, y=100}` should work.
* `text`: The text to be displayed in the HUD element.
Supports `minetest.translate` (always)
and `minetest.colorize` (since protocol version 44)
* `number`: An integer containing the RGB value of the color used to draw the
text. Specify `0xFFFFFF` for white text, `0xFF0000` for red, and so on.
* `alignment`: The alignment of the text.