comparison BuffFrame/Constants.lua @ 51:4586229986e6

disambiguate local module names
author Nenue
date Fri, 29 Apr 2016 10:52:57 -0400
parents
children 07ef62fe201f
comparison
equal deleted inserted replaced
50:d7655c4e6e06 51:4586229986e6
1 --- ${PACKAGE_NAME}
2 -- @file-author@
3 -- @project-revision@ @project-hash@
4 -- @file-revision@ @file-hash@
5 -- Created: 3/22/2016 3:14 PM
6 local _, A = ...
7 local B = A.frame
8 local Aura = B:RegisterModule('BuffFrame')
9 -----------------------
10 -- Buff frames metadata
11 -----------------------
12 local legendAlpha = 0.5
13 Aura.guides = {}
14 Aura.decors = {}
15 Aura.anchors = {}
16 Aura.drawn = {}
17 Aura.positioned = {}
18
19 Aura.displays = {}
20 Aura.displays.BuffButton = {
21 legendColor = {0, 1, 0, legendAlpha},
22 maxIcons = BUFF_MAX_DISPLAY,
23 actualIcons = function () return _G.BUFF_ACTUAL_DISPLAY end,
24 buffName = 'BuffButton',
25 drawCount = {},
26 filters = 'HELPFUL',
27 anchorTemplate = 'VeneerAnchorTemplate',
28 }
29 Aura.displays.DebuffButton = {
30 legendColor = {1, 0, 0, legendAlpha},
31 maxIcons = DEBUFF_MAX_DISPLAY,
32 actualIcons = function () return _G.DEBUFF_ACTUAL_DISPLAY end,
33 buffName = 'DebuffButton',
34 drawCount = {},
35 filters = 'HARMFUL',
36 anchorTemplate = 'VeneerAnchorTemplate',
37 }
38 Aura.displays.TempEnchant = {
39 legendColor = {1, 0, 0.5, legendAlpha},
40 maxIcons = NUM_TEMP_ENCHANT_FRAMES,
41 actualIcons = function () return BuffFrame.numEnchants end,
42 buffName = 'TempEnchant',
43 drawCount = {},
44 anchorTemplate = 'VeneerAnchorTemplate',
45 }
46 Aura.displays.ConsolidatedBuff = {
47 legendColor = {0.5, 0.5, 0.5, legendAlpha},
48 maxIcons = 9,
49 actualIcons = function() return select(2, GetRaidBuffInfo()) end,
50 buffName = 'ConsolidatedBuff',
51 anchorTemplate = 'VeneerConsolidatedBuffsAnchor',
52 buffTemplate = 'VeneerRaidBuffTemplate',
53 drawCount = {},
54 filters = 'HELPFUL',
55 }
56
57 -----------------------
58 -- RaidBuff visual args
59 -----------------------
60 Aura.BuffStyles = {
61 ["active"] = {
62 SetDesaturated = false,
63 Color = {1, 1, 1, 1},
64 SetBlendMode = 'BLEND',
65 TextColor = {1,1,1,1},
66 },
67 ["missing"] = {
68 SetDesaturated = false,
69 Color = {1, 0, 0, 0.5},
70 SetBlendMode = 'ADD',
71 TextColor = {1,0,0,1},
72 },
73 ["available"] = {
74 SetDesaturated = true,
75 Color = {0.35, 1, 0.35, 0.5},
76 SetBlendMode = 'ADD',
77 TextColor = {1, 1, 0, 1},
78 },
79 }
80
81 --- RaidBuff availability criteria
82 -- @field spellID - UnitAura() == true
83 -- @field spec - test for spec choice
84 -- @field auraType - UnitAura() == true, and no other tests of the same value have returned true prior
85 -- @field talent - test for talent selection
86 -- @field petFamily - test pet family
87 -- @field [true] - passive group aura
88 Aura.ClassRaidBuffs = {
89 -- stats
90 [1] = {
91 ['HUNTER'] = {
92 {talent = {155228}, spellID = 160206, spellName = 'Lone Wolf: Power of the Primates', auraType = 'lonewolf'},
93 {petFamily = 'Dog'}, -- active pet family
94 {petFamily = 'Gorilla'},
95 {petFamily = 'Shale Spider'},
96 {petFamily = 'Worm'},
97 },
98 ['DRUID'] = {
99 {spellID = 1126, spellName = 'Mark of the Wild'},
100 },
101 ['MONK'] = {
102 {spellID = 115921, spellName = 'Legacy of the Emperor'},
103 {spellID = 116781, spellName = 'Legacy of the White Tiger'} -- windwalker, replaces emperor internally
104 },
105 ['PALADIN'] = {spellID = 20217, spellName = 'Blessing of Kings', auraType = 'blessing'},
106 },
107
108 -- stamina
109 [2] = {
110 ['HUNTER'] = {
111 {talent = {155228}, spellID = 160199, spellName = 'Lone Wolf: Fortitude of the Bear', auraType = 'lonewolf'},
112 {petFamily = 'Bear'}, -- active pet family
113 {petFamily = 'Goat'},
114 {petFamily = 'Rylak'},
115 {petFamily = 'Silithid'},
116 },
117 ['PRIEST'] = {
118 {spellID = 21562, 'Power Word: Fortitude'}
119 },
120 ['WARRIOR'] = {
121 {spellID = 469, spellName = 'Commanding Shout', auraType = 'shout'}
122 },
123 ['WARLOCK'] = {
124 {true}
125 }
126 },
127
128 -- attack power
129 [3] = {
130 ['HUNTER'] = {
131 {true},
132 },
133 ['DEATHKNIGHT'] = {
134 {spec = 2},
135 {spec = 3},
136 },
137 ['WARRIOR'] = {
138 {spellName = 'Battle Shout', auraType = 'shout'}
139 }
140 },
141
142 -- HASTE
143 [4] = {
144 ['HUNTER'] = {
145 {talent = {155228}, spellID = 160203, spellName = 'Lone Wolf: Haste of the Hyena', auraType = 'lonewolf'},
146 {petFamily = 'Hyena'}, -- active pet family
147 {petFamily = 'Sporebat'},
148 {petFamily = 'Rylak'},
149 {petFamily = 'Wasp'},
150 },
151 ['DEATHKNIGHT'] = {
152 {spec = 2}, -- unholy aura
153 {spec = 3},
154 },
155 ['PRIEST'] = {
156 {spec = 3}, -- mind quickening
157 },
158 ['ROGUE'] = {
159 true -- swiftblade's
160 },
161 ['SHAMAN'] = {
162 true -- grace of air
163 },
164 },
165
166 -- SPELL POWER
167 [5] = {
168 ['HUNTER'] = {
169 {talent = {155228}, spellID = 160205, spellName = 'Lone Wolf: Wisdom of the Serpent', auraType = 'lonewolf'},
170 {petFamily = 'Waterstrider'}, -- active pet family
171 {petFamily = 'Serpent'},
172 {petFamily = 'Silithid'},
173 },
174 ['MAGE'] = {
175 {spellID = 1459, spellName = 'Arcane Brilliance'}, -- arcane brilliance
176 {spellID = 61316, spellName = 'Dalaran Brilliance'}, -- dalaran brilliance
177 },
178 ['WARLOCK'] = {
179 {spellID = 109773,spellName = 'Dark Intent' }
180 },
181 },
182
183 -- CRITICAL STRIKE
184 [6] = {
185 ['HUNTER'] = {
186 {talent = {155228}, spellID = 160200, spellName = 'Lone Wolf: Ferocity of the Raptor', auraType = 'lonewolf'},
187 {petFamily = 'Devilsaur'}, -- active pet family
188 {petFamily = 'Quilen'},
189 {petFamily = 'Raptor'},
190 {petFamily = 'Shale Spider'},
191 {petFamily = 'Waterstrider'},
192 {petFamily = 'Wolf'},
193 },
194 ['DRUID'] = {
195 {spec = 2, spellID = 17007, auraType = 'druidform'}
196 },
197 ['MAGE'] = {
198 {spellID = 1459, spellName = 'Arcane Brilliance'}, -- arcane brilliance
199 {spellID = 61316, spellName = 'Dalaran Brilliance'}, -- dalaran brilliance
200 },
201 ['MONK'] = {
202 {spellID = 116781, spellName = 'Legacy of the White Tiger', spec = 2} -- windwalker
203 }
204 },
205
206 -- MASTERY
207 [7] = {
208 ['HUNTER'] = {
209 {talent = {155228}, spellID = 160198, spellName = 'Lone Wolf: Grace of the Cat', auraType = 'lonewolf'},
210 {petFamily = 'Cat'}, -- active pet family
211 {petFamily = 'Hydra'},
212 {petFamily = 'Spirit Beast'},
213 {petFamily = 'Tallstrider'},
214 },
215 ['DEATHKNIGHT'] = {
216 {spec = 1}
217 },
218 ['DRUID'] = {
219 {spec = 1, spellID = 24907, auraType = 'druidform'},
220 },
221 ['PALADIN'] = {
222 {spec = 1, spellID = 19740, spellName = 'Blessing of Might', auraType = 'blessing'}
223 },
224 ['SHAMAN'] = {true},
225 },
226
227 -- MULTISTRIKE
228 [8] = {
229 ['HUNTER'] = {
230 {talent = {155228}, spellID = 172968, spellName = 'Lone Wolf: Quickness of the Dragonhawk', auraType = 'lonewolf'},
231 {petFamily = 'Bat'}, -- active pet family
232 {petFamily = 'Clefthoof'},
233 {petFamily = 'Corehound'},
234 {petFamily = 'Dragonhawk'},
235 {petFamily = 'Wind Serpent'},
236 },
237 ['MONK'] = {
238 {spec = 2 }
239 }, -- Windflurry,
240 ['PRIEST'] = {
241 {spec = 3 }
242 }, -- quickening,
243 ['ROGUE'] = {true}, -- swiftblade's
244 ['WARLOCK'] = {
245 {spellID = 109773,spellName = 'Dark Intent' }
246 },
247 },
248
249 -- VERSATILITY
250 [9] = {
251 ['HUNTER'] = {
252 {talent = {155228}, spellID = 172967, spellName = 'Lone Wolf: Versatility of the Ravager', auraType = 'lonewolf'},
253 {petFamily = 'Ravager'}, -- active pet family
254 {petFamily = 'Boar'},
255 {petFamily = 'Porcupine'},
256 {petFamily = 'Clefthoof'},
257 {petFamily = 'Stag'},
258 {petFamily = 'Worm'},
259 {petFamily = 'Bird of Prey'},
260 },
261 ['DEATH KNIGHT'] = {
262 {spec = 2}, -- unholy aura
263 {spec = 3},
264 },
265 ['DRUID'] = {
266 {spellID = 1126, spellName = 'Mark of the Wild'},
267 },
268 ['PALADIN'] = {
269 {spec = 2}, -- retribution
270 },
271 ['WARRIOR'] = {
272 {spec = 2}, -- arms or fury
273 {spec = 3},
274 },
275 }
276 }
277
278 -------------------------
279 -- Default config values
280 -------------------------
281 Aura.defaults = {
282 -- defaulted to on for first-time setup
283 ConfigMode = true,
284 GuidesMode = true,
285
286 BuffButtonAnchor = {'TOPRIGHT', 'UIParent', 'TOPRIGHT', -300, -5},
287 BuffButtonMax = 24,
288 BuffButtonPerRow = 10,
289 BuffButtonSize = 50,
290 BuffButtonSpacing = 4,
291 BuffButtonZoom = 15,
292 BuffButtonVertexColor = {},
293 BuffButtonPoint = {'TOPRIGHT', 'TOPRIGHT'},
294 BuffButtonDurationSize = 16,
295 BuffButtonDurationPoint = {'BOTTOM', 'BOTTOM', 0, -1},
296 BuffButtonCountSize = 18,
297 BuffButtonCountPoint = {'TOPRIGHT', 'TOPRIGHT', -3, -3},
298 BuffButtonRelativeX = -1,
299 BuffButtonRelativeY = -1,
300
301 BuffButtonColor = {1, 1, 1, 1},
302 BuffButtonPlayerColor = {1,1,1,1},
303 BuffButtonRaidColor = {0.25,1,0.25,1},
304 BuffButtonBossColor = {1,0.5,0,1},
305 BuffButtonBorder = 1,
306
307 BuffButtonWarningFade = true,
308 BuffButtonShowSelfCast = true,
309
310 DebuffButtonAnchor = {'TOPRIGHT', 'UIParent', 'TOPRIGHT', -300, -200},
311 DebuffButtonMax = 12,
312 DebuffButtonPerRow = 10,
313 DebuffButtonSize = 50,
314 DebuffButtonSpacing = 4,
315 DebuffButtonDurationSize = 16,
316 DebuffButtonZoom = 15,
317 DebuffButtonVertexColor = {},
318 DebuffButtonPoint = {'TOPRIGHT','TOPRIGHT'},
319 DebuffButtonRelativeX = -1,
320 DebuffButtonRelativeY = -1,
321
322
323 TempEnchantAnchor = {'TOPRIGHT', 'UIParent', 'TOPRIGHT', -200, -300},
324 TempEnchantMax = 2,
325 TempEnchantPerRow = 10,
326 TempEnchantSize = 50,
327 TempEnchantSpacing = 4,
328 TempEnchantDurationSize = 16,
329 TempEnchantZoom = 15,
330 TempEnchantVertexColor = {},
331 TempEnchantPoint = {'TOPRIGHT', 'TOPRIGHT'},
332 TempEnchantRelativeX = -1,
333 TempEnchantRelativeY = -1,
334 TempEnchantColor = {1,0,0.5,1},
335
336 ConsolidatedBuffAnchor = {'TOPRIGHT', 'UIParent', 'TOPRIGHT', 0, 0},
337 ConsolidatedBuffIcon = false,
338 ConsolidatedBuffMax = 9,
339 ConsolidatedBuffSize = 16,
340 ConsolidatedBuffParent = 'BuffButton',
341 ConsolidatedBuffPosition = 1,
342 ConsolidatedBuffSpacing = 1,
343 ConsolidatedBuffBorder = 0,
344 ConsolidatedBuffPerRow = 3,
345 ConsolidatedBuffPoint = {'TOPRIGHT', 'TOPRIGHT'},
346 ConsolidatedBuffRelativeX = -1,
347 ConsolidatedBuffRelativeY = -1,
348 ConsolidatedBuffDurationSize = 0,
349 ConsolidatedBuffDurationPoint = {'BOTTOM', 'BOTTOM', 0, 0},
350 ConsolidatedBuffCountPoint = {'BOTTOM', 'BOTTOM', 0, 0},
351
352 RaidShowMissing = true,
353
354 }