mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-01 17:38:41 +00:00
Generalize hud_builtin_enable into hud_set_flags
This commit is contained in:
parent
d83602d98e
commit
d3f0ce6224
12 changed files with 85 additions and 107 deletions
|
@ -1434,9 +1434,10 @@ Player-only: (no-op for other objects)
|
|||
- hud_change(id, stat, value): change a value of a previously added HUD element
|
||||
^ element stat values: position, name, scale, text, number, item, dir
|
||||
- hud_get(id): gets the HUD element definition structure of the specified ID
|
||||
- hud_builtin_enable(what, flag): enable or disable built-in HUD items
|
||||
^ what: "hotbar", "healthbar", "crosshair", "wielditem"
|
||||
^ flag: true/false
|
||||
- hud_set_flags(flags): sets specified HUD flags to true/false
|
||||
^ flags: (is visible) hotbar, healthbar, crosshair, wielditem
|
||||
^ pass a table containing a true/false value of each flag to be set or unset
|
||||
^ if a flag is nil, the flag is not modified
|
||||
|
||||
InvRef: Reference to an inventory
|
||||
methods:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue