Skip to content

Commit

Permalink
Fix FocusFrameManaBarText color
Browse files Browse the repository at this point in the history
  • Loading branch information
gashole committed Mar 6, 2017
1 parent caaaa9a commit c264da5
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions core.lua
Original file line number Diff line number Diff line change
Expand Up @@ -147,19 +147,18 @@

local function FocusFrame_HealthUpdate()
local hp, hmax = Focus.GetHealth()
local pp, pmax = Focus.GetPower()

if GetCVar'modStatus' == '0' and GetCVar'modBoth' == '0' then
for _, v in pairs({FocusDeadText, FocusFrameHealthBarText, FocusFrameManaBarText}) do
v:SetPoint('CENTER', FocusFrame, v == FocusFrameManaBarText and -26 or -75, -3)
end
end

gradient(hp or 100, FocusFrameHealthBarText, 0, hmax or 100)
gradient(hp or 100, FocusFrameHealthBar, 0, hmax or 100)
gradient(hp, FocusFrameHealthBarText, 0, hmax)
gradient(hp, FocusFrameHealthBar, 0, hmax)

if _G['modui_vars'].db['modWhiteStatusText'] == 0 then
local pp = Focus:GetData'unitPowerType'
local pt = Focus:GetData'powerType'

if class == 'ROGUE' or (class == 'DRUID' and pt == 3) then
FocusFrameManaBarText:SetTextColor(250/255, 240/255, 200/255)
Expand Down

0 comments on commit c264da5

Please # to comment.