Page 1 of 1

Nametags

PostPosted: Wed Dec 02, 2015 21:29
by Kpenguin
Hi,
I'm looking into the code for nametags and I'm looking for a way to make the nametag invisible when sneaking. The nametag shadow is proving to be a problem and I'm wondering if anyone can offer advice for working with the nametag shadow. I need to know how to address it in code, for example, nametag_shadow_attributes.

Thank you!
Kpenguin

Re: Nametags

PostPosted: Wed Dec 02, 2015 21:40
by BlockMen
You can't with current minetest versions. The nametag uses the same font as the rest of the GUI, so whether font shadows are shown or not depends on client settings.

Re: Nametags

PostPosted: Wed Dec 02, 2015 22:30
by kaadmy
The shadow is part of Irrlicht AFAIK, so it's global throughout the whole UI.

Re: Nametags

PostPosted: Mon Jan 16, 2017 09:40
by texmex
Also looking for this. Hiding the name tag seems to have been made possible in the invisible mod. Do you still have your code?

Re: Nametags

PostPosted: Mon Jan 16, 2017 15:28
by taikedz
Question is, what have you already tried, and what were your results?

Invisible mod is short in code, this might be what you are looking for

Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
         user:set_nametag_attributes({color = {a = 0, r = 255, g = 255, b = 255}})

Re: Nametags

PostPosted: Mon Jan 16, 2017 20:45
by texmex
That looks easy, thanks. I can't even program but perhaps i can slap something together. ¯\_(ツ)_/¯