WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   Lua/XML Help (https://www.wowinterface.com/forums/forumdisplay.php?f=16)
-   -   Hide unreadable names (https://www.wowinterface.com/forums/showthread.php?t=57856)

Yukka 02-29-20 01:43 PM

Hide unreadable names
 
Hello world :)

I want to talk about something that annoys me when I play. When people are too far from me (30 meters) their names above their heads become little and unreadable. So I would like to create an addon that hide people names that are too far from me to be readable. But I need to keep showed the names of people that are close enough to be readable. I would be thankful if one of you can help me with some code.

Here is a screenshot that shows the issue:

https://drive.google.com/file/d/1yf5...ew?usp=sharing
As you can see, the names of the players in the inn are undreadable because they are too far. But the closest ones are perfectly readable.

Xrystal 02-29-20 06:20 PM

I doubt there will be a way to turn them off on an individual basis. It's possible that nameplates connected to a unit ( target, player, raid1, party1, mouseover) will allow some distance tests but whether it will then allow you to turn off a single nameplate because it is too far is doubtful.

There is a cvar that allows you to adjust the display of ALL nameplates, so you may want to see if there are options linked to nameplates that will help your display issue.


That aside, hopefully someone will have more definitive knowledge on what is and isn't possible nowadays.

Yukka 02-29-20 06:33 PM

I just found this addon that do what I need: https://www.wowinterface.com/downloa...lateRange.html you were right there is cvar things.

Thanks and sorry for this useless thread ^^

JDoubleU00 02-29-20 06:38 PM

Quote:

Originally Posted by Yukka (Post 335260)
I just found this addon that do what I need: https://www.wowinterface.com/downloa...lateRange.html you were right there is cvar things.

Thanks and sorry for this useless thread ^^

This is not a useless thread. I just learned something myself. Anytime someone makes a post, is an opportunity to learn something from them.

Yukka 02-29-20 07:10 PM

That's some wise words :)

Now I try to make a macro (or an addon) that hide / show ALL the nameplates, can I continue here?

I tryed this in a macro but it does not work:

Lua Code:
  1. /run SetCVar("nameplateHide", 0)(n==1 and "Enabled" or "Disabled")

Do you know how to make it work?

Ketho 02-29-20 08:05 PM

  1. Don't use that addon, it's rendered defunct
  2. Don't just change cvar names in the hope they exist
  3. Use KuiNameplates


All times are GMT -6. The time now is 12:17 AM.

vBulletin © 2020, Jelsoft Enterprises Ltd
© 2004 - 2020 MMOUI