Hello,
for some time I have been trying to separate the original Blizzard Class Power Bars (e.g. Warlock Shards) from the PlayerFrame to use them in conjunction with Shadowed Unit Frames.
I've already tried to get some help on the official forums but to no avail.
Since the bars are hidden when their parent is hidden (PlayerFrame), I have been trying to change the parent to something else before the PlayerFrame gets hidden.
If I change it to the SUF Player frame or a newly created frame I get an empty Bar texture and nothing else.
If I change it to UIParent I get a correctly filled bar, but it doesn't update on changes.
Example Code:
Code:
WarlockPowerFrame:SetParent(UIParent);
The only addon I know has the original Frames is Perl Classic Unit Frames. So I have tried to look at it's code and it seems like it does also change the parent and attach it to it's own frame. But it's working there and I don't know why.
After trying to get this done for such a long time I have reached my limit and now I'm out of ideas on what to do.
Can anyone help me get this done?