Mercurial > wow > turok
comparison Turok/Modules/Timer/Presets.lua @ 6:a9b8b0866ece
clear out log jam
author | Nenue |
---|---|
date | Sun, 21 Feb 2016 08:32:53 -0500 |
parents | |
children | 9400a0ff8540 |
comparison
equal
deleted
inserted
replaced
5:8a9a6637f082 | 6:a9b8b0866ece |
---|---|
1 local ADDON, Tk = ... | |
2 local T = Tk.Addon | |
3 local mod, tinsert, ipairs, pairs = T.modules.TimerControl, tinsert, ipairs, pairs | |
4 local print = function(...) print('TimerPresets', ...) end | |
5 | |
6 | |
7 | |
8 --- Timer config presets | |
9 mod.AddTimer = function(batch, container) | |
10 if container then | |
11 Turok.defaults.spirit.containers[container] = {} | |
12 end | |
13 | |
14 for i, entry in ipairs(batch) do | |
15 print(cPink('AddTimer(#=')..cWord(#batch)..cPink(', ')..cWord(container)..cPink(')')) | |
16 if container then | |
17 entry.container = container | |
18 print(' container set to', container) | |
19 end | |
20 print(' unpacking', entry.name) | |
21 tinsert(Turok.defaults.spirit.timers, entry) | |
22 end | |
23 end | |
24 local tp = mod.index.preset | |
25 | |
26 mod.LoadPresets = function() | |
27 for setName, setFunc in pairs(tp) do | |
28 setFunc() | |
29 end | |
30 end | |
31 | |
32 tp.Containers = function() | |
33 local defs = { | |
34 anchor = 'TOPLEFT', parent = 'TekplayerCastBar', anchorTo = 'BOTTOMLEFT', x = 0, y = -3, width = 700, | |
35 height = 200, | |
36 spacing = 3, | |
37 padding = 0, | |
38 ["default"] = { | |
39 name = "Default", | |
40 childAnchor = 'TOPLEFT', | |
41 childAnchorTo = 'TOPLEFT', | |
42 }, | |
43 ["DoTs"] = { | |
44 anchor ='BOTTOM', anchorTo='TOP', | |
45 parent='TekplayerCastBar', | |
46 display = 'icon', | |
47 size = 48, | |
48 height = 48, width = 48, | |
49 x = 0, y = 16, | |
50 padding = 0, | |
51 spacing = 0, | |
52 childAnchor = 'BOTTOMLEFT', | |
53 childAnchorTo = 'BOTTOMLEFT', | |
54 } | |
55 } | |
56 for k,v in pairs(defs) do | |
57 TurokData.spirit.containers[k] = v | |
58 end | |
59 end | |
60 | |
61 tp.Rogue = function() | |
62 mod.AddTimer( | |
63 { | |
64 { | |
65 name = "Vendetta", | |
66 type = 'cooldown', | |
67 display = 'icon', | |
68 unit = 'player', | |
69 spellID = 79140, | |
70 playerClass = 'ROGUE', | |
71 specPage = 1, | |
72 }, | |
73 { | |
74 name = "Burst of Speed", | |
75 type = 'cooldown', | |
76 display = 'icon', | |
77 unit = 'player', | |
78 spellID = 108212, | |
79 playerClass = 'ROGUE' | |
80 }, | |
81 { | |
82 name = "Rupture", | |
83 type = 'aura', | |
84 display = 'icon', | |
85 unit = 'target', | |
86 spellID = 1943, | |
87 filters = 'PLAYER|HARMFUL', | |
88 playerClass = 'ROGUE', | |
89 specPage = {1,3}, | |
90 }, | |
91 { | |
92 name = "Slice and Dice", | |
93 type = 'aura', | |
94 display = 'icon', | |
95 spellID = 5171, | |
96 unit = 'player', | |
97 filters = 'PLAYER|HELPFUL', | |
98 playerClass = 'ROGUE', | |
99 specPage = {2,3}, | |
100 }, | |
101 { | |
102 name = "Deadly Missing", | |
103 type = 'aura', | |
104 spellID = 2823, | |
105 display = 'icon', | |
106 unit = 'player', | |
107 playerClass = 'ROGUE', | |
108 specPage = {1,3}, | |
109 inverse = true, | |
110 }, | |
111 { | |
112 name = "Stealth", | |
113 type ='aura', | |
114 spellID = 1784, | |
115 display = 'icon', | |
116 unit = 'player', | |
117 playerClass = 'ROGUE', | |
118 }, | |
119 { | |
120 name = "Recuperate", | |
121 type ='aura', | |
122 spellID = 73651, | |
123 display = 'icon', | |
124 unit = 'player', | |
125 playerClass = 'ROGUE', | |
126 }, | |
127 }) | |
128 end | |
129 tp.Mage = function() | |
130 mod.AddTimer({ | |
131 { | |
132 name = "Rune of Power", | |
133 type = 'aura', | |
134 spellID = 116014, | |
135 unit = 'player', | |
136 display = 'icon', | |
137 playerClass = 'MAGE', | |
138 talentID = 16032, | |
139 }, | |
140 { | |
141 name = "Mage Nova", | |
142 spellID = {157980, 157981, 157997}, | |
143 talentOffset = {5, 3}, | |
144 unit = 'player', | |
145 type='cooldown', | |
146 display='icon', | |
147 playerClass='MAGE', | |
148 persist = true, | |
149 }, | |
150 { | |
151 name = "Mage Bomb", | |
152 talentOffset = {5, 1}, | |
153 unit = 'target', | |
154 type= 'aura', | |
155 display='icon', | |
156 filters = 'HARMFUL|PLAYER', | |
157 playerClass='MAGE', | |
158 persist = true, | |
159 }, | |
160 { | |
161 name = "Frozen Orb", | |
162 spellID = 84714, | |
163 threschold = 2, | |
164 unit = 'player', | |
165 type='cooldown', | |
166 display='icon', | |
167 playerClass='MAGE', | |
168 specPage=3, | |
169 }, | |
170 { | |
171 name = 'Arcane Power', | |
172 type = 'cooldown', | |
173 display = 'icon', | |
174 unit = 'player', | |
175 spellID = 12042, | |
176 playerClass = 'MAGE', | |
177 specPage = 1, | |
178 } | |
179 }) | |
180 end | |
181 tp.UseEffects = function() | |
182 mod.AddTimer({ | |
183 | |
184 { | |
185 name = "Trinket 1", | |
186 type ='cooldown', display = 'icon', | |
187 unit = 'player', | |
188 persist = true, | |
189 inventoryID = 13, | |
190 }, | |
191 { | |
192 name = "Maalus Effect", -- Maalus | |
193 playerClass = {'HUNTER', 'ROGUE'}, | |
194 type = 'aura', display = 'progressbar', | |
195 unit = 'player', filters = 'HELPFUL', | |
196 leftText = "%c", rightText= "%p", | |
197 duration = 15, | |
198 spellID = 187615, itemID = 124636, hideIcon = true, | |
199 | |
200 sound_active = [[Interface\Addons\Turok\Media\sound\FLASH.mp3]], | |
201 | |
202 absolute = true, x = 0, y = -10, width = 300, height = 10, | |
203 anchor = 'BOTTOMLEFT', anchorTo = 'BOTTOMLEFT', | |
204 parent = 'TekplayerCastBar', padding = 0, spacing = 0, | |
205 | |
206 foreground_inset = 0, foreground_color = {1,1,1,1}, foreground_blend = 'ADD', | |
207 background_color = {0,0,0,0}, | |
208 icon = false, | |
209 }, | |
210 | |
211 { | |
212 name = "Maalus CD", | |
213 type = 'cooldown', display = 'icon', | |
214 unit = 'player', | |
215 spellID = 187615, itemID = 124636, | |
216 playerClass = 'HUNTER', | |
217 }, | |
218 }) | |
219 end | |
220 | |
221 tp.Hunter = function() | |
222 mod.AddTimer({ | |
223 ---- Icon templates | |
224 { virtual = true, name = "Hunter", | |
225 playerClass = 'HUNTER', unit = 'player', container = 'default', display= 'icon', }, | |
226 { virtual = true, name = "HunterSticky", inherits = "Hunter", | |
227 showAura = true, persist = true, }, | |
228 { virtual = true, name = "HunterBar", | |
229 playerClass = 'HUNTER', unit = 'player', }, | |
230 ---- Talents | |
231 { | |
232 inherits= "HunterSticky", | |
233 name = "Heavy Artillery", type = 'cooldown', | |
234 talentRow = 6, | |
235 trace = true}, | |
236 { | |
237 inherits= "HunterSticky", | |
238 name = "Animal Power", type = 'cooldown', | |
239 talentRow = 5, | |
240 trace = true}, | |
241 --- Spells | |
242 { | |
243 inherits = 'Hunter', name = "Camouflage", | |
244 type = 'cooldown', display = 'icon', | |
245 spellID = 51753, }, | |
246 { | |
247 inherits = 'Hunter', name = "Ice Trap", | |
248 type = 'cooldown', display = 'icon', | |
249 spellID = 13809, }, | |
250 { | |
251 inherits = 'Hunter', name = "Concussive Shot", | |
252 type = 'cooldown', display = 'icon', | |
253 spellID = 5116, }, | |
254 { | |
255 inherits = 'Hunter', name = "Flare", | |
256 type = 'cooldown', display = 'icon', | |
257 spellID = 1543, }, | |
258 { | |
259 inherits = 'Hunter', name = "Disengage", | |
260 type = 'cooldown', display = 'icon', | |
261 spellID = 781, }, | |
262 { | |
263 inherits = "HunterSticky", name = "Rapid Fire", | |
264 type = 'cooldown', display = 'icon', | |
265 spellID = 3045, specPage = 2, }, | |
266 { | |
267 inherits = 'HunterSticky', name = "Bestial Wrath", | |
268 type = 'cooldown', display = 'icon', | |
269 spellID = 19574, specPage = 1, | |
270 trace = true | |
271 }, | |
272 | |
273 --- Progress Bars | |
274 { | |
275 inherits = 'HunterBar', name = "Chimaera Shot", | |
276 type = 'cooldown', display = 'progressbar', | |
277 spellID = 53209, specPage = 2, persist = true, | |
278 | |
279 hideIcon = true, | |
280 leftText = "", rightText = "%p", | |
281 width = 300, height = 8,padding = 0, spacing = 0, | |
282 absolute = true, x = 0, y = 0, anchor = 'TOPLEFT', anchorTo = 'TOPLEFT', parent = 'TekplayerCastBar', strata='MEDIUM', | |
283 foreground_color = {1,.125,0.43,1}, foreground_blend = 'ADD', foreground_inset = 0, | |
284 background_color = {.5,.5,.5,0}, background_blend = 'BLEND', | |
285 }, | |
286 { | |
287 inherits = 'HunterBar', name = "Sniper Training (duration)", | |
288 type = 'aura', display = 'progressbar', | |
289 spellID = 168811, specPage = 2, | |
290 | |
291 hideIcon = true, | |
292 leftText = "", rightText= "", | |
293 width= 330, height = 12, padding = 0, | |
294 absolute = true, x = 0, y = 0, anchor = 'BOTTOMLEFT', anchorTo = 'BOTTOMLEFT', parent = 'TekplayerCastBar', level = 1, | |
295 foreground_color = {1,0,0,1}, foreground_blend = 'BLEND', | |
296 sound_active = '', sound_hidden = '', sound_passive = '', | |
297 }, | |
298 { | |
299 inherits = 'HunterBar', name = "Sniper Training: Recently Moved", | |
300 type = 'aura', display = 'progressbar', | |
301 spellID = 168809, specPage = 2, | |
302 | |
303 hideIcon = true, | |
304 leftText = "", rightText= "", | |
305 height = 12, width= 160, padding = 0, | |
306 absolute = true, x = 0, y = 0, anchor = 'BOTTOMLEFT', anchorTo = 'BOTTOMLEFT', parent = 'TekplayerCastBar', level = 2, | |
307 foreground_color = {1,1,0,1}, foreground_blend = 'BLEND', | |
308 sound_active = '', sound_hidden = '', sound_passive = '', | |
309 }, | |
310 | |
311 --- Static Warnings | |
312 { | |
313 inherits='Hunter', name = "Aspect of the Pack", | |
314 type = 'aura', display = 'icon', | |
315 spellID = 13159 | |
316 }, | |
317 { | |
318 inherits = 'Hunter', name = "Trap Launcher", | |
319 type = 'aura', display = 'icon', | |
320 spellID = 77769, inverse = true, | |
321 | |
322 absolute = true, x = 0, y = 200, | |
323 width = 100, height = 100, | |
324 foreground_color = {1,1,1, 0.5}, foreground_blend = 'BLEND', | |
325 }, | |
326 }) | |
327 end | |
328 tp.SPriest = function() | |
329 mod.AddTimer( { | |
330 { | |
331 virtual = true, name = "Caster Icon", container = 'DoTs', | |
332 playerClass = 'PRIEST', | |
333 | |
334 combatFade = true, | |
335 height = 48, width = 48, | |
336 icon = { size = 48, }, | |
337 persist = true, | |
338 }, | |
339 { | |
340 inherits = "Caster Icon", name = "Shadowfiend", | |
341 unit = "player", spellID = 132603, | |
342 type = 'cooldown', display = 'icon', | |
343 container ='DoTs', | |
344 }, | |
345 { | |
346 inherits = "Caster Icon", name = "Insanity", | |
347 type = 'aura', display = 'icon', | |
348 unit = 'player', filters = 'PLAYER|HELPFUL', | |
349 spellID = 132573, playerClass = 'PRIEST', | |
350 order = 3, | |
351 }, | |
352 { | |
353 name = "Shadow Word: Pain", | |
354 type = 'aura', display = 'icon', | |
355 unit = 'target', filters = 'PLAYER|HARMFUL', | |
356 spellID = 589, playerClass = 'PRIEST', specPage = 3, | |
357 | |
358 container = 'DoTs', | |
359 order = 1, | |
360 sound_active = '', | |
361 }, | |
362 { | |
363 name = "Mental Fatigue", | |
364 type = 'aura', display = 'icon', | |
365 unit = 'target', filters = 'PLAYER|HARMFUL', | |
366 spellID = 184915, playerClass = 'PRIEST', specPage = 3, | |
367 | |
368 parent = 'TekplayerCastBar', | |
369 container = 'DoTs', | |
370 order = 1, | |
371 sound_active = '', | |
372 }, | |
373 { | |
374 name = "Vampiric Touch", | |
375 container = 'DoTs', | |
376 type = 'aura', display = 'icon', | |
377 unit = 'target', filters = 'PLAYER|HARMFUL', | |
378 spellID = 34914, playerClass = 'PRIEST', specPage = 3, | |
379 order =2, | |
380 }, | |
381 { | |
382 name = "PW:Shield", | |
383 type = 'cooldown', display = 'icon', | |
384 unit = 'player', | |
385 spellID = 17, playerClass = 'PRIEST', | |
386 }, | |
387 { | |
388 name = "Cascade", | |
389 type = 'cooldown', display = 'icon', | |
390 unit = 'player', | |
391 spellID = 127632, talentID = 21718, playerClass = 'PRIEST', | |
392 }, | |
393 }) | |
394 end |