summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorTeTpaAka <TeTpaAka@users.noreply.github.com>2015-05-14 15:54:54 +0200
committerest31 <MTest31@outlook.com>2015-05-15 11:03:27 +0200
commit86a963caca9604ad57904e9acd9bef7c46ca47d8 (patch)
treeebe637727aeb7479c3cd327fba5dbc7dce0c9b5c /doc
parent99cf53c9087671d0a2130d2272b9a4f61d680517 (diff)
downloadminetest-86a963caca9604ad57904e9acd9bef7c46ca47d8.tar.gz
minetest-86a963caca9604ad57904e9acd9bef7c46ca47d8.tar.bz2
minetest-86a963caca9604ad57904e9acd9bef7c46ca47d8.zip
Add get and set functions for the nametag color
Diffstat (limited to 'doc')
-rw-r--r--doc/lua_api.txt6
1 files changed, 6 insertions, 0 deletions
diff --git a/doc/lua_api.txt b/doc/lua_api.txt
index 5a1d49d03..4c0baa5bc 100644
--- a/doc/lua_api.txt
+++ b/doc/lua_api.txt
@@ -2482,6 +2482,12 @@ 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 }
### `InvRef`
An `InvRef` is a reference to an inventory.