Mercurial > wow > kbf
comparison KBF.lua @ 16:87131aeedc3f
more tooltip refactoring/fixes
| author | Chris Mellon <arkanes@gmai.com> |
|---|---|
| date | Wed, 13 Oct 2010 12:29:17 -0500 |
| parents | 0c5e210221c9 |
| children | 233745d4774b |
comparison
equal
deleted
inserted
replaced
| 15:0c5e210221c9 | 16:87131aeedc3f |
|---|---|
| 80 self:SetBarAppearance(frame, name, icon, stacks, duration, expirationTime) | 80 self:SetBarAppearance(frame, name, icon, stacks, duration, expirationTime) |
| 81 frame:ClearAllPoints() | 81 frame:ClearAllPoints() |
| 82 -- position it under all the buffs, with a half-bar spacing | 82 -- position it under all the buffs, with a half-bar spacing |
| 83 frame:SetPoint("TOP", self.anchor, "BOTTOM", 0, (buffCount * -16) - 8) | 83 frame:SetPoint("TOP", self.anchor, "BOTTOM", 0, (buffCount * -16) - 8) |
| 84 frame:Show() | 84 frame:Show() |
| 85 frame:SetID(idx) | |
| 86 frame.filter = "HARMFUL" | 85 frame.filter = "HARMFUL" |
| 87 frame.unit = unit | 86 frame.unit = unit |
| 87 frame.index = idx | |
| 88 frame:SetScript("OnEnter", function() kbf:OnEnter(frame) end) | 88 frame:SetScript("OnEnter", function() kbf:OnEnter(frame) end) |
| 89 frame:SetScript("OnLeave", function() GameTooltip:Hide() end) | 89 frame:SetScript("OnLeave", function() GameTooltip:Hide() end) |
| 90 buffCount = buffCount + 1 | 90 buffCount = buffCount + 1 |
| 91 else | 91 else |
| 92 -- not dirty, so no frame means we're done | 92 -- not dirty, so no frame means we're done |
