diff options
author | TeTpaAka <TeTpaAka@users.noreply.github.com> | 2015-05-15 21:46:56 +0200 |
---|---|---|
committer | kwolekr <kwolekr@minetest.net> | 2015-05-15 16:21:01 -0400 |
commit | 18c2f16c138f4b40b4705507b46d24e1518e4705 (patch) | |
tree | 2407edb6a3e367ae4875459a4a33e5608488a65a /doc | |
parent | 5d1d7c17ea234a01af3a16f31bc0e363ffd150ba (diff) | |
download | minetest-18c2f16c138f4b40b4705507b46d24e1518e4705.tar.gz minetest-18c2f16c138f4b40b4705507b46d24e1518e4705.tar.bz2 minetest-18c2f16c138f4b40b4705507b46d24e1518e4705.zip |
Generalize core.get/set_nametag_color into core.get/set_nametag_attributes
Diffstat (limited to 'doc')
-rw-r--r-- | doc/lua_api.txt | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/doc/lua_api.txt b/doc/lua_api.txt index 8ade48b7b..0cc83bf69 100644 --- a/doc/lua_api.txt +++ b/doc/lua_api.txt @@ -2491,12 +2491,17 @@ This is basically a reference to a C++ `ServerActiveObject` * `set_eye_offset({x=0,y=0,z=0},{x=0,y=0,z=0})`: defines offset value for camera per player * in first person view * in third person view (max. values `{x=-10/10,y=-10,15,z=-5/5}`) -* `get_nametag_color()` - * returns the color of the nametag as table - * { a = 0...255, r = 0...255, g = 0...255, b = 0...255 } -* `set_nametag_color(color)` - * sets the color of the nametag - * `color`: { a = 0...255, r = 0...255, g = 0...255, b = 0...255 } +* `get_nametag_attributes()` + * returns a table with the attributes of the nametag of the player + * { + color = { a = 0...255, r = 0...255, g = 0...255, b = 0...255 } + } +* `set_nametag_attributes(attributes)` + * sets the attributes of the nametag of the player + * `attributes`: + { + color = { a = 0...255, r = 0...255, g = 0...255, b = 0...255 } + } ### `InvRef` An `InvRef` is a reference to an inventory. |