diff options
author | Amaz <Amaz1@users.noreply.github.com> | 2016-12-02 10:41:08 +0000 |
---|---|---|
committer | est31 <est31@users.noreply.github.com> | 2016-12-02 11:41:08 +0100 |
commit | 8b63fbefba7f592299328d6d24b8c35a6c2417da (patch) | |
tree | 945954d7e27d6ae93653fa5050b169e7dc11907c | |
parent | 144da5f522bf057ac612ef1fa09478d0215f6d0d (diff) | |
download | minetest-8b63fbefba7f592299328d6d24b8c35a6c2417da.tar.gz minetest-8b63fbefba7f592299328d6d24b8c35a6c2417da.tar.bz2 minetest-8b63fbefba7f592299328d6d24b8c35a6c2417da.zip |
Fix incorrect docs about minetest.hud_replace_builtin (#4833)
Fixes https://github.com/minetest/minetest/issues/4832
-rw-r--r-- | doc/lua_api.txt | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/doc/lua_api.txt b/doc/lua_api.txt index 61e035fce..bab3e11f7 100644 --- a/doc/lua_api.txt +++ b/doc/lua_api.txt @@ -2576,6 +2576,10 @@ These functions return the leftover itemstack. ### Misc. * `minetest.get_connected_players()`: returns list of `ObjectRefs` +* `minetest.hud_replace_builtin(name, hud_definition)` + * Replaces definition of a builtin hud element + * `name`: `"breath"` or `"health"` + * `hud_definition`: definition to replace builtin definition * `minetest.hash_node_position({x=,y=,z=})`: returns an 48-bit integer * Gives a unique hash number for a node position (16+16+16=48bit) * `minetest.get_position_from_hash(hash)`: returns a position @@ -2901,10 +2905,6 @@ This is basically a reference to a C++ `ServerActiveObject` * `hud_set_hotbar_selected_image(texturename)` * sets image for selected item of hotbar * `hud_get_hotbar_selected_image`: returns texturename -* `hud_replace_builtin(name, hud_definition)` - * replace definition of a builtin hud element - * `name`: `"breath"` or `"health"` - * `hud_definition`: definition to replace builtin definition * `set_sky(bgcolor, type, {texture names})` * `bgcolor`: ColorSpec, defaults to white * Available types: |