@@ -26,16 +26,18 @@ local function Reset(self) -- luacheck: ignore 432
2626 local profile = PlexusFrame .db .profile
2727 local texture = LibSharedMedia :Fetch (" statusbar" , PlexusFrame .db .profile .texture ) or " Interface\\ Addons\\ Plexus\\ gradient32x32"
2828 local frame = self .__owner
29- local side = profile .ExtraBarSide
3029 local healthBar = frame .indicators .bar
31- local barWidth = profile .ExtraBarSize
3230 local offset = PlexusFrame .db .profile .ExtraBarBorderSize + 1
31+ local side = profile .ExtraBarSide
32+ 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
3335
3436 self :SetParent (healthBar )
3537 self :ClearAllPoints ()
36- self :SetPoint (" TOP" , frame , " TOP" , offset , - offset )
37- self :SetWidth (frame :GetWidth ()- 5 )
38- self :SetHeight (frame :GetHeight ()- 5 )
38+ self :SetPoint (" TOP" , frame , " TOP" , - 2 , - offset )
39+ self :SetWidth (frame :GetWidth ()- extraBarSizeModW )
40+ self :SetHeight (frame :GetHeight ()- extraBarSizeModH )
3941 self :SetOrientation (profile .orientation )
4042 self :SetReverseFill (true )
4143 -- if side == "Right" then
@@ -138,7 +140,7 @@ local function SetStatus(self, color, _, value, maxValue, _, _, _, start, durati
138140 elseif not profile .enableExtraBar and self :IsShown () then
139141 self :Hide ()
140142 end
141- self :SetAlpha (value )
143+ -- self:SetAlpha(value)
142144 self .bg :Hide ()
143145end
144146
0 commit comments