vanilla-wow-addons – Blame information for rev 1
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
1 | office | 1 | |
2 | NURFED_COMBATLOG_VERS = "06.22.2006"; |
||
3 | NURFED_COMBATLOG_DEFAULT = { |
||
4 | You = { (0/255), (192/255), (255/255) }, |
||
5 | Pet = { (0/255), (153/255), (102/255) }, |
||
6 | Party = { (255/255), (153/255), (0/255) }, |
||
7 | Raid = { (251/255), (210/255), (132/255) }, |
||
8 | Enemy = { (255/255), (116/255), (109/255) }, |
||
9 | Target = { (255/255), (116/255), (109/255) }, |
||
10 | Friendly = { (251/255), (210/255), (132/255) }, |
||
11 | [HEALTH] = { (255/255), (0/255), (0/255) }, |
||
12 | [MANA] = { (0/255), (255/255), (255/255) }, |
||
13 | [RAGE] = { 1, 0, 0 }, |
||
14 | [ENERGY] = { 1, 1, 0 }, |
||
15 | [HAPPINESS] = { 1, 0.5, 0.25 }, |
||
16 | [SPELL_SCHOOL0_CAP] = { (255/255), (255/255), (150/255) }, |
||
17 | [SPELL_SCHOOL1_CAP] = { (255/255), (255/255), (0/255) }, |
||
18 | [SPELL_SCHOOL2_CAP] = { (255/255), (0/255), (0/255) }, |
||
19 | [SPELL_SCHOOL3_CAP] = { (0/255), (102/255), (0/255) }, |
||
20 | [SPELL_SCHOOL4_CAP] = { (0/255), (102/255), (255/255) }, |
||
21 | [SPELL_SCHOOL5_CAP] = { (202/255), (76/255), (217/255) }, |
||
22 | [SPELL_SCHOOL6_CAP] = { (153/255), (204/255), (255/255) }, |
||
23 | Heal = { (96/255), (255/255), (99/255) }, |
||
24 | [MISS] = { (0/255), (255/255), (255/255) }, |
||
25 | damage = { (255/255), (47/255), (47/255) }, |
||
26 | overlay = { (255/255), (255/255), (0/255) }, |
||
27 | buff = { (255/255), (255/255), (0/255) }, |
||
28 | debuff = { (255/255), (255/255), (0/255) }, |
||
29 | cast = { (255/255), (255/255), (0/255) }, |
||
30 | source = "[$n]", |
||
31 | target = "[$n]", |
||
32 | death = "--** $n", |
||
33 | crit = "*$d*", |
||
34 | spellalert = "Begins to cast $s", |
||
35 | deathout = 2, |
||
36 | destroyed = 1, |
||
37 | watches = { |
||
38 | [YOU] = { 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 }, |
||
39 | }, |
||
40 | }; |
||
41 | |||
42 | local utility = Nurfed_Utility:New(); |
||
43 | local lib = Nurfed_CombatLog:New(); |
||
44 | local framelib = Nurfed_Frames:New(); |
||
45 | |||
46 | local eventframe = { |
||
47 | type = "Frame", |
||
48 | events = { |
||
49 | }, |
||
50 | OnEvent = function() lib:ParseEvent(event, arg1) end, |
||
51 | }; |
||
52 | |||
53 | local config = { |
||
54 | type = "Frame", |
||
55 | Anchor = { "TOP", "$parenttitlebg", "BOTTOM", 0, -1 }, |
||
56 | children = { |
||
57 | page1 = { |
||
58 | type = "Frame", |
||
59 | Anchor = "all", |
||
60 | children = { |
||
61 | swatch1 = { |
||
62 | template = "Nurfed_OptionColorSwatch", |
||
63 | properties = { |
||
64 | Anchor = { "TOPLEFT", "$parent", "TOPLEFT", 0, 0 }, |
||
65 | vars = { |
||
66 | text = YOU, |
||
67 | option = "You", |
||
68 | }, |
||
69 | }, |
||
70 | }, |
||
71 | swatch2 = { |
||
72 | template = "Nurfed_OptionColorSwatch", |
||
73 | properties = { |
||
74 | Anchor = { "TOPLEFT", "$parentswatch1", "BOTTOMLEFT", 0, -3 }, |
||
75 | vars = { |
||
76 | text = PET, |
||
77 | option = "Pet", |
||
78 | }, |
||
79 | }, |
||
80 | }, |
||
81 | swatch3 = { |
||
82 | template = "Nurfed_OptionColorSwatch", |
||
83 | properties = { |
||
84 | Anchor = { "TOPLEFT", "$parentswatch2", "BOTTOMLEFT", 0, -3 }, |
||
85 | vars = { |
||
86 | text = PARTY, |
||
87 | option = "Party", |
||
88 | }, |
||
89 | }, |
||
90 | }, |
||
91 | swatch4 = { |
||
92 | template = "Nurfed_OptionColorSwatch", |
||
93 | properties = { |
||
94 | Anchor = { "TOPLEFT", "$parentswatch3", "BOTTOMLEFT", 0, -3 }, |
||
95 | vars = { |
||
96 | text = RAID, |
||
97 | option = "Raid", |
||
98 | }, |
||
99 | }, |
||
100 | }, |
||
101 | swatch5 = { |
||
102 | template = "Nurfed_OptionColorSwatch", |
||
103 | properties = { |
||
104 | Anchor = { "TOPLEFT", "$parentswatch4", "BOTTOMLEFT", 0, -3 }, |
||
105 | vars = { |
||
106 | text = FACTION_OTHER, |
||
107 | option = "Enemy", |
||
108 | }, |
||
109 | }, |
||
110 | }, |
||
111 | swatch6 = { |
||
112 | template = "Nurfed_OptionColorSwatch", |
||
113 | properties = { |
||
114 | Anchor = { "TOPLEFT", "$parentswatch5", "BOTTOMLEFT", 0, -3 }, |
||
115 | vars = { |
||
116 | text = NRF_TARGET, |
||
117 | option = "Target", |
||
118 | }, |
||
119 | }, |
||
120 | }, |
||
121 | swatch7 = { |
||
122 | template = "Nurfed_OptionColorSwatch", |
||
123 | properties = { |
||
124 | Anchor = { "TOPLEFT", "$parentswatch6", "BOTTOMLEFT", 0, -3 }, |
||
125 | vars = { |
||
126 | text = HEALTH, |
||
127 | option = HEALTH, |
||
128 | }, |
||
129 | }, |
||
130 | }, |
||
131 | swatch8 = { |
||
132 | template = "Nurfed_OptionColorSwatch", |
||
133 | properties = { |
||
134 | Anchor = { "TOPLEFT", "$parentswatch7", "BOTTOMLEFT", 0, -3 }, |
||
135 | vars = { |
||
136 | text = MANA, |
||
137 | option = MANA, |
||
138 | }, |
||
139 | }, |
||
140 | }, |
||
141 | swatch9 = { |
||
142 | template = "Nurfed_OptionColorSwatch", |
||
143 | properties = { |
||
144 | Anchor = { "TOPLEFT", "$parentswatch8", "BOTTOMLEFT", 0, -3 }, |
||
145 | vars = { |
||
146 | text = RAGE, |
||
147 | option = RAGE, |
||
148 | }, |
||
149 | }, |
||
150 | }, |
||
151 | swatch10 = { |
||
152 | template = "Nurfed_OptionColorSwatch", |
||
153 | properties = { |
||
154 | Anchor = { "TOPLEFT", "$parentswatch9", "BOTTOMLEFT", 0, -3 }, |
||
155 | vars = { |
||
156 | text = ENERGY, |
||
157 | option = ENERGY, |
||
158 | }, |
||
159 | }, |
||
160 | }, |
||
161 | swatch11 = { |
||
162 | template = "Nurfed_OptionColorSwatch", |
||
163 | properties = { |
||
164 | Anchor = { "TOPLEFT", "$parentswatch10", "BOTTOMLEFT", 0, -3 }, |
||
165 | vars = { |
||
166 | text = HAPPINESS, |
||
167 | option = HAPPINESS, |
||
168 | }, |
||
169 | }, |
||
170 | }, |
||
171 | |||
172 | swatch12 = { |
||
173 | template = "Nurfed_OptionColorSwatch", |
||
174 | properties = { |
||
175 | Anchor = { "TOPRIGHT", "$parent", "TOPRIGHT", 0, 0 }, |
||
176 | vars = { |
||
177 | right = true, |
||
178 | text = SPELL_SCHOOL0_CAP, |
||
179 | option = SPELL_SCHOOL0_CAP, |
||
180 | }, |
||
181 | }, |
||
182 | }, |
||
183 | swatch13 = { |
||
184 | template = "Nurfed_OptionColorSwatch", |
||
185 | properties = { |
||
186 | Anchor = { "TOPRIGHT", "$parentswatch12", "BOTTOMRIGHT", 0, -3 }, |
||
187 | vars = { |
||
188 | right = true, |
||
189 | text = SPELL_SCHOOL1_CAP, |
||
190 | option = SPELL_SCHOOL1_CAP, |
||
191 | }, |
||
192 | }, |
||
193 | }, |
||
194 | swatch14 = { |
||
195 | template = "Nurfed_OptionColorSwatch", |
||
196 | properties = { |
||
197 | Anchor = { "TOPRIGHT", "$parentswatch13", "BOTTOMRIGHT", 0, -3 }, |
||
198 | vars = { |
||
199 | right = true, |
||
200 | text = SPELL_SCHOOL2_CAP, |
||
201 | option = SPELL_SCHOOL2_CAP, |
||
202 | }, |
||
203 | }, |
||
204 | }, |
||
205 | swatch15 = { |
||
206 | template = "Nurfed_OptionColorSwatch", |
||
207 | properties = { |
||
208 | Anchor = { "TOPRIGHT", "$parentswatch14", "BOTTOMRIGHT", 0, -3 }, |
||
209 | vars = { |
||
210 | right = true, |
||
211 | text = SPELL_SCHOOL3_CAP, |
||
212 | option = SPELL_SCHOOL3_CAP, |
||
213 | }, |
||
214 | }, |
||
215 | }, |
||
216 | swatch16 = { |
||
217 | template = "Nurfed_OptionColorSwatch", |
||
218 | properties = { |
||
219 | Anchor = { "TOPRIGHT", "$parentswatch15", "BOTTOMRIGHT", 0, -3 }, |
||
220 | vars = { |
||
221 | right = true, |
||
222 | text = SPELL_SCHOOL4_CAP, |
||
223 | option = SPELL_SCHOOL4_CAP, |
||
224 | }, |
||
225 | }, |
||
226 | }, |
||
227 | swatch17 = { |
||
228 | template = "Nurfed_OptionColorSwatch", |
||
229 | properties = { |
||
230 | Anchor = { "TOPRIGHT", "$parentswatch16", "BOTTOMRIGHT", 0, -3 }, |
||
231 | vars = { |
||
232 | right = true, |
||
233 | text = SPELL_SCHOOL5_CAP, |
||
234 | option = SPELL_SCHOOL5_CAP, |
||
235 | }, |
||
236 | }, |
||
237 | }, |
||
238 | swatch18 = { |
||
239 | template = "Nurfed_OptionColorSwatch", |
||
240 | properties = { |
||
241 | Anchor = { "TOPRIGHT", "$parentswatch17", "BOTTOMRIGHT", 0, -3 }, |
||
242 | vars = { |
||
243 | right = true, |
||
244 | text = SPELL_SCHOOL6_CAP, |
||
245 | option = SPELL_SCHOOL6_CAP, |
||
246 | }, |
||
247 | }, |
||
248 | }, |
||
249 | swatch19 = { |
||
250 | template = "Nurfed_OptionColorSwatch", |
||
251 | properties = { |
||
252 | Anchor = { "TOPRIGHT", "$parentswatch18", "BOTTOMRIGHT", 0, -3 }, |
||
253 | vars = { |
||
254 | right = true, |
||
255 | text = NRF_HEAL, |
||
256 | option = "Heal", |
||
257 | }, |
||
258 | }, |
||
259 | }, |
||
260 | swatch20 = { |
||
261 | template = "Nurfed_OptionColorSwatch", |
||
262 | properties = { |
||
263 | Anchor = { "TOPRIGHT", "$parentswatch19", "BOTTOMRIGHT", 0, -3 }, |
||
264 | vars = { |
||
265 | right = true, |
||
266 | text = MISS, |
||
267 | option = MISS, |
||
268 | }, |
||
269 | }, |
||
270 | }, |
||
271 | swatch21 = { |
||
272 | template = "Nurfed_OptionColorSwatch", |
||
273 | properties = { |
||
274 | Anchor = { "TOPRIGHT", "$parentswatch20", "BOTTOMRIGHT", 0, -3 }, |
||
275 | vars = { |
||
276 | right = true, |
||
277 | text = DAMAGE, |
||
278 | option = "damage", |
||
279 | }, |
||
280 | }, |
||
281 | }, |
||
282 | swatch22 = { |
||
283 | template = "Nurfed_OptionColorSwatch", |
||
284 | properties = { |
||
285 | Anchor = { "TOPRIGHT", "$parentswatch21", "BOTTOMRIGHT", 0, -3 }, |
||
286 | vars = { |
||
287 | right = true, |
||
288 | text = NRF_CRITOVERLAY, |
||
289 | option = "overlay", |
||
290 | }, |
||
291 | }, |
||
292 | }, |
||
293 | swatch23 = { |
||
294 | template = "Nurfed_OptionColorSwatch", |
||
295 | properties = { |
||
296 | Anchor = { "TOPRIGHT", "$parentswatch22", "BOTTOMRIGHT", 0, -3 }, |
||
297 | vars = { |
||
298 | right = true, |
||
299 | text = NRF_BUFFS, |
||
300 | option = "buff", |
||
301 | }, |
||
302 | }, |
||
303 | }, |
||
304 | swatch24 = { |
||
305 | template = "Nurfed_OptionColorSwatch", |
||
306 | properties = { |
||
307 | Anchor = { "TOPRIGHT", "$parentswatch23", "BOTTOMRIGHT", 0, -3 }, |
||
308 | vars = { |
||
309 | right = true, |
||
310 | text = NRF_DEBUFFS, |
||
311 | option = "debuff", |
||
312 | }, |
||
313 | }, |
||
314 | }, |
||
315 | swatch25 = { |
||
316 | template = "Nurfed_OptionColorSwatch", |
||
317 | properties = { |
||
318 | Anchor = { "TOPLEFT", "$parentswatch11", "BOTTOMLEFT", 0, -3 }, |
||
319 | vars = { |
||
320 | text = SPELLS, |
||
321 | option = "cast", |
||
322 | }, |
||
323 | }, |
||
324 | }, |
||
325 | }, |
||
326 | }, |
||
327 | page2 = { |
||
328 | type = "Frame", |
||
329 | Anchor = "all", |
||
330 | children = { |
||
331 | input1 = { |
||
332 | template = "Nurfed_OptionInput", |
||
333 | properties = { |
||
334 | Anchor = { "TOPLEFT", "$parent", "TOPLEFT", 0, 0 }, |
||
335 | vars = { |
||
336 | text = NRF_SOURCE, |
||
337 | option = "source", |
||
338 | }, |
||
339 | }, |
||
340 | }, |
||
341 | input2 = { |
||
342 | template = "Nurfed_OptionInput", |
||
343 | properties = { |
||
344 | Anchor = { "TOPLEFT", "$parentinput1", "BOTTOMLEFT", 0, -5 }, |
||
345 | vars = { |
||
346 | text = NRF_TARGET, |
||
347 | option = "target", |
||
348 | }, |
||
349 | }, |
||
350 | }, |
||
351 | input3 = { |
||
352 | template = "Nurfed_OptionInput", |
||
353 | properties = { |
||
354 | Anchor = { "TOPLEFT", "$parentinput2", "BOTTOMLEFT", 0, -5 }, |
||
355 | vars = { |
||
356 | text = TUTORIAL_TITLE25, |
||
357 | option = "death", |
||
358 | }, |
||
359 | }, |
||
360 | }, |
||
361 | input4 = { |
||
362 | template = "Nurfed_OptionInput", |
||
363 | properties = { |
||
364 | Anchor = { "TOPLEFT", "$parentinput3", "BOTTOMLEFT", 0, -5 }, |
||
365 | vars = { |
||
366 | text = NRF_CRIT, |
||
367 | option = "crit", |
||
368 | }, |
||
369 | }, |
||
370 | }, |
||
371 | input5 = { |
||
372 | template = "Nurfed_OptionInput", |
||
373 | properties = { |
||
374 | Anchor = { "TOPLEFT", "$parentinput4", "BOTTOMLEFT", 0, -5 }, |
||
375 | vars = { |
||
376 | text = SPELLS, |
||
377 | option = "spellalert", |
||
378 | }, |
||
379 | }, |
||
380 | }, |
||
381 | slider1 = { |
||
382 | template = "Nurfed_OptionSlider", |
||
383 | properties = { |
||
384 | Anchor = { "TOPRIGHT", "$parent", "TOPRIGHT", -2, -12 }, |
||
385 | vars = { |
||
386 | text = NRF_DEATHOUT, |
||
387 | option = "deathout", |
||
388 | max = 7, |
||
389 | min = 0, |
||
390 | step = 1, |
||
391 | format = "%.0f", |
||
392 | }, |
||
393 | }, |
||
394 | }, |
||
395 | check1 = { |
||
396 | template = "Nurfed_OptionCheck", |
||
397 | properties = { |
||
398 | Anchor = { "TOPRIGHT", "$parentslider1", "BOTTOMRIGHT", 0, -15 }, |
||
399 | vars = { |
||
400 | right = true, |
||
401 | text = NRF_SHOWDESTROYED, |
||
402 | option = "destroyed", |
||
403 | }, |
||
404 | }, |
||
405 | }, |
||
406 | }, |
||
407 | }, |
||
408 | page3 = { |
||
409 | type = "Frame", |
||
410 | Anchor = "all", |
||
411 | children = { |
||
412 | input1 = { |
||
413 | template = "Nurfed_OptionInputSelect", |
||
414 | properties = { |
||
415 | Anchor = { "TOPLEFT", "$parent", "TOPLEFT", 0, 0 }, |
||
416 | children = { |
||
417 | slider1 = { |
||
418 | template = "Nurfed_OptionSlider", |
||
419 | properties = { |
||
420 | Anchor = { "TOPLEFT", "$parent", "TOPRIGHT", 100, -13 }, |
||
421 | vars = { |
||
422 | text = NRF_OUTPUT, |
||
423 | id = 1, |
||
424 | max = 7, |
||
425 | min = 1, |
||
426 | step = 1, |
||
427 | init = 2, |
||
428 | format = "%.0f", |
||
429 | }, |
||
430 | }, |
||
431 | }, |
||
432 | check1 = { |
||
433 | template = "Nurfed_OptionCheck", |
||
434 | properties = { |
||
435 | Anchor = { "TOPLEFT", "$parent", "TOPRIGHT", 2, -2 }, |
||
436 | vars = { |
||
437 | text = NRF_HEAL, |
||
438 | id = 2, |
||
439 | init = 1, |
||
440 | }, |
||
441 | }, |
||
442 | }, |
||
443 | check2 = { |
||
444 | template = "Nurfed_OptionCheck", |
||
445 | properties = { |
||
446 | Anchor = { "TOPLEFT", "$parentcheck1", "BOTTOMLEFT", 0, -3 }, |
||
447 | vars = { |
||
448 | text = NRF_HIT, |
||
449 | id = 3, |
||
450 | init = 1, |
||
451 | }, |
||
452 | }, |
||
453 | }, |
||
454 | check3 = { |
||
455 | template = "Nurfed_OptionCheck", |
||
456 | properties = { |
||
457 | Anchor = { "TOPLEFT", "$parentcheck2", "BOTTOMLEFT", 0, -3 }, |
||
458 | vars = { |
||
459 | text = SPELLS, |
||
460 | id = 4, |
||
461 | init = 1, |
||
462 | }, |
||
463 | }, |
||
464 | }, |
||
465 | check4 = { |
||
466 | template = "Nurfed_OptionCheck", |
||
467 | properties = { |
||
468 | Anchor = { "TOPLEFT", "$parentcheck3", "BOTTOMLEFT", 0, -3 }, |
||
469 | vars = { |
||
470 | text = NRF_DOT, |
||
471 | id = 5, |
||
472 | init = 1, |
||
473 | }, |
||
474 | }, |
||
475 | }, |
||
476 | check5 = { |
||
477 | template = "Nurfed_OptionCheck", |
||
478 | properties = { |
||
479 | Anchor = { "TOPLEFT", "$parentcheck4", "BOTTOMLEFT", 0, -3 }, |
||
480 | vars = { |
||
481 | text = NRF_SPELLMISS, |
||
482 | id = 6, |
||
483 | init = 1, |
||
484 | }, |
||
485 | }, |
||
486 | }, |
||
487 | check6 = { |
||
488 | template = "Nurfed_OptionCheck", |
||
489 | properties = { |
||
490 | Anchor = { "TOPLEFT", "$parentcheck5", "BOTTOMLEFT", 0, -3 }, |
||
491 | vars = { |
||
492 | text = NRF_ENVIRONMENT, |
||
493 | id = 7, |
||
494 | init = 1, |
||
495 | }, |
||
496 | }, |
||
497 | }, |
||
498 | check7 = { |
||
499 | template = "Nurfed_OptionCheck", |
||
500 | properties = { |
||
501 | Anchor = { "TOPLEFT", "$parentcheck6", "BOTTOMLEFT", 0, -3 }, |
||
502 | vars = { |
||
503 | text = NRF_POWERGAIN, |
||
504 | id = 8, |
||
505 | init = 1, |
||
506 | }, |
||
507 | }, |
||
508 | }, |
||
509 | check8 = { |
||
510 | template = "Nurfed_OptionCheck", |
||
511 | properties = { |
||
512 | Anchor = { "TOPLEFT", "$parentcheck7", "BOTTOMLEFT", 0, -3 }, |
||
513 | vars = { |
||
514 | text = NRF_DEBUFFS, |
||
515 | id = 9, |
||
516 | init = 1, |
||
517 | }, |
||
518 | }, |
||
519 | }, |
||
520 | |||
521 | check9 = { |
||
522 | template = "Nurfed_OptionCheck", |
||
523 | properties = { |
||
524 | Anchor = { "TOPRIGHT", "$parentslider1", "BOTTOMRIGHT", 0, -8 }, |
||
525 | vars = { |
||
526 | right = true, |
||
527 | text = NRF_BUFFS, |
||
528 | id = 10, |
||
529 | init = 1, |
||
530 | }, |
||
531 | }, |
||
532 | }, |
||
533 | check10 = { |
||
534 | template = "Nurfed_OptionCheck", |
||
535 | properties = { |
||
536 | Anchor = { "TOPRIGHT", "$parentcheck9", "BOTTOMRIGHT", 0, -3 }, |
||
537 | vars = { |
||
538 | right = true, |
||
539 | text = NRF_AURAFADE, |
||
540 | id = 11, |
||
541 | init = 1, |
||
542 | }, |
||
543 | }, |
||
544 | }, |
||
545 | check11 = { |
||
546 | template = "Nurfed_OptionCheck", |
||
547 | properties = { |
||
548 | Anchor = { "TOPRIGHT", "$parentcheck10", "BOTTOMRIGHT", 0, -3 }, |
||
549 | vars = { |
||
550 | right = true, |
||
551 | text = NRF_MELEEMISS, |
||
552 | id = 12, |
||
553 | init = 1, |
||
554 | }, |
||
555 | }, |
||
556 | }, |
||
557 | check12 = { |
||
558 | template = "Nurfed_OptionCheck", |
||
559 | properties = { |
||
560 | Anchor = { "TOPRIGHT", "$parentcheck11", "BOTTOMRIGHT", 0, -3 }, |
||
561 | vars = { |
||
562 | right = true, |
||
563 | text = NRF_RESIST, |
||
564 | id = 13, |
||
565 | init = 1, |
||
566 | }, |
||
567 | }, |
||
568 | }, |
||
569 | check13 = { |
||
570 | template = "Nurfed_OptionCheck", |
||
571 | properties = { |
||
572 | Anchor = { "TOPRIGHT", "$parentcheck12", "BOTTOMRIGHT", 0, -3 }, |
||
573 | vars = { |
||
574 | right = true, |
||
575 | text = NRF_SPELLFAIL, |
||
576 | id = 14, |
||
577 | init = 1, |
||
578 | }, |
||
579 | }, |
||
580 | }, |
||
581 | check14 = { |
||
582 | template = "Nurfed_OptionCheck", |
||
583 | properties = { |
||
584 | Anchor = { "TOPRIGHT", "$parentcheck13", "BOTTOMRIGHT", 0, -3 }, |
||
585 | vars = { |
||
586 | right = true, |
||
587 | text = NRF_CAST, |
||
588 | id = 15, |
||
589 | init = 1, |
||
590 | }, |
||
591 | }, |
||
592 | }, |
||
593 | check15 = { |
||
594 | template = "Nurfed_OptionCheck", |
||
595 | properties = { |
||
596 | Anchor = { "TOPRIGHT", "$parentcheck14", "BOTTOMRIGHT", 0, -3 }, |
||
597 | vars = { |
||
598 | right = true, |
||
599 | text = NRF_PERFORM, |
||
600 | id = 16, |
||
601 | init = 1, |
||
602 | }, |
||
603 | }, |
||
604 | }, |
||
605 | }, |
||
606 | vars = { |
||
607 | text = VOICEMACRO_1_Or_0, |
||
608 | option = "watches", |
||
609 | }, |
||
610 | }, |
||
611 | }, |
||
612 | }, |
||
613 | }, |
||
614 | |||
615 | tab1 = { |
||
616 | template = "Nurfed_OptionTab", |
||
617 | properties = { |
||
618 | Anchor = { "TOPLEFT", "$parent", "BOTTOMLEFT", 0, -1 }, |
||
619 | vars = { |
||
620 | text = COLOR, |
||
621 | page = 1, |
||
622 | }, |
||
623 | }, |
||
624 | }, |
||
625 | tab2 = { |
||
626 | template = "Nurfed_OptionTab", |
||
627 | properties = { |
||
628 | Anchor = { "LEFT", "$parenttab1", "RIGHT", 3, 0 }, |
||
629 | vars = { |
||
630 | text = NRF_FORMATS, |
||
631 | page = 2, |
||
632 | }, |
||
633 | }, |
||
634 | }, |
||
635 | tab3 = { |
||
636 | template = "Nurfed_OptionTab", |
||
637 | properties = { |
||
638 | Anchor = { "LEFT", "$parenttab2", "RIGHT", 3, 0 }, |
||
639 | vars = { |
||
640 | text = VOICEMACRO_1_Or_0, |
||
641 | page = 3, |
||
642 | }, |
||
643 | }, |
||
644 | }, |
||
645 | }, |
||
646 | vars = { width = 350, height = 300, page = 1 }, |
||
647 | }; |
||
648 | |||
649 | |||
650 | function Nurfed_CombatLog_Init() |
||
651 | if (eventframe) then |
||
652 | for event in ChatTypeGroup do |
||
653 | for e, l in lib.events do |
||
654 | if (string.find(event, e, 1, true)) then |
||
655 | table.insert(eventframe.events, "CHAT_MSG_"..event); |
||
656 | end |
||
657 | end |
||
658 | end |
||
659 | |||
660 | -- CombatMessageAmbigousfix by No-Nonsense |
||
661 | if (GetLocale() == "deDE" and not IsAddOnLoaded("CombatMessagesAmbigousFix")) then |
||
662 | local COMBAT_MESSAGES = { |
||
663 | "SPELLLOGCRITOTHEROTHER", |
||
664 | "SPELLLOGOTHEROTHER", |
||
665 | "SPELLLOGCRITSCHOOLOTHERSELF", |
||
666 | "SPELLLOGCRITSCHOOLOTHEROTHER", |
||
667 | "SPELLLOGSCHOOLOTHERSELF", |
||
668 | "SPELLLOGSCHOOLOTHEROTHER", |
||
669 | "SPELLSPLITDAMAGEOTHEROTHER", |
||
670 | "SPELLSPLITDAMAGEOTHERSELF", |
||
671 | "SPELLRESISTOTHEROTHER", |
||
672 | "PERIODICAURAHEALOTHEROTHER", |
||
673 | "HEALEDCRITOTHEROTHER", |
||
674 | "HEALEDCRITOTHERSELF", |
||
675 | "HEALEDOTHEROTHER" |
||
676 | }; |
||
677 | for _, cmsg in COMBAT_MESSAGES do |
||
678 | local fixcode = cmsg .. '= string.gsub(string.gsub(' .. cmsg .. ', "(%%%d%$s)s", "%1\'s"), "%%ss", "%%s\'s")'; |
||
679 | RunScript(fixcode); |
||
680 | end |
||
681 | local COMBAT_MESSAGES = nil; |
||
682 | end |
||
683 | |||
684 | framelib:ObjectInit("Nurfed_CombatLogFrame", eventframe, UIParent); |
||
685 | framelib:ObjectInit("Nurfed_CombatLog_Menu", config, Nurfed_OptionsFrame); |
||
686 | config = nil; |
||
687 | eventframe = nil; |
||
688 | lib:Init(); |
||
689 | end |
||
690 | end |
||
691 | |||
692 | function nctest(num) |
||
693 | if (not num or type(num) ~= "number") then |
||
694 | utility:Print("Usage: nctest(number)"); |
||
695 | return; |
||
696 | end |
||
697 | local now = GetTime(); |
||
698 | for i=1, num do |
||
699 | lib:ParseEvent("CHAT_MSG_SPELL_HOSTILEPLAYER_DAMAGE", "Bob's Fireball crits You for 2000."..GLANCING_TRAILER) |
||
700 | end |
||
701 | utility:Print(num.." CombatLog Events Completed in "..format("%.3f", GetTime() - now)); |
||
702 | end |