Mercurial > wow > skeletonkey
comparison SkeletonKey/HotKey.lua @ 59:d8bb2629fea8
LKT
- organized addon templates a little
- centralized ticker
author | Nenue |
---|---|
date | Sat, 27 Aug 2016 10:31:48 -0400 |
parents | 9eebce04e69b |
children | b7be92f62b05 |
comparison
equal
deleted
inserted
replaced
58:39cfd8e142f9 | 59:d8bb2629fea8 |
---|---|
3 -- Created: 7/22/2016 10:28 PM | 3 -- Created: 7/22/2016 10:28 PM |
4 -- %file-revision% | 4 -- %file-revision% |
5 -- Module for fixing actionbar hotkey text | 5 -- Module for fixing actionbar hotkey text |
6 | 6 |
7 local _G, wipe, tContains, tinsert = _G, table.wipe, tContains, tinsert | 7 local _G, wipe, tContains, tinsert = _G, table.wipe, tContains, tinsert |
8 local kb, print, wrap = LibStub("LibKraken").register(KeyBinder, 'HotKey') | 8 local kb, print, wrap = LibStub("LibKraken").register(KeyBinder, "HotKey") |
9 local hotkey = {} | |
10 local hotkeyText = {} | 9 local hotkeyText = {} |
11 local blizHotKey = {} | 10 local blizHotKey = {} |
12 local bindings | 11 local bindings |
12 local hotkey = {} | |
13 | 13 |
14 -- frames obtained via post-load hooks, created by addons like Dominos or BarTender4 | 14 -- frames obtained via post-load hooks, created by addons like Dominos or BarTender4 |
15 local loadedFrames = {} | 15 local loadedFrames = {} |
16 -- frames divided by update categories | 16 -- frames divided by update categories |
17 local categoryFrames = {} | 17 local categoryFrames = {} |
18 -- frames indexed by action slot ID (just the action bar, for... reasons) | 18 -- frames indexed by action slot ID (just the action bar, for... reasons) |
19 local actionSlots = {} | 19 local actionSlots = {} |
20 local actionFrames = {} | 20 local actionFrames = {} |
21 local actionIndex = {} | 21 local actionIndex = {} |
22 | 22 |
23 kb.wrap(hotkey) | 23 kb:wrap(hotkey) |
24 | 24 |
25 --- Used to determine which groups of action buttons need updating | 25 --- Used to determine which groups of action buttons need updating |
26 local hotkeyEvents = { | 26 local hotkeyEvents = { |
27 ["UPDATE_BONUS_ACTIONBAR"] = {"bonus"}, | 27 ["UPDATE_BONUS_ACTIONBAR"] = {"bonus"}, |
28 ["UPDATE_VEHICLE_ACTIONBAR"] = {"vehicle"}, | 28 ["UPDATE_VEHICLE_ACTIONBAR"] = {"vehicle"}, |