Nametags

Post Reply
User avatar
Kpenguin
Member
Posts: 217
Joined: Fri Jul 24, 2015 16:19
IRC: Kpenguin
In-game: Kpenguin
Location: The Birthplace of Aviation

Nametags

by Kpenguin » Post

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
All things are possible except skiing through a revolving door.

User avatar
BlockMen
Developer
Posts: 768
Joined: Fri Mar 01, 2013 17:24
GitHub: BlockMen
Location: Germany

Re: Nametags

by BlockMen » Post

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.

User avatar
kaadmy
Member
Posts: 706
Joined: Thu Aug 27, 2015 23:07
GitHub: kaadmy
IRC: KaadmY
In-game: KaadmY kaadmy NeD

Re: Nametags

by kaadmy » Post

The shadow is part of Irrlicht AFAIK, so it's global throughout the whole UI.
Never paint white stripes on roads near Zebra crossings.

Pixture

User avatar
texmex
Member
Posts: 1753
Joined: Mon Jul 11, 2016 21:08
GitHub: tacotexmex
In-game: tacotexmex

Re: Nametags

by texmex » Post

Also looking for this. Hiding the name tag seems to have been made possible in the invisible mod. Do you still have your code?

User avatar
taikedz
Member
Posts: 698
Joined: Sun May 15, 2016 11:11
GitHub: taikedz
IRC: DuCake
In-game: DuCake
Location: Scotland, UK
Contact:

Re: Nametags

by taikedz » Post

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

Code: Select all

			user:set_nametag_attributes({color = {a = 0, r = 255, g = 255, b = 255}})

User avatar
texmex
Member
Posts: 1753
Joined: Mon Jul 11, 2016 21:08
GitHub: tacotexmex
In-game: tacotexmex

Re: Nametags

by texmex » Post

That looks easy, thanks. I can't even program but perhaps i can slap something together. ¯\_(ツ)_/¯

Post Reply

Who is online

Users browsing this forum: No registered users and 17 guests