Mercurial > wow > skeletonkey
comparison Events.lua @ 72:c48913c5924c
- Dynamic bindings properly update between talent choices, and the hotkey text is also correctly reflected.
| author | Nenue |
|---|---|
| date | Sat, 07 Jan 2017 12:47:41 -0500 |
| parents | 131d9190db6b |
| children | 9824d524a661 |
comparison
equal
deleted
inserted
replaced
| 71:ca3118127e5e | 72:c48913c5924c |
|---|---|
| 6 | 6 |
| 7 local _, kb = ... | 7 local _, kb = ... |
| 8 local print = (DEVIAN_PNAME == 'SkeletonKey') and function(...) _G.print('SkeletonKey', ...) end or function() end | 8 local print = (DEVIAN_PNAME == 'SkeletonKey') and function(...) _G.print('SkeletonKey', ...) end or function() end |
| 9 | 9 |
| 10 | 10 |
| 11 kb.ADDON_LOADED = function(_, _, addon) | 11 kb.PLAYER_LOGIN = function(_, _, addon) |
| 12 | 12 |
| 13 if addon == 'Blizzard_MacroUI' then | |
| 14 kb.CreateMacroHooks() | |
| 15 end | |
| 16 end | 13 end |
| 17 | 14 |
| 18 kb.PLAYER_REGEN_DISABLED = function() | 15 kb.PLAYER_REGEN_DISABLED = function() |
| 19 SkeletonKey:SetShown(false) | 16 SkeletonKey:SetShown(false) |
| 20 end | 17 end |
| 26 kb.PLAYER_REGEN_ENABLED = function() | 23 kb.PLAYER_REGEN_ENABLED = function() |
| 27 SkeletonKey:Update() | 24 SkeletonKey:Update() |
| 28 end | 25 end |
| 29 | 26 |
| 30 kb.PLAYER_SPECIALIZATION_CHANGED = function(...) | 27 kb.PLAYER_SPECIALIZATION_CHANGED = function(...) |
| 28 | |
| 31 kb.UpdateSpecInfo() | 29 kb.UpdateSpecInfo() |
| 32 kb.UpdateTalentInfo() | 30 kb.UpdateTalentInfo() |
| 31 | |
| 33 kb.SelectProfileSet(kb.profileName) | 32 kb.SelectProfileSet(kb.profileName) |
| 34 kb.ApplyAllBindings() | 33 kb.ApplyAllBindings() |
| 35 SkeletonKey:Update(true) | 34 SkeletonKey:Update(true) |
| 36 end | 35 end |
| 37 kb.PLAYER_TALENT_UPDATE = function() | 36 kb.PLAYER_TALENT_UPDATE = function() |
| 38 kb.UpdateTalentInfo() | 37 --kb.UpdateTalentInfo() |
| 39 kb.SelectProfileSet(kb.profileName) | 38 --kb.SelectProfileSet(kb.profileName) |
| 40 kb.ApplyAllBindings() | 39 --kb.ApplyAllBindings() |
| 41 SkeletonKey:Update() | 40 --SkeletonKey:Update() |
| 42 end | 41 end |
| 43 kb.ACTIONBAR_SLOT_CHANGED = function(self, event, slot) | 42 kb.ACTIONBAR_SLOT_CHANGED = function(self, event, slot) |
| 44 --kb.HotKeyText(slot) | 43 --kb.HotKeyText(slot) |
| 45 return true | 44 return true |
| 46 end | 45 end |
