Mercurial > wow > skeletonkey
comparison SkeletonKey/Events.lua @ 62:04c23ceaf9e0
- fix taint caused by loading in combat
author | Nenue |
---|---|
date | Mon, 05 Sep 2016 14:56:38 -0400 |
parents | 9eebce04e69b |
children | 178d489f387c |
comparison
equal
deleted
inserted
replaced
61:b7be92f62b05 | 62:04c23ceaf9e0 |
---|---|
16 | 16 |
17 kb:RegisterEvent('PLAYER_REGEN_DISABLED') | 17 kb:RegisterEvent('PLAYER_REGEN_DISABLED') |
18 kb:RegisterEvent('PLAYER_REGEN_ENABLED') | 18 kb:RegisterEvent('PLAYER_REGEN_ENABLED') |
19 end | 19 end |
20 | 20 |
21 kb.event = function(event, ...) | |
22 if kb[event] then | |
23 kb[event](kb, event, ...) | |
24 end | |
25 end | |
26 | |
27 kb.PLAYER_REGEN_DISABLED = function() | 21 kb.PLAYER_REGEN_DISABLED = function() |
28 kb:Hide() | 22 kb:Hide() |
29 end | 23 end |
30 | 24 |
31 kb.UNIT_PORTRAIT_UPDATE = function() | 25 kb.UNIT_PORTRAIT_UPDATE = function() |
36 | 30 |
37 kb.PLAYER_REGEN_ENABLED = function() | 31 kb.PLAYER_REGEN_ENABLED = function() |
38 kb.ui() | 32 kb.ui() |
39 end | 33 end |
40 | 34 |
41 kb.PLAYER_SPECIALIZATION_CHANGED = function() | 35 kb.PLAYER_SPECIALIZATION_CHANGED = function(...) |
42 kb.UpdateSpecInfo() | 36 kb.UpdateSpecInfo() |
43 kb.UpdateTalentInfo() | 37 kb.UpdateTalentInfo() |
44 kb.SelectProfileSet(kb.profileName) | 38 kb.SelectProfileSet(kb.profileName) |
45 kb.ApplyAllBindings() | 39 kb.ApplyAllBindings() |
46 kb.ui(true) | 40 kb.ui(true) |