Thread Tools Display Modes
10-05-17, 10:15 AM   #1
Encoresx
A Deviate Faerie Dragon
Join Date: Oct 2017
Posts: 11
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?
  Reply With Quote
10-05-17, 10:29 AM   #2
Ammako
A Frostmaul Preserver
AddOn Author - Click to view addons
Join Date: Jun 2016
Posts: 256
SetCVar("nameplateSelfAlpha", 0)
  Reply With Quote
10-05-17, 11:18 AM   #3
Encoresx
A Deviate Faerie Dragon
Join Date: Oct 2017
Posts: 11
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?
  Reply With Quote
10-05-17, 11:28 AM   #4
Fizzlemizz
I did that?
 
Fizzlemizz's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Dec 2011
Posts: 1,871
Make sure your WAs aren't parented to the PRB, only anchored.
__________________
Fizzlemizz
Maintainer of Discord Unit Frames and Discord Art.
Author of FauxMazzle, FauxMazzleHUD and Move Pad Plus.
  Reply With Quote
10-05-17, 12:56 PM   #5
Encoresx
A Deviate Faerie Dragon
Join Date: Oct 2017
Posts: 11
Works! Ty!
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » Personal Resource Bar - SetAlpha?

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off