Mercurial > wow > skeletonkey
comparison SkeletonKey/KeyBinds.lua @ 3:07293831dd7b
- implement unit parameters table inheritance from a stock table
- UnitFrames.unit() and UnitFrames.ui() methods
author | Nenue |
---|---|
date | Tue, 21 Jun 2016 08:14:22 -0400 |
parents | cd7d06bcd98d |
children | 9ac29fe77455 |
comparison
equal
deleted
inserted
replaced
2:f7a0898d293c | 3:07293831dd7b |
---|---|
615 command = 'MACRO ' .. id | 615 command = 'MACRO ' .. id |
616 else | 616 else |
617 return | 617 return |
618 end | 618 end |
619 bind = GetBindingKey(command) | 619 bind = GetBindingKey(command) |
620 print(slot, bind, '->', command) | |
621 if bind then | 620 if bind then |
622 button.HotKey:SetText(BindingString(bind)) | 621 button.HotKey:SetText(BindingString(bind)) |
623 button.HotKey:Show() | 622 button.HotKey:Show() |
624 end | 623 end |
625 end | 624 end |
761 end | 760 end |
762 end | 761 end |
763 --- Refresh buttons if macros are updated | 762 --- Refresh buttons if macros are updated |
764 kb.UPDATE_BINDINGS = function() | 763 kb.UPDATE_BINDINGS = function() |
765 for i = 1, 120 do | 764 for i = 1, 120 do |
766 print(i) | |
767 kb.HotKeyText(i) | 765 kb.HotKeyText(i) |
768 end | 766 end |
769 if db.showUI then | 767 if db.showUI then |
770 kb.ui() | 768 kb.ui() |
771 end | 769 end |
772 end | 770 end |
773 | 771 |
774 kb.ACTIONBAR_SLOT_CHANGED = function(self, event, slot) | 772 kb.ACTIONBAR_SLOT_CHANGED = function(self, event, slot) |
775 kb.HotKeyText(slot) | 773 kb.HotKeyText(slot) |
774 return true | |
776 end | 775 end |
777 | 776 |
778 kb.UPDATE_MACROS = kb.UPDATE_BINDINGS | 777 kb.UPDATE_MACROS = kb.UPDATE_BINDINGS |
779 SLASH_KB1 = "/kb" | 778 SLASH_KB1 = "/kb" |
780 SlashCmdList.KB = function(self, input) | 779 SlashCmdList.KB = function(self, input) |