Thread Tools Display Modes
11-19-10, 05:33 AM   #1
Amexi
A Murloc Raider
AddOn Compiler - Click to view compilations
Join Date: Oct 2008
Posts: 8
power bar positions

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

Last edited by Amexi : 11-19-10 at 05:39 AM.
  Reply With Quote
11-19-10, 11:18 AM   #2
Amexi
A Murloc Raider
AddOn Compiler - Click to view compilations
Join Date: Oct 2008
Posts: 8
So, I've found the problem and will post how I made it work for me.. like some other people doesn't.

Code:
Power:SetPoint("LEFT", 8, 0)
Power:SetPoint("RIGHT", -90, 0)
Power:SetPoint("TOP", self.Health, "BOTTOM", 0, 0)
Does look right, right?
  Reply With Quote

WoWInterface » Featured Projects » oUF (Otravi Unit Frames) » power bar positions


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