- fixed up the clickable frame for player and target to be hidden/unclickable when the bar alpha is at 0

This commit is contained in:
Parnic
2010-04-12 05:26:46 +00:00
parent 5b991c24d3
commit d6e3ae3cd9
2 changed files with 21 additions and 1 deletions

View File

@ -893,6 +893,18 @@ function IceTargetHealth.prototype:HideBlizz()
ComboFrame:UnregisterAllEvents()
end
function IceTargetHealth.prototype:UpdateBar(scale, color, alpha)
IceTargetHealth.super.prototype.UpdateBar(self, scale, color, alpha)
if self.frame.button then
if self.alpha == 0 then
self.frame.button:Hide()
else
self.frame.button:Show()
end
end
end
-- Load us up