Mercurial > wow > skeletonkey
comparison BindingsFrame.lua @ 80:b9a53385462c
- Fixed Demon Hunter Vengeance bindings, along with other spells that are replaced by specialization variants.
- Spells replaced by a specialization now display the replacing name along with the original name in their binding slot.
| author | Nick@Zahhak |
|---|---|
| date | Tue, 21 Mar 2017 02:23:23 -0400 |
| parents | d4c100b0fd01 |
| children |
comparison
equal
deleted
inserted
replaced
| 79:ac9e48125660 | 80:b9a53385462c |
|---|---|
| 506 function SystemBindingsPanel:Update(force) | 506 function SystemBindingsPanel:Update(force) |
| 507 end | 507 end |
| 508 | 508 |
| 509 --- Associate processed input with the given slot's metadata | 509 --- Associate processed input with the given slot's metadata |
| 510 function skb:SaveSlot (key) | 510 function skb:SaveSlot (key) |
| 511 | 511 print('SaveSlot()', key) |
| 512 if not self.command then | 512 if not self.command then |
| 513 return | 513 return |
| 514 end | 514 end |
| 515 if InCombatLockdown() then | 515 if InCombatLockdown() then |
| 516 kb:print(L('Bindings cannot be changed during combat.')) | 516 kb:print(L('Bindings cannot be changed during combat.')) |
| 562 if self.isAvailable then | 562 if self.isAvailable then |
| 563 print('Binding available spell', binding, self.command) | 563 print('Binding available spell', binding, self.command) |
| 564 SetBinding(binding, self.command) | 564 SetBinding(binding, self.command) |
| 565 SaveBindings(GetCurrentBindingSet()) | 565 SaveBindings(GetCurrentBindingSet()) |
| 566 self.assignedKeys = {GetBindingKey(self.command) } | 566 self.assignedKeys = {GetBindingKey(self.command) } |
| 567 print(' new assigns:', unpack(self.assignedKeys)) | |
| 567 kb.UpdateBindingsCache(self.actionType, self.actionID, self.assignedKeys) | 568 kb.UpdateBindingsCache(self.actionType, self.actionID, self.assignedKeys) |
| 568 kb:print(L('BINDING_ASSIGNED', binding, self.actionName, kb.currentHeader)) | 569 kb:print(L('BINDING_ASSIGNED', binding, self.actionName, kb.currentHeader)) |
| 569 else | 570 else |
| 570 kb:print(L('UNSELECTED_TALENT_ASSIGNED', binding, self.actionName, kb.currentHeader)) | 571 kb:print(L('UNSELECTED_TALENT_ASSIGNED', binding, self.actionName, kb.currentHeader)) |
| 571 end | 572 end |
