WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   Lua/XML Help (https://www.wowinterface.com/forums/forumdisplay.php?f=16)
-   -   Personal Resource Bar - SetAlpha? (https://www.wowinterface.com/forums/showthread.php?t=55790)

Encoresx 10-05-17 10:15 AM

Personal Resource Bar - SetAlpha?
 
Using /fstack, I've found that the Personal Resource Bar frame is called NamePlate1 ( or NamePlate1UnitFrame ).

I've tried to do both NamePlate1:SetAlpha(0) and NamePlate1UnitFrame:SetAlpha(0) and both just break my addon ( I have an addon that slightly modifies defalt UI bars and other stuff ), so obviously they don't work.

Reason why I need to hide default PRB ( even though I'm using it and have it on at all times ) is that I have custom health/power bars+cooldown icons that I made via WeakAuras that are anchored to personal resource bar, and to have them work, PRB needs to be on.

Easiest solution is doing /run SetCVar("NameplatePersonalShowAlways",1) ( that way my WA's are perma-up ), but there's always the issue of default blizz PRB being visible, so it either doesn't look "clean" or I have to make my stuff bigger than it needs to be.


So yeah, does anyone know how to set alpha to 0 on PRB?

Ammako 10-05-17 10:29 AM

SetCVar("nameplateSelfAlpha", 0)

Encoresx 10-05-17 11:18 AM

Thank you, that works but... with unintended effects.

Basically, the amount of alpha PRB has, that's the amount of alpha that my WeakAuras that are anchored to the PRB have..

Is there any way I can have my WA's move around/be tethered to PRB, while having the PRB be invisible?

Fizzlemizz 10-05-17 11:28 AM

Make sure your WAs aren't parented to the PRB, only anchored.

Encoresx 10-05-17 12:56 PM

Works! Ty!


All times are GMT -6. The time now is 10:58 PM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI