diff options
author | kwolekr <kwolekr@minetest.net> | 2015-08-13 03:16:50 -0400 |
---|---|---|
committer | kwolekr <kwolekr@minetest.net> | 2015-08-13 15:05:48 -0400 |
commit | be9024a397506dff1151b16e5f7a91e393b00d7e (patch) | |
tree | f68541add442e3f354e58778b5c41eb69c53f3fd /doc | |
parent | a670ecfde4eccc0184089bac551b2c480ff35cda (diff) | |
download | minetest-be9024a397506dff1151b16e5f7a91e393b00d7e.tar.gz minetest-be9024a397506dff1151b16e5f7a91e393b00d7e.tar.bz2 minetest-be9024a397506dff1151b16e5f7a91e393b00d7e.zip |
minimap: Add ability to disable from server
Diffstat (limited to 'doc')
-rw-r--r-- | doc/lua_api.txt | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/doc/lua_api.txt b/doc/lua_api.txt index 9f435fd44..f771a360d 100644 --- a/doc/lua_api.txt +++ b/doc/lua_api.txt @@ -2519,11 +2519,13 @@ This is basically a reference to a C++ `ServerActiveObject` * element `stat` values: `position`, `name`, `scale`, `text`, `number`, `item`, `dir` * `hud_get(id)`: gets the HUD element definition structure of the specified ID * `hud_set_flags(flags)`: sets specified HUD flags to `true`/`false` - * `flags`: (is visible) `hotbar`, `healthbar`, `crosshair`, `wielditem` + * `flags`: (is visible) `hotbar`, `healthbar`, `crosshair`, `wielditem`, `minimap` * pass a table containing a `true`/`false` value of each flag to be set or unset * if a flag equals `nil`, the flag is not modified + * note that setting `minimap` modifies the client's permission to view the minimap - + * the client may locally elect to not view the minimap * `hud_get_flags()`: returns a table containing status of hud flags - * returns `{ hotbar=true, healthbar=true, crosshair=true, wielditem=true, breathbar=true }` + * returns `{ hotbar=true, healthbar=true, crosshair=true, wielditem=true, breathbar=true, minimap=true }` * `hud_set_hotbar_itemcount(count)`: sets number of items in builtin hotbar * `count`: number of items, must be between `1` and `23` * `hud_get_hotbar_itemcount`: returns number of visible items |