Mercurial > wow > skeletonkey
comparison SkeletonKey/KeyButton.lua @ 50:1aba8a6fd4a9
- fix kb.bindings content and define a generic function for constructing its keystrings
- handle hotkey text for actions placed in multiple slots
-- hotkey.actionbar generates a cache table for use during binding changes
author | Nenue |
---|---|
date | Fri, 19 Aug 2016 01:12:56 -0400 |
parents | 9a9d7f2a7c07 |
children | 81a7c71c4483 |
comparison
equal
deleted
inserted
replaced
49:9a9d7f2a7c07 | 50:1aba8a6fd4a9 |
---|---|
218 kb.currentProfile.bindings[key] = nil | 218 kb.currentProfile.bindings[key] = nil |
219 end | 219 end |
220 if kb.currentProfile.talents[self.actionName] then | 220 if kb.currentProfile.talents[self.actionName] then |
221 kb.currentProfile.talents[self.actionName] = nil | 221 kb.currentProfile.talents[self.actionName] = nil |
222 end | 222 end |
223 kb.bindings[self.actionType][self.actionID] = nil | 223 |
224 kb.bindings[tostring(self.actionType)..'_'..tostring(self.actionID)] = nil | |
224 end | 225 end |
225 if kb.currentProfile.bound[self.command] then | 226 if kb.currentProfile.bound[self.command] then |
226 kb.currentProfile.bound[self.command] = nil | 227 kb.currentProfile.bound[self.command] = nil |
227 --kb:print(BINDING_REMOVED:format(self.actionName, configHeaders[db.bindMode])) | 228 --kb:print(BINDING_REMOVED:format(self.actionName, configHeaders[db.bindMode])) |
228 end | 229 end |