1
0
mirror of https://github.com/minetest/minetest.git synced 2025-06-30 15:10:23 +02:00

Add get and set functions for the nametag color

This commit is contained in:
TeTpaAka
2015-05-14 15:54:54 +02:00
committed by est31
parent 99cf53c908
commit 86a963caca
9 changed files with 104 additions and 2 deletions

View File

@ -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.