combat indicator fix anchoring
This commit is contained in:
parent
ad130af188
commit
01d748f37e
@ -68,16 +68,8 @@ function CombatIndicator:UpdateFrame(unit)
|
|||||||
ciFrame.border:SetVertexColor(Gladdy.db.ciBorderColor.r, Gladdy.db.ciBorderColor.g, Gladdy.db.ciBorderColor.b, Gladdy.db.ciBorderColor.a)
|
ciFrame.border:SetVertexColor(Gladdy.db.ciBorderColor.r, Gladdy.db.ciBorderColor.g, Gladdy.db.ciBorderColor.b, Gladdy.db.ciBorderColor.a)
|
||||||
|
|
||||||
ciFrame:ClearAllPoints()
|
ciFrame:ClearAllPoints()
|
||||||
local parent = Gladdy.buttons[unit][Gladdy.db.ciAnchor]
|
ciFrame:SetPoint(ANCHORS[Gladdy.db.ciPos], Gladdy.buttons[unit][Gladdy.db.ciAnchor], Gladdy.db.ciPos, Gladdy.db.ciXOffset, Gladdy.db.ciYOffset)
|
||||||
if (Gladdy.db.ciPos == "RIGHT") then
|
|
||||||
ciFrame:SetPoint(ANCHORS[Gladdy.db.ciPos], parent, Gladdy.db.ciPos, Gladdy.db.padding + Gladdy.db.ciXOffset, Gladdy.db.ciYOffset)
|
|
||||||
elseif (Gladdy.db.ciPos == "LEFT") then
|
|
||||||
ciFrame:SetPoint(ANCHORS[Gladdy.db.ciPos], parent, Gladdy.db.ciPos, -Gladdy.db.padding + Gladdy.db.ciXOffset, Gladdy.db.ciYOffset)
|
|
||||||
elseif (Gladdy.db.ciPos == "TOP") then
|
|
||||||
ciFrame:SetPoint(ANCHORS[Gladdy.db.ciPos], parent, Gladdy.db.ciPos, Gladdy.db.ciXOffset, Gladdy.db.padding + Gladdy.db.ciYOffset)
|
|
||||||
elseif (Gladdy.db.ciPos == "BOTTOM") then
|
|
||||||
ciFrame:SetPoint(ANCHORS[Gladdy.db.ciPos], parent, Gladdy.db.ciPos, Gladdy.db.ciXOffset, -Gladdy.db.padding + Gladdy.db.ciYOffset)
|
|
||||||
end
|
|
||||||
ciFrame:SetAlpha(Gladdy.db.ciAlpha)
|
ciFrame:SetAlpha(Gladdy.db.ciAlpha)
|
||||||
|
|
||||||
if (Gladdy.db.ciEnabled == false) then
|
if (Gladdy.db.ciEnabled == false) then
|
||||||
|
Loading…
Reference in New Issue
Block a user