Mercurial > wow > kbf
changeset 12:5f07c89cb6af
tooltips for buffs
author | Chris Mellon <arkanes@gmai.com> |
---|---|
date | Wed, 13 Oct 2010 11:11:13 -0500 |
parents | 76650e326a57 |
children | be6c10697c59 |
files | KBF.lua KBF.xml |
diffstat | 2 files changed, 21 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/KBF.lua Wed Oct 13 09:28:45 2010 -0500 +++ b/KBF.lua Wed Oct 13 11:11:13 2010 -0500 @@ -47,6 +47,10 @@ if self:BindBarToBuff(frame, unit) then break end end self:UpdateBarExpirationTime(frame) + -- Don't forget to refresh shown tooltips + if ( GameTooltip:IsOwned(frame) ) then + GameTooltip:SetUnitAura(unit, idx, filter); + end end -- temporary enchants -- TODO: The blizz secure aura header binds both temp enchants @@ -155,6 +159,15 @@ return timetext end +function KBF:OnEnter(button, motion) + -- this is for the secure buttons, so use the attributes + -- I'd like a better place to position this but it's funky for right now, handle it later + GameTooltip:SetOwner(button, "ANCHOR_BOTTOMLEFT"); + GameTooltip:SetFrameLevel(button:GetFrameLevel() + 2); + GameTooltip:SetUnitAura(button:GetAttribute("unit"), button:GetID(), button:GetAttribute("filter")); + +end + -- creates a icon + statusbar bar function kbf:ConstructBar(frame, r, g, b) local texture = "Interface\\TargetingFrame\\UI-StatusBar"