Skip to content

Commit 2e40bcd

Browse files
committed
[Indicators\Bar] Fix Secret Value
1 parent 7a17926 commit 2e40bcd

File tree

1 file changed

+16
-6
lines changed

1 file changed

+16
-6
lines changed

Indicators/Bar.lua

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,18 +17,28 @@ local L = Plexus.L
1717

1818
local function SetBarColor(bar, r, g, b, invert)
1919
--print("SetBarColor", invert)
20-
if invert then
21-
bar:SetStatusBarColor(r, g, b, 1)
22-
bar.bg:SetVertexColor(r * 0.2, g * 0.2, b * 0.2, 1)
20+
if not (Plexus:issecretvalue(r) or Plexus:issecretvalue(g) or Plexus:issecretvalue(b)) then
21+
if invert then
22+
bar:SetStatusBarColor(r, g, b, 1)
23+
bar.bg:SetVertexColor(r * 0.2, g * 0.2, b * 0.2, 1)
24+
else
25+
bar:SetStatusBarColor(r * 0.2, g * 0.2, b * 0.2, 1)
26+
bar.bg:SetVertexColor(r, g, b, 1)
27+
end
2328
else
24-
bar:SetStatusBarColor(r * 0.2, g * 0.2, b * 0.2, 1)
25-
bar.bg:SetVertexColor(r, g, b, 1)
29+
if invert then
30+
bar:SetStatusBarColor(r, g, b, 1)
31+
bar.bg:SetVertexColor(r, g, b, 1)
32+
else
33+
bar:SetStatusBarColor(r, g, b, 1)
34+
bar.bg:SetVertexColor(r, g, b, 1)
35+
end
2636
end
2737

2838
local profile = PlexusFrame.db.profile
2939
if not profile.healingBar_useStatusColor then
3040
local healingBar = bar.__owner.indicators.healingBar
31-
if invert then
41+
if invert or (Plexus:issecretvalue(r) or Plexus:issecretvalue(g) or Plexus:issecretvalue(b)) then
3242
healingBar:SetStatusBarColor(r, g, b)
3343
else
3444
local mu = PlexusFrame.db.profile.healingBar_intensity

0 commit comments

Comments
 (0)