aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElias Fleckenstein <eliasfleckenstein@web.de>2021-03-05 11:52:30 +0100
committerElias Fleckenstein <eliasfleckenstein@web.de>2021-03-09 10:48:56 +0100
commitbb12123ec8e3a39f391103a878f1bfa9ccebb597 (patch)
treeefa7efa7d6694e37577a16663bf4f10e1a07cb72
parent0ea4d7d0c45575759f5e149c4bf4a458908d1107 (diff)
downloadminetest-hud_font_style.tar.xz
Add documentationhud_font_style
-rw-r--r--doc/client_lua_api.txt4
-rw-r--r--doc/lua_api.txt6
2 files changed, 10 insertions, 0 deletions
diff --git a/doc/client_lua_api.txt b/doc/client_lua_api.txt
index c2c552440..d8a9cf1bb 100644
--- a/doc/client_lua_api.txt
+++ b/doc/client_lua_api.txt
@@ -1309,6 +1309,10 @@ It can be created via `Raycast(pos1, pos2, objects, liquids)` or
-- ^ See "HUD Element Types"
size = { x=100, y=100 }, -- default {x=0, y=0}
-- ^ Size of element in pixels
+ bold = true, -- default false
+ -- ^ Use bold font (works for hud_elem_type = "text")
+ italic = true, -- default false
+ -- ^ Use italic font (works for hud_elem_type = "text", compatible with bold = true)
}
```
diff --git a/doc/lua_api.txt b/doc/lua_api.txt
index c09578a15..46055ef0f 100644
--- a/doc/lua_api.txt
+++ b/doc/lua_api.txt
@@ -8234,6 +8234,12 @@ Used by `Player:hud_add`. Returned by `Player:hud_get`.
z_index = 0,
-- Z index : lower z-index HUDs are displayed behind higher z-index HUDs
+
+ bold = false,
+ -- Use bold font (works for hud_elem_type = "text")
+
+ italic = false,
+ -- Use italic font (works for hud_elem_type = "text", compatible with bold = true)
}
Particle definition