vanilla-wow-addons – Blame information for rev 1

Subversion Repositories:
Rev:
Rev Author Line No. Line
1 office 1 local L = AceLibrary("AceLocale-2.2"):new("Buffalo")
2  
3 Buffalo_OptionsTable={
4 type='group',
5 -- name="Buffalo",
6 args= {
7 lock = {
8 type='toggle',
9 name=L["Lock"],
10 desc=L["When activated, the buff frames are locked and the reference frames are hidden"],
11 get= function() return Buffalo.db.profile.locked end,
12 set = function(v) Buffalo.ToggleLock(Buffalo, v) end,
13 order=1
14 },
15  
16 buffs = {
17 type='group',
18 name=L["Buffs"],
19 desc=L["Manipulate Buffs Display"],
20 order=2,
21 args={
22  
23 title={
24 type='header',
25 name=L["Buffs"],
26 -- icon="Interface\\Icons\\Ability_DualWield.blp",
27 order=5
28 },
29 scale={
30 type='range',
31 name=L["Scale"],
32 desc=L["Scale Buff Icons"],
33 min=0,
34 max=10,
35 step=0.1,
36 get = function() return Buffalo.db.profile.scale["buff"] end,
37 set = function(v) Buffalo.SetScale(Buffalo, v, "buff") end,
38 order=10
39 },
40  
41 padding={
42 type='group',
43 name=L["Padding"],
44 desc=L["Control the distance between rows/columns"],
45 args={
46 x={
47 type='range',
48 name=L["X-Padding"],
49 desc=L["Distance between columns"],
50 min=-10,
51 max=100,
52 step=1,
53 get = function() return Buffalo.db.profile.padding["buff"].x end,
54 set = function(v) Buffalo.SetPadding(Buffalo, v, "buff", "x") end
55 },
56  
57 y={
58 type='range',
59 name=L["Y-Padding"],
60 desc=L["Distance between rows"],
61 min=-10,
62 max=100,
63 step=1,
64 get = function() return Buffalo.db.profile.padding["buff"].y end,
65 set = function(v) Buffalo.SetPadding(Buffalo, v, "buff", "y") end
66 }
67 },
68 order=20
69 },
70  
71  
72 hGrowth={
73 type='text',
74 name=L["Horizontal Direction"],
75 desc=L["In which horizontal direction should the display grow?"],
76 get=function()
77 if Buffalo.db.profile.growRight.buff then
78 return "right"
79 else
80 return "left"
81 end
82 end,
83 set=function(v) Buffalo.SetGrowthDirection(Buffalo, v, "buff") end,
84 validate = {["left"] = L["To the left"], ["right"]=L["To the right"]},
85 order=30
86 },
87  
88 vGrowth={
89 type='text',
90 name=L["Vertical Direction"],
91 desc=L["In which vertical direction should the display grow?"],
92 get=function()
93 if Buffalo.db.profile.growUpwards.buff then
94 return "up"
95 else
96 return "down"
97 end
98 end,
99 set=function(v) Buffalo.SetGrowthDirection(Buffalo, v, "buff") end,
100 validate = {["up"] = L["Upwards"], ["down"]=L["Downwards"]},
101 order=40
102 },
103  
104 firstGrowth={
105 type='text',
106 name=L["Growth Precedence"],
107 desc=L["In which direction should the display grow first (horizontally or vertically)?"],
108 get=function() return Buffalo.db.profile.growHorizontalFirst.buff end,
109 set=function(v) Buffalo.SetGrowHorizontalFirst(Buffalo, v, "buff")end,
110 validate = {[true] = L["Horizontally"], [false]=L["Vertically"]},
111 order=50
112 },
113  
114 rows={
115 type='range',
116 name=L["Rows"],
117 desc=L["Number of Rows. Only applies when Growth Precedence is Vertical"],
118 min=1,
119 max=16,
120 step=1,
121 get = function() return Buffalo.db.profile.rows["buff"] end,
122 set = function(v) Buffalo.SetRows(Buffalo, v, "buff") end,
123 order=60
124 },
125  
126 cols={
127 type='range',
128 name=L["Columns"],
129 desc=L["Number of Columns. Only applies when Growth Precedence is Horizontal"],
130 min=1,
131 max=16,
132 step=1,
133 get = function() return Buffalo.db.profile.cols["buff"] end,
134 set = function(v) Buffalo.SetCols(Buffalo, v, "buff") end,
135 order=70
136 },
137 hide = {
138 type='toggle',
139 name=L["Hide"],
140 desc=L["Hides these buff frames"],
141 get= function() return Buffalo.db.profile.hide["buff"] end,
142 set = function(v) Buffalo.ToggleHide(Buffalo, v, "buff") end,
143 order=90
144 },
145 flashing = {
146 type='toggle',
147 name=L["Flashing"],
148 desc=L["Toggle flashing on fading buffs"],
149 get= function() return Buffalo.db.profile.flashes["buff"] end,
150 set = function(v) Buffalo.db.profile.flashes["buff"] = v end,
151 order=95
152 },
153 timers = {
154 type='group',
155 name=L["Timers"],
156 desc=L["Customize buff timers"],
157 order=100,
158 args = {
159 verboseTimer = {
160 type='toggle',
161 name=L["Verbose Timers"],
162 desc=L["Replaces the default time format for timers with HH:MM or MM:SS"],
163 get= function() return Buffalo.db.profile.verboseTimers["buff"] end,
164 set = function(v) Buffalo.db.profile.verboseTimers["buff"] = v end,
165 order=100
166 },
167 whiteTimer = {
168 type='toggle',
169 name=L["White Timers"],
170 desc=L["Use white timers instead of yellow ones"],
171 get= function() return Buffalo.db.profile.whiteTimers["buff"] end,
172 set = function(v) Buffalo.db.profile.whiteTimers["buff"] = v end,
173 disabled = function() return not Buffalo.db.profile.verboseTimers["buff"] end,
174 order=110
175 },
176 },
177 },
178 }
179 },
180  
181 debuffs = {
182 type='group',
183 name=L["Debuffs"],
184 desc=L["Manipulate Debuffs Display"],
185 order=3,
186 args={
187 title={
188 type='header',
189 name=L["Debuffs"],
190 -- icon="Interface\\Icons\\Ability_DualWield.blp",
191 order=10
192 },
193 scale={
194 type='range',
195 name=L["Scale"],
196 desc=L["Scale Debuff Icons"],
197 min=0,
198 max=10,
199 get = function() return Buffalo.db.profile.scale["debuff"] end,
200 set = function(v) Buffalo.SetScale(Buffalo, v, "debuff") end,
201 order=20
202 },
203  
204 padding={
205 type='group',
206 name=L["Padding"],
207 desc=L["Control the distance between rows/columns"],
208 args={
209 x={
210 type='range',
211 name=L["X-Padding"],
212 desc=L["Distance between columns"],
213 min=-10,
214 max=100,
215 step=1,
216 get = function() return Buffalo.db.profile.padding["debuff"].x end,
217 set = function(v) Buffalo.SetPadding(Buffalo, v, "debuff", "x") end
218 },
219  
220 y={
221 type='range',
222 name=L["Y-Padding"],
223 desc=L["Distance between rows"],
224 min=-10,
225 max=100,
226 step=1,
227 get = function() return Buffalo.db.profile.padding["debuff"].y end,
228 set = function(v) Buffalo.SetPadding(Buffalo, v, "debuff", "y") end
229 }
230 },
231 order=30
232 },
233  
234  
235 hGrowth={
236 type='text',
237 name=L["Horizontal Direction"],
238 desc=L["In which horizontal direction should the display grow?"],
239 get=function()
240 if Buffalo.db.profile.growRight.debuff then
241 return "right"
242 else
243 return "left"
244 end
245 end,
246 set=function(v) Buffalo.SetGrowthDirection(Buffalo, v, "debuff") end,
247 validate = {["left"] = L["To the left"], ["right"]=L["To the right"]},
248 order=40
249 },
250  
251 vGrowth={
252 type='text',
253 name=L["Vertical Direction"],
254 desc=L["In which vertical direction should the display grow?"],
255 get=function()
256 if Buffalo.db.profile.growUpwards.debuff then
257 return "up"
258 else
259 return "down"
260 end
261 end,
262 set=function(v) Buffalo.SetGrowthDirection(Buffalo, v, "debuff") end,
263 validate = {["up"] = L["Upwards"], ["down"]=L["Downwards"]},
264 order=50
265 },
266  
267 firstGrowth={
268 type='text',
269 name=L["Growth Precedence"],
270 desc=L["In which direction should the display grow first (horizontally or vertically)?"],
271 get=function() return Buffalo.db.profile.growHorizontalFirst.debuff end,
272 set=function(v) Buffalo.SetGrowHorizontalFirst(Buffalo, v, "debuff") end,
273 validate = {[true] = L["Horizontally"], [false]=L["Vertically"]},
274 order=60
275 },
276  
277 rows={
278 type='range',
279 name=L["Rows"],
280 desc=L["Number of Rows. Only applies when Growth Precedence is Vertical"],
281 min=1,
282 max=16,
283 step=1,
284 get = function() return Buffalo.db.profile.rows["debuff"] end,
285 set = function(v) Buffalo.SetRows(Buffalo, v, "debuff") end,
286 order=70
287 },
288  
289 cols={
290 type='range',
291 name=L["Columns"],
292 desc=L["Number of Columns. Only applies when Growth Precedence is Horizontal"],
293 min=1,
294 max=16,
295 step=1,
296 get = function() return Buffalo.db.profile.cols["debuff"] end,
297 set = function(v) Buffalo.SetCols(Buffalo, v, "debuff") end,
298 order=80
299 },
300 hide = {
301 type='toggle',
302 name=L["Hide"],
303 desc=L["Hides these buff frames"],
304 get= function() return Buffalo.db.profile.hide["debuff"] end,
305 set = function(v) Buffalo.ToggleHide(Buffalo, v, "debuff") end,
306 order=90
307 },
308 flashing = {
309 type='toggle',
310 name=L["Flashing"],
311 desc=L["Toggle flashing on fading buffs"],
312 get= function() return Buffalo.db.profile.flashes["debuff"] end,
313 set = function(v) Buffalo.db.profile.flashes["debuff"] = v end,
314 order=95
315 },
316 timers = {
317 type='group',
318 name=L["Timers"],
319 desc=L["Customize buff timers"],
320 order=100,
321 args = {
322 verboseTimer = {
323 type='toggle',
324 name=L["Verbose Timers"],
325 desc=L["Replaces the default time format for timers with HH:MM or MM:SS"],
326 get= function() return Buffalo.db.profile.verboseTimers["debuff"] end,
327 set = function(v) Buffalo.db.profile.verboseTimers["debuff"] = v end,
328 order=100
329 },
330 whiteTimer = {
331 type='toggle',
332 name=L["White Timers"],
333 desc=L["Use white timers instead of yellow ones"],
334 get= function() return Buffalo.db.profile.whiteTimers["debuff"] end,
335 set = function(v) Buffalo.db.profile.whiteTimers["debuff"] = v end,
336 disabled = function() return not Buffalo.db.profile.verboseTimers["debuff"] end,
337 order=110
338 },
339 },
340 },
341 }
342 },
343  
344 weapon = {
345 type='group',
346 name=L["Weapon Buffs"],
347 desc=L["Manipulate Weapon Buffs Display"],
348 order=4,
349 args={
350 title={
351 type='header',
352 name=L["Weapon Buffs"],
353 icon="Interface\\Icons\\Ability_DualWield.blp",
354 order=1
355 },
356 scale={
357 type='range',
358 name=L["Scale"],
359 desc=L["Scale Buff Icons"],
360 min=0,
361 max=10,
362 get = function() return Buffalo.db.profile.scale["weapon"] end,
363 set = function(v) Buffalo.SetScale(Buffalo, v, "weapon") end,
364 order=2
365 },
366  
367 padding={
368 type='group',
369 name=L["Padding"],
370 desc=L["Control the distance between rows/columns"],
371 args={
372 x={
373 type='range',
374 name=L["X-Padding"],
375 desc=L["Distance between columns"],
376 min=-10,
377 max=100,
378 step=1,
379 get = function() return Buffalo.db.profile.padding["weapon"].x end,
380 set = function(v) Buffalo.SetPadding(Buffalo, v, "weapon", "x") end
381 },
382  
383 y={
384 type='range',
385 name=L["Y-Padding"],
386 desc=L["Distance between rows"],
387 min=-10,
388 max=100,
389 step=1,
390 get = function() return Buffalo.db.profile.padding["weapon"].y end,
391 set = function(v) Buffalo.SetPadding(Buffalo, v, "weapon", "y") end
392 }
393 },
394 order=3
395 },
396  
397  
398 hGrowth={
399 type='text',
400 name=L["Horizontal Direction"],
401 desc=L["In which horizontal direction should the display grow?"],
402 get=function()
403 if Buffalo.db.profile.growRight.weapon then
404 return "right"
405 else
406 return "left"
407 end
408 end,
409 set=function(v) Buffalo.SetGrowthDirection(Buffalo, v, "weapon") end,
410 validate = {["left"] = L["To the left"], ["right"]=L["To the right"]},
411 order=4
412 },
413  
414 vGrowth={
415 type='text',
416 name=L["Vertical Direction"],
417 desc=L["In which vertical direction should the display grow?"],
418 get=function()
419 if Buffalo.db.profile.growUpwards.weapon then
420 return "up"
421 else
422 return "down"
423 end
424 end,
425 set=function(v) Buffalo.SetGrowthDirection(Buffalo, v, "weapon") end,
426 validate = {["up"] = L["Upwards"], ["down"]=L["Downwards"]},
427 order=5
428 },
429  
430 firstGrowth={
431 type='text',
432 name=L["Growth Precedence"],
433 desc=L["In which direction should the display grow first (horizontally or vertically)?"],
434 get=function() return Buffalo.db.profile.growHorizontalFirst.weapon end,
435 set=function(v) Buffalo.SetGrowHorizontalFirst(Buffalo, v, "weapon")end,
436 validate = {[true] = L["Horizontally"], [false]=L["Vertically"]},
437 order=6
438 },
439  
440 rows={
441 type='range',
442 name=L["Rows"],
443 desc=L["Number of Rows. Only applies when Growth Precedence is Vertical"],
444 min=1,
445 max=2,
446 step=1,
447 get = function() return Buffalo.db.profile.rows["weapon"] end,
448 set = function(v) Buffalo.SetRows(Buffalo, v, "weapon") end,
449 order=7
450 },
451  
452 cols={
453 type='range',
454 name=L["Columns"],
455 desc=L["Number of Columns. Only applies when Growth Precedence is Horizontal"],
456 min=1,
457 max=2,
458 step=1,
459 get = function() return Buffalo.db.profile.cols["weapon"] end,
460 set = function(v) Buffalo.SetCols(Buffalo, v, "weapon") end,
461 order=8
462 },
463 hide = {
464 type='toggle',
465 name=L["Hide"],
466 desc=L["Hides these buff frames"],
467 get= function() return Buffalo.db.profile.hide["weapon"] end,
468 set = function(v) Buffalo.ToggleHide(Buffalo, v, "weapon") end,
469 order=90
470 },
471 flashing = {
472 type='toggle',
473 name=L["Flashing"],
474 desc=L["Toggle flashing on fading buffs"],
475 get= function() return Buffalo.db.profile.flashes["weapon"] end,
476 set = function(v) Buffalo.db.profile.flashes["weapon"] = v end,
477 order=95
478 },
479 timers = {
480 type='group',
481 name=L["Timers"],
482 desc=L["Customize buff timers"],
483 order=100,
484 args = {
485 verboseTimer = {
486 type='toggle',
487 name=L["Verbose Timers"],
488 desc=L["Replaces the default time format for timers with HH:MM or MM:SS"],
489 get= function() return Buffalo.db.profile.verboseTimers["weapon"] end,
490 set = function(v) Buffalo.db.profile.verboseTimers["weapon"] = v end,
491 order=100
492 },
493 whiteTimer = {
494 type='toggle',
495 name=L["White Timers"],
496 desc=L["Use white timers instead of yellow ones"],
497 get= function() return Buffalo.db.profile.whiteTimers["weapon"] end,
498 set = function(v) Buffalo.db.profile.whiteTimers["weapon"] = v end,
499 disabled = function() return not Buffalo.db.profile.verboseTimers["weapon"] end,
500 order=110
501 },
502 },
503 },
504 }
505 },
506 reset = {
507 type='execute',
508 name="Reset",
509 desc=L["Reset"],
510 func = function() Buffalo.Reset(Buffalo) end
511 }
512 }
513 }