NeatPlates

NeatPlates

7M Downloads

nameplateOccludedAlphaMult option.

Revnn opened this issue ยท 6 comments

commented

Hi, would it be possible to add an option to change nameplateOccludedAlphaMult?
i tried to use this script command /run SetCVar("nameplateOccludedAlphaMult",0) that work on other nameplates but didnt work with neatplates.
What im trying to do is to set that to zero, so i dont see nameplates through walls.
Thanks.

Edit: Oh and there is a way to change the font of the nameplates? i only see the option to use blizzard's font, but not custom ones.
Edit2: I actually found a work around on the font, i removed all fonts from \NeatPlatesHub\shared leaving only the one i like and it worked. But would be amazing to be able to swap fonts inside the ui.

commented

As far as I know the client doesn't know if a unit is in line of sight or not, so in order to add support for this CVar it. I believe it would have to overwrite all of the Opacity/Alpha options that currently exists in the addon and rely entirely on the alpha set/used by blizzard nameplates.

If you have an example of another nameplate addon doing this, as you mention "other" nameplates, I can look into how they do it and see if I've missed something and if it can be impletemented into NeatPlates.

As for fonts, it's something that's been requested before and will most likely happen at some point. But because some themes can use a few different fonts for different aspects it is something that will take some time to separate into categories to allow for easy font swapping.

commented

Cool, please check it out because thats the only thing bothering me atm, after i checked out the other nameplates i've seen what a great QOL is, specially in some places like tol dagor.
Kuinameplates can do it, they even have a built in option on the ui.
Here's a pic of it:
https://i.imgur.com/WQ3PSRc.png
Its the line-of-sight alpha option, which simply does that command i posted above.
Plater also works with the command.
Even elvui's native nameplate work with the command.
For some reason neatplates doesnt accept the command at all, while all other addons do.
I've tried to look for occlusion or occluded in the luas but couldn't find anything.
Here you can see using neatplates that everyone appears through walls:
https://i.imgur.com/MoVs08i.jpg

And here i turned off neat and turned on kui with the line-of-sight alpha to zero like the picture above
https://i.imgur.com/OHBCTg6.jpg

Its so much more immersive and non invasive.

Edit: Messing up on plater i found out this script, that allows you to change stuff on the ui and i think it can shine a light on a way for you to add this to neatplates
https://wago.io/IKGMT_8jb
here's the script that appears ingame
https://pastebin.com/KzDsPftq

commented

I saw the latest update you added a Blizzard Name Visibility option, does it have anything to do with this request?

commented

Sadly no, I've yet to find the time to properly look into this.

commented

Hell yes, working perfectly, you are the best. Thanks \o/

commented

So I decided to look into this, as I had some time, and seems I was kind of thinking about this in the wrong way. Where this can be used as a multiplier, without interfering with the current alpha/opacity options, as opposed to my original thought which was that it would have to overwrite the alpha.

Which made it a rather simple to implement and I've pushed a new release with this change in it. Although I've only lightly tested it so please do update me if you see any weirdness with it.