Mercurial > wow > reaction
comparison 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 |
comparison
equal
deleted
inserted
replaced
| 164:363dd8130205 | 165:5257073138e8 |
|---|---|
| 137 "ACTIONBAR_SLOT_CHANGED", | 137 "ACTIONBAR_SLOT_CHANGED", |
| 138 "UPDATE_BINDINGS", | 138 "UPDATE_BINDINGS", |
| 139 "ACTIONBAR_UPDATE_STATE", | 139 "ACTIONBAR_UPDATE_STATE", |
| 140 "ACTIONBAR_UPDATE_USABLE", | 140 "ACTIONBAR_UPDATE_USABLE", |
| 141 "ACTIONBAR_UPDATE_COOLDOWN", | 141 "ACTIONBAR_UPDATE_COOLDOWN", |
| 142 "UNIT_INVENTORY_CHANGED", | |
| 143 "LEARNED_SPELL_IN_TAB", | |
| 142 "UPDATE_INVENTORY_ALERTS", | 144 "UPDATE_INVENTORY_ALERTS", |
| 143 "PLAYER_TARGET_CHANGED", | 145 "PLAYER_TARGET_CHANGED", |
| 144 "TRADE_SKILL_SHOW", | 146 "TRADE_SKILL_SHOW", |
| 145 "TRADE_SKILL_CLOSE", | 147 "TRADE_SKILL_CLOSE", |
| 146 "PLAYER_ENTER_COMBAT", | 148 "PLAYER_ENTER_COMBAT", |
| 445 function Action:SetTooltip() | 447 function Action:SetTooltip() |
| 446 local f = self:GetFrame() | 448 local f = self:GetFrame() |
| 447 if GetCVar("UberTooltips") == "1" then | 449 if GetCVar("UberTooltips") == "1" then |
| 448 GameTooltip_SetDefaultAnchor(GameTooltip, f) | 450 GameTooltip_SetDefaultAnchor(GameTooltip, f) |
| 449 else | 451 else |
| 450 GameTooltip:SetOwner(f) | 452 GameTooltip:SetOwner(f,"ANCHOR_RIGHT") |
| 451 end | 453 end |
| 452 GameTooltip:SetAction(self.actionID) | 454 GameTooltip:SetAction(self.actionID) |
| 453 end | 455 end |
| 454 | 456 |
| 455 function Action:UpdateCheckedState() | 457 function Action:UpdateCheckedState() |
| 635 doVehicle = self:GetAttribute("vehicle") | 637 doVehicle = self:GetAttribute("vehicle") |
| 636 control:ChildUpdate() | 638 control:ChildUpdate() |
| 637 ]]) | 639 ]]) |
| 638 | 640 |
| 639 f:SetAttribute("_onstate-mc", _onstate_mc) | 641 f:SetAttribute("_onstate-mc", _onstate_mc) |
| 640 RegisterStateDriver(f, "mc", "[target=vehicle,exists,bonusbar:5] vehicle; [bonusbar:5] mc; none") | 642 RegisterStateDriver(f, "mc", "[vehicleui] vehicle; [bonusbar:5] mc; none") |
| 641 | 643 |
| 642 f:SetAttribute("lockbuttons",config.lockButtons) | 644 f:SetAttribute("lockbuttons",config.lockButtons) |
| 643 f:SetAttribute("lockbuttonscombat",config.lockButtonsCombat) | 645 f:SetAttribute("lockbuttonscombat",config.lockButtonsCombat) |
| 644 f:Execute( | 646 f:Execute( |
| 645 [[ | 647 [[ |
| 788 function Action:PLAYER_REGEN_ENABLED() | 790 function Action:PLAYER_REGEN_ENABLED() |
| 789 if self.showgridPending then | 791 if self.showgridPending then |
| 790 self:UpdateShowGrid() | 792 self:UpdateShowGrid() |
| 791 end | 793 end |
| 792 end | 794 end |
| 795 | |
| 796 function Action:UNIT_INVENTORY_CHANGED(unit) | |
| 797 if unit == "player" then | |
| 798 self:UpdateTooltip() | |
| 799 end | |
| 800 end | |
| 801 | |
| 802 function Action:LEARNED_SPELL_IN_TAB() | |
| 803 self:UpdateTooltip() | |
| 804 end |
