comparison KeyButton.lua @ 81:9a206b105ea5 v7.2.0

- Fixed profession spells not being detected on load-in - 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 Nenue
date Mon, 17 Apr 2017 13:27:34 -0400
parents b9a53385462c
children 1605319122ce
comparison
equal deleted inserted replaced
80:b9a53385462c 81:9a206b105ea5
46 [4] = 7, 46 [4] = 7,
47 [5] = 9, 47 [5] = 9,
48 [6] = 5 48 [6] = 5
49 } 49 }
50 50
51 -- Spell replacements that can't be easily detected
52 local TALENT_SPELLS = {
53 -- Shimmer
54 [212653] = {
55 actionName = 'Blink',
56 actionID = 1953,
57 },
58 -- Sidewinders; have to assume arcane sadly
59 [214579] = {
60 actionName = 'Arcane Shot',
61 actionID = 185358,
62 },
63 -- Serenity
64 [152173] = {
65 actionName = 'Storm, Earth, and Fire',
66 actionID = 137639
67 }
68 }
69
51 70
52 -- This is needed to identify a spells that aren't reflected by GetCursorInfo() 71 -- This is needed to identify a spells that aren't reflected by GetCursorInfo()
53 kb.OnPickupPetAction = function(slot, ...) 72 kb.OnPickupPetAction = function(slot, ...)
54 local isPickup = GetCursorInfo() 73 local isPickup = GetCursorInfo()
55 print(slot, ...) 74 print(slot, ...)
353 end 372 end
354 373
355 374
356 if self.dynamicType == 'profession' then 375 if self.dynamicType == 'profession' then
357 if self.isAvailable then 376 if self.isAvailable then
358 self.statusText = '|cFFFFFF00Profession|r' 377 self.statusText = '|cFFFFFF00Profession Slot|r ' .. tostring(self.dynamicIndex) .. '-' .. tostring(self.dynamicSubIndex)
359 else 378 else
360 379
361 self.statusText = '|cFFFF4400'..PROFESSION_HEADERS[self.dynamicIndex]..'|r' 380 self.statusText = '|cFFFF4400'..PROFESSION_HEADERS[self.dynamicIndex]..'|r'
362 self.actionName = '(#'..self.dynamicIndex..')' 381 self.actionName = '(#'..self.dynamicIndex..')'
363 end 382 end