aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorkwolekr <kwolekr@minetest.net>2013-04-25 19:27:22 -0400
committerkwolekr <kwolekr@minetest.net>2013-04-25 19:37:36 -0400
commitd3f0ce62240b7598eded13153eacb410bf2420a1 (patch)
treeb62c13fdf4cae1119084fe466fdc01dbb6a14279 /doc
parentd83602d98ed9df6a8b9bc0d68a14b824777e2032 (diff)
downloadminetest-d3f0ce62240b7598eded13153eacb410bf2420a1.tar.gz
minetest-d3f0ce62240b7598eded13153eacb410bf2420a1.tar.bz2
minetest-d3f0ce62240b7598eded13153eacb410bf2420a1.zip
Generalize hud_builtin_enable into hud_set_flags
Diffstat (limited to 'doc')
-rw-r--r--doc/lua_api.txt7
1 files changed, 4 insertions, 3 deletions
diff --git a/doc/lua_api.txt b/doc/lua_api.txt
index 5b1942aef..07fb1ccd6 100644
--- a/doc/lua_api.txt
+++ b/doc/lua_api.txt
@@ -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: