Mercurial > wow > skeletonkey
comparison SkeletonKey/SkeletonKey.lua @ 54:a545933ddf3d
- pet ability binding macro now contains a /cast line for all known abilities with the same subtext, fixing an issue where swapping pets during combat breaks the key binding
| author | Nenue |
|---|---|
| date | Sun, 21 Aug 2016 03:13:32 -0400 |
| parents | 81a7c71c4483 |
| children | d8bb2629fea8 |
comparison
equal
deleted
inserted
replaced
| 53:29c89dbe07ac | 54:a545933ddf3d |
|---|---|
| 3 -- Krakyn-Mal'Ganis | 3 -- Krakyn-Mal'Ganis |
| 4 -- @project-revision@ @project-hash@ | 4 -- @project-revision@ @project-hash@ |
| 5 -- @file-revision@ @file-hash@ | 5 -- @file-revision@ @file-hash@ |
| 6 -- Created: 6/16/2016 3:47 AM | 6 -- Created: 6/16/2016 3:47 AM |
| 7 -------------------------------------------- | 7 -------------------------------------------- |
| 8 -- kb | 8 -- Header script |
| 9 -- .StoreBinding(button, key) bind current keystroke to command | |
| 10 -- .GetSlot(index) return display slot | |
| 11 -- .SetSlot(button, command, name, icon) assign display slot | |
| 12 -- .ReleaseSlot(button) clear button command | |
| 13 -- .UpdateSlot(button) update button contents | |
| 14 -- .SelectProfile(name) set profile character | |
| 15 -- .ApplyBindings(bindings) walk table with SetBinding() | |
| 16 | 9 |
| 17 local _ | 10 local _ |
| 18 local kb, print = LibStub("LibKraken").register(KeyBinder) | 11 local kb, print = LibStub("LibKraken").register(KeyBinder) |
| 19 kb.L = setmetatable({}, { | 12 kb.L = setmetatable({}, { |
| 20 __call = function(t, k, ...) return format(t[k] or k, ...) end | 13 __call = function(t, k, ...) return format(t[k] or k, ...) end |
| 21 }) | 14 }) |
| 22 local L = kb.L | 15 local L = kb.L |
| 23 | 16 |
| 24 --- Caps Lock literals | 17 --- Caps Lock literals |
| 25 local CLASS_ICON_TEXTURE = "Interface\\GLUES\\CHARACTERCREATE\\UI-CHARACTERCREATE-CLASSES" | |
| 26 L.BINDING_ASSIGNED = '|cFF00FF00%s|r assigned to |cFFFFFF00%s|r (%s).' | 18 L.BINDING_ASSIGNED = '|cFF00FF00%s|r assigned to |cFFFFFF00%s|r (%s).' |
| 27 L.BINDING_REMOVED = '|cFFFFFF00%s|r (|cFF00FFFF%s|r) unbound.' | 19 L.BINDING_REMOVED = '|cFFFFFF00%s|r (|cFF00FFFF%s|r) unbound.' |
| 28 L.BINDING_FAILED_PROTECTED = '|cFFFF4400Cannot use |r|cFF00FF00%s|r|cFFFF4400 (currently |cFFFFFF00%s|r|cFFFF4400). Uncheck "Safety" to ignore this restraint.|r' | 20 L.BINDING_FAILED_PROTECTED = '|cFFFF4400Cannot use |r|cFF00FF00%s|r|cFFFF4400 (currently |cFFFFFF00%s|r|cFFFF4400). Uncheck "Safety" to ignore this restraint.|r' |
| 29 | 21 |
| 30 | 22 |
