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?
|