Mercurial > wow > reaction
diff classes/ActionButton.lua @ 165:5257073138e8
Updates for WoW 3.3
author | Flick <flickerstreak@gmail.com> |
---|---|
date | Sat, 12 Dec 2009 21:56:32 +0000 |
parents | d0a41fc7b0d7 |
children | 8cc187143acd |
line wrap: on
line diff
--- a/classes/ActionButton.lua Sat Aug 22 00:26:29 2009 +0000 +++ b/classes/ActionButton.lua Sat Dec 12 21:56:32 2009 +0000 @@ -139,6 +139,8 @@ "ACTIONBAR_UPDATE_STATE", "ACTIONBAR_UPDATE_USABLE", "ACTIONBAR_UPDATE_COOLDOWN", + "UNIT_INVENTORY_CHANGED", + "LEARNED_SPELL_IN_TAB", "UPDATE_INVENTORY_ALERTS", "PLAYER_TARGET_CHANGED", "TRADE_SKILL_SHOW", @@ -447,7 +449,7 @@ if GetCVar("UberTooltips") == "1" then GameTooltip_SetDefaultAnchor(GameTooltip, f) else - GameTooltip:SetOwner(f) + GameTooltip:SetOwner(f,"ANCHOR_RIGHT") end GameTooltip:SetAction(self.actionID) end @@ -637,7 +639,7 @@ ]]) f:SetAttribute("_onstate-mc", _onstate_mc) - RegisterStateDriver(f, "mc", "[target=vehicle,exists,bonusbar:5] vehicle; [bonusbar:5] mc; none") + RegisterStateDriver(f, "mc", "[vehicleui] vehicle; [bonusbar:5] mc; none") f:SetAttribute("lockbuttons",config.lockButtons) f:SetAttribute("lockbuttonscombat",config.lockButtonsCombat) @@ -790,3 +792,13 @@ self:UpdateShowGrid() end end + +function Action:UNIT_INVENTORY_CHANGED(unit) + if unit == "player" then + self:UpdateTooltip() + end +end + +function Action:LEARNED_SPELL_IN_TAB() + self:UpdateTooltip() +end