Skip to content

Commit

Permalink
Merge pull request #25 from midraal/bugfix/offlinehealth
Browse files Browse the repository at this point in the history
fix offline health and shield bar
  • Loading branch information
Crowdedlight committed Aug 26, 2014
2 parents 03f27a8 + 43390a7 commit 7008a16
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions VikingGroupDisplay.lua
Original file line number Diff line number Diff line change
Expand Up @@ -944,10 +944,10 @@ function VikingGroupDisplay:HelperUpdateHealth(tPortrait, tMemberInfo, unitMembe
tPortrait.wndMaxAbsorb:SetAnchorOffsets(self.nFrameLeft, self.nMaxAbsorbFrameTop, nPointAbsorbRight, self.nMaxAbsorbFrameBottom)

-- Bars
tPortrait.wndShields:Show(nHealthCurr > 0)
tPortrait.wndHealth:Show(nHealthCurr > 0) -- TODO: Temp The sprite draws poorly this low.
tPortrait.wndMaxShields:Show(nHealthCurr > 0 and nShieldMax > 0)
tPortrait.wndMaxAbsorb:Show(nHealthCurr > 0 and nAbsorbMax > 0)
tPortrait.wndShields:Show(nHealthCurr > 0 and tMemberInfo.bIsOnline)
tPortrait.wndHealth:Show(nHealthCurr > 0 and tMemberInfo.bIsOnline) -- TODO: Temp The sprite draws poorly this low.
tPortrait.wndMaxShields:Show(nHealthCurr > 0 and nShieldMax > 0 and tMemberInfo.bIsOnline)
tPortrait.wndMaxAbsorb:Show(nHealthCurr > 0 and nAbsorbMax > 0 and tMemberInfo.bIsOnline)
end

function VikingGroupDisplay:SetBarValue(wndBar, fMin, fValue, fMax)
Expand Down

0 comments on commit 7008a16

Please sign in to comment.