Mercurial > wow > skeletonkey
comparison SkeletonKey/BindingsFrame.lua @ 30:b0e4d04d428a
- use a fixed loop to parse GetProfessions() result so unlearned secondaries don't break the cache
- removed a bad varaible reference that was causing confirmation popup to barf
author | Nenue |
---|---|
date | Fri, 05 Aug 2016 19:41:18 -0400 |
parents | 73df13211b22 |
children | daff39af0c6d |
comparison
equal
deleted
inserted
replaced
29:bb160c04de88 | 30:b0e4d04d428a |
---|---|
67 local cursorType = GetCursorInfo() | 67 local cursorType = GetCursorInfo() |
68 if click == 'LeftButton' then | 68 if click == 'LeftButton' then |
69 if cursorType then | 69 if cursorType then |
70 kb.DropToSlot(self) | 70 kb.DropToSlot(self) |
71 else | 71 else |
72 if IsShiftKeyDown() then | 72 if self.command and self.isAvailable then |
73 kb.db.stickyMode = true | 73 if IsShiftKeyDown() then |
74 KeyBinderStickyMode:SetChecked(true) | 74 kb.db.stickyMode = true |
75 KeyBinderStickyMode:SetChecked(true) | |
76 end | |
77 | |
78 kb.ActivateSlot(self) | |
79 kb.ui() | |
75 end | 80 end |
76 | 81 |
77 kb.ActivateSlot(self) | |
78 kb.ui() | |
79 end | 82 end |
80 elseif click == 'RightButton' then | 83 elseif click == 'RightButton' then |
81 kb.ReleaseSlot(self) | 84 kb.ReleaseSlot(self) |
82 end | 85 end |
83 end | 86 end |
444 kb.talentsPushed = nil | 447 kb.talentsPushed = nil |
445 end | 448 end |
446 | 449 |
447 kb.AcceptAssignment = function(self, ...) | 450 kb.AcceptAssignment = function(self, ...) |
448 local popup = StaticPopupDialogs["SKELETONKEY_CONFIRM_ASSIGN_SLOT"] | 451 local popup = StaticPopupDialogs["SKELETONKEY_CONFIRM_ASSIGN_SLOT"] |
449 local source = loadedProfiles[popup.oldProfile] | 452 local source = kb. loadedProfiles[popup.oldProfile] |
450 kb.SetSlot(popup.slot, unpack(popup.args)) | 453 kb.SetSlot(popup.slot, unpack(popup.args)) |
451 kb.UpdateSlot(popup.slot) | 454 kb.UpdateSlot(popup.slot) |
452 kb:SetScript('OnMouseWheel', KeyBinder_OnMouseWheel) -- re-enable scrolling | 455 kb:SetScript('OnMouseWheel', KeyBinder_OnMouseWheel) -- re-enable scrolling |
453 ClearCursor() | 456 ClearCursor() |
454 ResetCursor() | 457 ResetCursor() |