Nametags

User avatar
Kpenguin
Member
 
Posts: 212
Joined: Fri Jul 24, 2015 16:19
IRC: Kpenguin
In-game: Kpenguin

Nametags

by Kpenguin » Wed Dec 02, 2015 21:29

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
supertuxkart.net

"Profanity is one language all computer users know" - Murphy's 50th Law of Computers
Players will always find the hidden flaw in your master plan; If there's no hidden flaw, it's against the rules; If it isn't against the rules, one player will convince the others it is. - Murphy's 2nd Law of Gaming

All things are possible except skiing through a revolving door.
 

User avatar
BlockMen
Member
 
Posts: 768
Joined: Fri Mar 01, 2013 17:24
GitHub: BlockMen

Re: Nametags

by BlockMen » Wed Dec 02, 2015 21:40

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: 627
Joined: Thu Aug 27, 2015 23:07
GitHub: kaadmy
IRC: KaadmY
In-game: KaadmY kaadmy NeD

Re: Nametags

by kaadmy » Wed Dec 02, 2015 22:30

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

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

Re: Nametags

by texmex » Mon Jan 16, 2017 09:40

Also looking for this. Hiding the name tag seems to have been made possible in the invisible mod. Do you still have your code?
I spend all my days going down to the mines. Under the ground where the sun never shines. Breaking my back I put heat in your house. I’ve got the roar of a digtron, the breath of a mouse.
 

User avatar
taikedz
Member
 
Posts: 587
Joined: Sun May 15, 2016 11:11
GitHub: taikedz
IRC: DuCake
In-game: DuCake

Re: Nametags

by taikedz » Mon Jan 16, 2017 15:28

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}})
 

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

Re: Nametags

by texmex » Mon Jan 16, 2017 20:45

That looks easy, thanks. I can't even program but perhaps i can slap something together. ¯\_(ツ)_/¯
I spend all my days going down to the mines. Under the ground where the sun never shines. Breaking my back I put heat in your house. I’ve got the roar of a digtron, the breath of a mouse.
 


Return to Minetest General

Who is online

Users browsing this forum: No registered users and 15 guests

cron