Skip to content

Commit

Permalink
more border conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
eltreum0 committed Jul 17, 2022
1 parent b5185a9 commit 3c3d6ba
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions ElvUI_EltreumUI/Modules/Skins/Borders.lua
Original file line number Diff line number Diff line change
Expand Up @@ -208,10 +208,16 @@ function ElvUI_EltreumUI:Borders()
else
petborder = _G["EltruismPetBorder"]
end
local petsizex, petsizey = _G["ElvUF_Pet_HealthBar"]:GetSize()
local petsizex, petsizey
if E.db.ElvUI_EltreumUI.borders.borderautoadjust then
petborder:SetPoint("TOPRIGHT", _G.ElvUF_Pet_HealthBar,"TOPRIGHT", 17, 16)
petborder:SetPoint("BOTTOMLEFT", _G.ElvUF_Pet_HealthBar,"BOTTOMLEFT", -17, -16)
petsizex, petsizey = _G["ElvUF_Pet_HealthBar"]:GetSize()
else
petsizex, petsizey = _G["ElvUF_Pet"]:GetSize()
petborder:SetPoint("CENTER", _G.ElvUF_Pet,"CENTER", 0, 0)
end
petborder:SetSize(petsizex, petsizey)
petborder:SetPoint("TOPRIGHT", _G.ElvUF_Pet_HealthBar,"TOPRIGHT", 17, 16)
petborder:SetPoint("BOTTOMLEFT", _G.ElvUF_Pet_HealthBar,"BOTTOMLEFT", -17, -16)
petborder:SetBackdrop({
edgeFile = bordertexture,
edgeSize = playertargetsize,
Expand Down Expand Up @@ -323,7 +329,11 @@ function ElvUI_EltreumUI:Borders()
focusborder = _G["EltruismFocusBorder"]
end
focusborder:SetSize(E.db.ElvUI_EltreumUI.borders.xfocus, E.db.ElvUI_EltreumUI.borders.yfocus)
focusborder:SetPoint("CENTER", _G.ElvUF_Focus_HealthBar, "CENTER", 0, 0)
if E.db.ElvUI_EltreumUI.borders.borderautoadjust then
focusborder:SetPoint("CENTER", _G.ElvUF_Focus_HealthBar, "CENTER", 0, 0)
else
focusborder:SetPoint("CENTER", _G.ElvUF_Focus, "CENTER", 0, 0)
end
focusborder:SetBackdrop({
edgeFile = bordertexture,
edgeSize = playertargetsize,
Expand Down

0 comments on commit 3c3d6ba

Please sign in to comment.