# HG changeset patch # User Chris Mellon # Date 1286986273 18000 # Node ID 5f07c89cb6af559498903a3a4712ea3259baa428 # Parent 76650e326a57bcc4ef1bc839e1c9a793ef6e71c9 tooltips for buffs diff -r 76650e326a57 -r 5f07c89cb6af KBF.lua --- 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" diff -r 76650e326a57 -r 5f07c89cb6af KBF.xml --- a/KBF.xml Wed Oct 13 09:28:45 2010 -0500 +++ b/KBF.xml Wed Oct 13 11:11:13 2010 -0500 @@ -10,5 +10,13 @@ + + + KBF:OnEnter(self, motion) + + + GameTooltip:Hide(); + +