Skip to content

Commit 61c0752

Browse files
committed
Fix Extra Bars Position
1 parent 2e40bcd commit 61c0752

File tree

3 files changed

+36
-6
lines changed

3 files changed

+36
-6
lines changed

Indicators/AbsorbBar.lua

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,18 @@ local function Reset(self) -- luacheck: ignore 432
3030
local offset = PlexusFrame.db.profile.ExtraBarBorderSize + 1
3131
local side = profile.ExtraBarSide
3232
local enableExtraBar = profile.enableExtraBar
33-
local extraBarSizeModW = side == "Left" or side == "Right" and enableExtraBar and profile.ExtraBarSize * 100 or 0
34-
local extraBarSizeModH = side == "Top" or side == "Bottom" and enableExtraBar and profile.ExtraBarSize * 100 or 0
33+
local extraBarSizeModW -- = (side == "Left" or side == "Right" and enableExtraBar and profile.ExtraBarSize * 100) or 0
34+
if enableExtraBar and side == "Left" or side == "Right" then
35+
extraBarSizeModW = profile.ExtraBarSize * 100
36+
else
37+
extraBarSizeModW = 0
38+
end
39+
local extraBarSizeModH -- = (side == "Top" or side == "Bottom" and enableExtraBar and profile.ExtraBarSize * 100) or 0
40+
if enableExtraBar and side == "Top" or side == "Bottom" then
41+
extraBarSizeModH = profile.ExtraBarSize * 100
42+
else
43+
extraBarSizeModH = 0
44+
end
3545

3646
self:SetParent(healthBar)
3747
self:ClearAllPoints()

Indicators/HealingAbsorbBar.lua

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,18 @@ local function Reset(self) -- luacheck: ignore 432
3030
local offset = PlexusFrame.db.profile.ExtraBarBorderSize + 1
3131
local side = profile.ExtraBarSide
3232
local enableExtraBar = profile.enableExtraBar
33-
local extraBarSizeModW = side == "Left" or side == "Right" and enableExtraBar and profile.ExtraBarSize * 100 or 0
34-
local extraBarSizeModH = side == "Top" or side == "Bottom" and enableExtraBar and profile.ExtraBarSize * 100 or 0
33+
local extraBarSizeModW -- = (side == "Left" or side == "Right" and enableExtraBar and profile.ExtraBarSize * 100) or 0
34+
if enableExtraBar and side == "Left" or side == "Right" then
35+
extraBarSizeModW = profile.ExtraBarSize * 100
36+
else
37+
extraBarSizeModW = 0
38+
end
39+
local extraBarSizeModH -- = (side == "Top" or side == "Bottom" and enableExtraBar and profile.ExtraBarSize * 100) or 0
40+
if enableExtraBar and side == "Top" or side == "Bottom" then
41+
extraBarSizeModH = profile.ExtraBarSize * 100
42+
else
43+
extraBarSizeModH = 0
44+
end
3545

3646
self:SetParent(healthBar)
3747
self:ClearAllPoints()

Indicators/IncomingHealingBar.lua

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,18 @@ local function Reset(self) -- luacheck: ignore 432
3030
local offset = PlexusFrame.db.profile.ExtraBarBorderSize + 1
3131
local side = profile.ExtraBarSide
3232
local enableExtraBar = profile.enableExtraBar
33-
local extraBarSizeModW = side == "Left" or side == "Right" and enableExtraBar and profile.ExtraBarSize * 100 or 0
34-
local extraBarSizeModH = side == "Top" or side == "Bottom" and enableExtraBar and profile.ExtraBarSize * 100 or 0
33+
local extraBarSizeModW -- = (side == "Left" or side == "Right" and enableExtraBar and profile.ExtraBarSize * 100) or 0
34+
if enableExtraBar and side == "Left" or side == "Right" then
35+
extraBarSizeModW = profile.ExtraBarSize * 100
36+
else
37+
extraBarSizeModW = 0
38+
end
39+
local extraBarSizeModH -- = (side == "Top" or side == "Bottom" and enableExtraBar and profile.ExtraBarSize * 100) or 0
40+
if enableExtraBar and side == "Top" or side == "Bottom" then
41+
extraBarSizeModH = profile.ExtraBarSize * 100
42+
else
43+
extraBarSizeModH = 0
44+
end
3545

3646
self:SetParent(healthBar)
3747
self:ClearAllPoints()

0 commit comments

Comments
 (0)