So, I'm trying to fix my own unit frames but ran into some problems with positions of power bars. I'm not the best guy on LUA coding, have done an addon, but not like this so I'm kinda new
I have the powerbars in right position on "player" and "target" unit, but not in party units and wondered if you can help me.
currently I've tried to use the following code to make it work:
Code:
if unit == "party" then
Power:SetPoint("BOTTOM", 0, 6)
Power:SetPoint("LEFT", 8, 0)
Power:SetPoint("RIGHT", -90, 0)
elseif unit == "player" or unit == "target" then
Power:SetPoint("BOTTOM", 0, 26)
Power:SetPoint("LEFT", 8, 0)
Power:SetPoint("RIGHT", -90, 0)
end
but that didn't work, either it's placed right on player and target, while not on the party frames.
The unitframes was built on oUF_Classic to get it working on my UI (building my own). Any ideas on how I can make the powerbars in party being in the right positions while in the right position on player and target?
Edit:
Here's a link to a picture on how it looks like when party powerbars doesn't positioning right..
//Thees