diff 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
line wrap: on
line diff
--- a/Events.lua	Fri Jan 06 16:21:49 2017 -0500
+++ b/Events.lua	Sat Jan 07 12:47:41 2017 -0500
@@ -8,11 +8,8 @@
 local print = (DEVIAN_PNAME == 'SkeletonKey') and function(...) _G.print('SkeletonKey', ...) end or function() end
 
 
-kb.ADDON_LOADED = function(_, _, addon)
+kb.PLAYER_LOGIN = function(_, _, addon)
 
-  if addon == 'Blizzard_MacroUI' then
-    kb.CreateMacroHooks()
-  end
 end
 
 kb.PLAYER_REGEN_DISABLED = function()
@@ -28,17 +25,19 @@
 end
 
 kb.PLAYER_SPECIALIZATION_CHANGED =  function(...)
+
   kb.UpdateSpecInfo()
   kb.UpdateTalentInfo()
+
   kb.SelectProfileSet(kb.profileName)
   kb.ApplyAllBindings()
   SkeletonKey:Update(true)
 end
 kb.PLAYER_TALENT_UPDATE = function()
-  kb.UpdateTalentInfo()
-  kb.SelectProfileSet(kb.profileName)
-  kb.ApplyAllBindings()
-  SkeletonKey:Update()
+  --kb.UpdateTalentInfo()
+  --kb.SelectProfileSet(kb.profileName)
+  --kb.ApplyAllBindings()
+  --SkeletonKey:Update()
 end
 kb.ACTIONBAR_SLOT_CHANGED = function(self, event, slot)
   --kb.HotKeyText(slot)