From bb12123ec8e3a39f391103a878f1bfa9ccebb597 Mon Sep 17 00:00:00 2001 From: Elias Fleckenstein Date: Fri, 5 Mar 2021 11:52:30 +0100 Subject: Add documentation --- doc/client_lua_api.txt | 4 ++++ doc/lua_api.txt | 6 ++++++ 2 files changed, 10 insertions(+) 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 -- cgit v1.2.3