Mercurial > wow > reaction
changeset 165:5257073138e8
Updates for WoW 3.3
author | Flick <flickerstreak@gmail.com> |
---|---|
date | Sat, 12 Dec 2009 21:56:32 +0000 |
parents | 363dd8130205 |
children | 8241be11dcc0 |
files | ReAction.toc classes/ActionButton.lua classes/PetActionButton.lua modules/VehicleExit.lua |
diffstat | 4 files changed, 17 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/ReAction.toc Sat Aug 22 00:26:29 2009 +0000 +++ b/ReAction.toc Sat Dec 12 21:56:32 2009 +0000 @@ -1,4 +1,4 @@ -## Interface: 30200 +## Interface: 30300 ## Title: ReAction ## Notes: Action button layout and configuration ## DefaultState: enabled
--- 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
--- a/classes/PetActionButton.lua Sat Aug 22 00:26:29 2009 +0000 +++ b/classes/PetActionButton.lua Sat Dec 12 21:56:32 2009 +0000 @@ -50,6 +50,7 @@ "UNIT_AURA", "PET_BAR_UPDATE", "PET_BAR_UPDATE_COOLDOWN", +"PET_BAR_UPDATE_USABLE", "UPDATE_BINDINGS", }
--- a/modules/VehicleExit.lua Sat Aug 22 00:26:29 2009 +0000 +++ b/modules/VehicleExit.lua Sat Dec 12 21:56:32 2009 +0000 @@ -118,7 +118,7 @@ bar:RegisterUnitWatch("vehicle",false) if not bar.vehicleExitStateRegistered then f:SetAttribute("unit","vehicle") - RegisterStateDriver(f, "unitexists", "[target=vehicle,exists,nobonusbar:5] show; hide") -- spoof onstate-unitexists + RegisterStateDriver(f, "unitexists", "[target=vehicle,exists,novehicleui] show; hide") -- spoof onstate-unitexists bar.vehicleExitStateRegistered = true end end