# HG changeset patch # User Chris Mellon # Date 1287354072 18000 # Node ID c2ff66c875216da4567b5039d20fa878ad9d513d # Parent 54e30adde56b6b3560f48f922cb2378d1bc05c61 minor lie, slightly better vehicle support diff -r 54e30adde56b -r c2ff66c87521 KBF.lua --- a/KBF.lua Sun Oct 17 08:45:13 2010 -0500 +++ b/KBF.lua Sun Oct 17 17:21:12 2010 -0500 @@ -250,11 +250,11 @@ 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 - local unit = button.unit or button:GetAttribute("unit") - local filter = button.filter or button:GetAttribute("filter") + local unit = SecureButton_GetModifiedUnit(button) or button.unit-- will perform vehicle toggle + local filter = button:GetAttribute("filter") or button.filter local index = button:GetAttribute("index") or button.index if unit and filter and index then + -- 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(unit, index, filter); @@ -263,7 +263,7 @@ local slot = button:GetAttribute("target-slot") -- temp enchant GameTooltip:SetOwner(button, "ANCHOR_BOTTOMLEFT"); GameTooltip:SetFrameLevel(button:GetFrameLevel() + 2); - GameTooltip:SetInventoryItem("player", slot) + GameTooltip:SetInventoryItem(unit, slot) end -- creates a icon + statusbar bar diff -r 54e30adde56b -r c2ff66c87521 KBF.xml --- a/KBF.xml Sun Oct 17 08:45:13 2010 -0500 +++ b/KBF.xml Sun Oct 17 17:21:12 2010 -0500 @@ -4,7 +4,7 @@