diff options
author | LoneWolfHT <lonewolf04361@gmail.com> | 2020-05-19 10:10:39 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-19 19:10:39 +0200 |
commit | 7d3972a5049324f776ab008894c34569641f0073 (patch) | |
tree | d0590be6cb5c6dcc4da7002e189f93107a599b3a /doc | |
parent | 0fc51db7722f9aa1e0aa2dacade6041c932b0731 (diff) | |
download | minetest-7d3972a5049324f776ab008894c34569641f0073.tar.gz minetest-7d3972a5049324f776ab008894c34569641f0073.tar.bz2 minetest-7d3972a5049324f776ab008894c34569641f0073.zip |
Add ability to scale HUD text (#9814)
Add 'size' property to HUD text elements that is used for relative font size calculations.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/lua_api.txt | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/doc/lua_api.txt b/doc/lua_api.txt index 07758c237..9c7c42436 100644 --- a/doc/lua_api.txt +++ b/doc/lua_api.txt @@ -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` |