Mercurial > wow > skeletonkey
comparison KeyButton.lua @ 83:1605319122ce
- Added a list of special-cases for replaced abilities that can't be detected internally (Carve, Blink, etc.)
| author | Nenue |
|---|---|
| date | Sun, 28 May 2017 12:45:32 -0400 |
| parents | 9a206b105ea5 |
| children | 1407e3a2cd1f |
comparison
equal
deleted
inserted
replaced
| 82:cc082ee22c4c | 83:1605319122ce |
|---|---|
| 52 local TALENT_SPELLS = { | 52 local TALENT_SPELLS = { |
| 53 -- Shimmer | 53 -- Shimmer |
| 54 [212653] = { | 54 [212653] = { |
| 55 actionName = 'Blink', | 55 actionName = 'Blink', |
| 56 actionID = 1953, | 56 actionID = 1953, |
| 57 icon = [[Interface\\ICONS\\spell_arcane_blink]] | |
| 57 }, | 58 }, |
| 58 -- Sidewinders; have to assume arcane sadly | 59 -- Sidewinders; have to assume arcane sadly |
| 59 [214579] = { | 60 [214579] = { |
| 60 actionName = 'Arcane Shot', | 61 actionName = 'Arcane Shot', |
| 61 actionID = 185358, | 62 actionID = 185358, |
| 63 icon = [[Interface\\ICONS\\ability_impalingbolt]] | |
| 62 }, | 64 }, |
| 63 -- Serenity | 65 -- Serenity |
| 64 [152173] = { | 66 [152173] = { |
| 65 actionName = 'Storm, Earth, and Fire', | 67 actionName = 'Storm, Earth, and Fire', |
| 66 actionID = 137639 | 68 actionID = 137639, |
| 69 icon = [[Interface\\ICONS\\spell_nature_giftofthewild]] | |
| 70 }, | |
| 71 -- Carve | |
| 72 [212436] = { | |
| 73 actionName = 'Carve', | |
| 74 actionID = 187708, | |
| 75 icon = [[Interface\\ICONS\\ability_hunter_carve]] | |
| 67 } | 76 } |
| 68 } | 77 } |
| 69 | 78 |
| 70 | 79 |
| 71 -- This is needed to identify a spells that aren't reflected by GetCursorInfo() | 80 -- This is needed to identify a spells that aren't reflected by GetCursorInfo() |
| 194 local pickupID, pickupBook | 203 local pickupID, pickupBook |
| 195 | 204 |
| 196 if actionType == 'spell' then | 205 if actionType == 'spell' then |
| 197 local realName = GetSpellInfo(subData) | 206 local realName = GetSpellInfo(subData) |
| 198 name, _, icon, _, _, _, actionID = GetSpellInfo(subData) | 207 name, _, icon, _, _, _, actionID = GetSpellInfo(subData) |
| 208 | |
| 209 if TALENT_SPELLS[actionID] then | |
| 210 name = TALENT_SPELLS[actionID].actionName | |
| 211 actionID = TALENT_SPELLS[actionID].actionID | |
| 212 icon = TALENT_SPELLS[actionID].icon | |
| 199 elseif actionType == 'macro' then | 213 elseif actionType == 'macro' then |
| 200 name, icon, macroText = GetMacroInfo(actionID) | 214 name, icon, macroText = GetMacroInfo(actionID) |
| 201 macroName = name | 215 macroName = name |
| 202 elseif actionType == 'petaction' then | 216 elseif actionType == 'petaction' then |
| 203 if CURSOR_SPELLSLOT and CURSOR_BOOKTYPE then | 217 if CURSOR_SPELLSLOT and CURSOR_BOOKTYPE then |
