vanilla-wow-addons – Blame information for rev 1
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
1 | office | 1 | Bartender.options = { |
2 | type = "group", |
||
3 | args = { |
||
4 | lock = { |
||
5 | order = 1, |
||
6 | name = "Lock", type = "toggle", |
||
7 | desc = "Toggle locking of the bars.", |
||
8 | get = function() return not Bartender.unlock end, |
||
9 | set = function(v) |
||
10 | if Bartender.unlock then |
||
11 | Bartender:Lock() |
||
12 | else |
||
13 | Bartender:Move() |
||
14 | end |
||
15 | end, |
||
16 | }, |
||
17 | borders = { |
||
18 | order = 2, |
||
19 | name = "Borders", type = "toggle", |
||
20 | desc = "Toggle borders of the bars.", |
||
21 | get = function() return not Bartender.db.profile.Extra.HideBorder end, |
||
22 | set = function(v) |
||
23 | if Bartender.db.profile.Extra.HideBorder then |
||
24 | Bartender:ShowBorder() |
||
25 | else |
||
26 | Bartender:HideBorder() |
||
27 | end |
||
28 | end, |
||
29 | }, |
||
30 | resetall = { |
||
31 | order = 3, |
||
32 | name = "Reset ALL", |
||
33 | type = "execute", |
||
34 | desc = "Reset ALL Bars to default.", |
||
35 | func = function() |
||
36 | StaticPopup_Show("BARTENDER2CONFIRM") |
||
37 | end, |
||
38 | }, |
||
39 | spacer = { type = "header", order = 4 }, |
||
40 | bar1 = { |
||
41 | order = 5, |
||
42 | type = "group", |
||
43 | name = "Bar1", |
||
44 | desc = "Bar1 options.", |
||
45 | args = { |
||
46 | show = { |
||
47 | order = 1, |
||
48 | name = "Show", type = "toggle", |
||
49 | desc = "Toggle bar shown.", |
||
50 | get = function() return not Bartender.db.profile[Bar1:GetName()].Hide end, |
||
51 | set = function(v) |
||
52 | if Bartender.db.profile[Bar1:GetName()].Hide then |
||
53 | Bartender:ShowBar(Bar1) |
||
54 | else |
||
55 | Bartender:HideBar(Bar1) |
||
56 | end |
||
57 | end, |
||
58 | }, |
||
59 | rows = { |
||
60 | order = 1, |
||
61 | name = "Rows", type = "text", |
||
62 | desc = "Change the rows of the Bar", |
||
63 | validate = {["1"] = " 1", ["2"] = " 2", ["3"] = " 3", ["4"] = " 4", ["6"] = " 6", ["12"] = "12"}, |
||
64 | get = function() return tostring(Bartender.db.profile[Bar1:GetName()].Rows) end, |
||
65 | set = function(v) |
||
66 | Bartender:Rows(Bar1, tonumber(v)) |
||
67 | end, |
||
68 | }, |
||
69 | scale = { |
||
70 | order = 1, |
||
71 | name = "Scale", type = "range", |
||
72 | desc = "Scale of the bar.", |
||
73 | min = .1, max = 5, step = 0.05, |
||
74 | get = function() return Bartender.db.profile[Bar1:GetName()].Scale or 1 end, |
||
75 | set = function(s) |
||
76 | Bartender:Scale(Bar1, s) |
||
77 | end, |
||
78 | }, |
||
79 | alpha = { |
||
80 | order = 1, |
||
81 | name = "Alpha", type = "range", |
||
82 | desc = "Alpha of the bar.", |
||
83 | min = .1, max = 1, |
||
84 | get = function() return Bartender.db.profile[Bar1:GetName()].Alpha or 1 end, |
||
85 | set = function(a) |
||
86 | Bartender:Alpha(Bar1, a) |
||
87 | end, |
||
88 | }, |
||
89 | padding = { |
||
90 | order = 1, |
||
91 | name = "Padding", type = "range", |
||
92 | desc = "Padding of the bar.", |
||
93 | min = -10, max = 30, step = 1, |
||
94 | get = function() return Bartender.db.profile[Bar1:GetName()].Padding or -1 end, |
||
95 | set = function(p) |
||
96 | Bartender:Padding(Bar1, p) |
||
97 | end, |
||
98 | }, |
||
99 | hotkey = { |
||
100 | order = 2, |
||
101 | name = "Hotkey", type = "toggle", |
||
102 | desc = "Toggle the bar HotKey on/off", |
||
103 | get = function() return not Bartender.db.profile[Bar1:GetName()].HideHotKey end, |
||
104 | set = function(v) |
||
105 | if Bartender.db.profile[Bar1:GetName()].HideHotKey then |
||
106 | Bartender:ShowHK(Bar1) |
||
107 | else |
||
108 | Bartender:HideHK(Bar1) |
||
109 | end |
||
110 | end, |
||
111 | } |
||
112 | } |
||
113 | }, |
||
114 | bar2 = { |
||
115 | order = 6, |
||
116 | type = "group", |
||
117 | name = "Bar2", |
||
118 | desc = "Bar2 options.", |
||
119 | args = { |
||
120 | show = { |
||
121 | order = 1, |
||
122 | name = "Show", type = "toggle", |
||
123 | desc = "Toggle bar shown.", |
||
124 | get = function() return not Bartender.db.profile[Bar2:GetName()].Hide end, |
||
125 | set = function(v) |
||
126 | if Bartender.db.profile[Bar2:GetName()].Hide then |
||
127 | Bartender:ShowBar(Bar2) |
||
128 | else |
||
129 | Bartender:HideBar(Bar2) |
||
130 | end |
||
131 | end, |
||
132 | }, |
||
133 | rows = { |
||
134 | order = 1, |
||
135 | name = "Rows", type = "text", |
||
136 | desc = "Change the rows of the Bar", |
||
137 | validate = {["1"] = " 1", ["2"] = " 2", ["3"] = " 3", ["4"] = " 4", ["6"] = " 6", ["12"] = "12"}, |
||
138 | get = function() return tostring(Bartender.db.profile[Bar2:GetName()].Rows) end, |
||
139 | set = function(v) |
||
140 | Bartender:Rows(Bar2,tonumber(v)) |
||
141 | end, |
||
142 | }, |
||
143 | scale = { |
||
144 | order = 1, |
||
145 | name = "Scale", type = "range", |
||
146 | desc = "Scale of the bar.", |
||
147 | min = .1, max = 5, step = 0.05, |
||
148 | get = function() return Bartender.db.profile[Bar2:GetName()].Scale or 1 end, |
||
149 | set = function(s) |
||
150 | Bartender:Scale(Bar2, s) |
||
151 | end, |
||
152 | }, |
||
153 | alpha = { |
||
154 | order = 1, |
||
155 | name = "Alpha", type = "range", |
||
156 | desc = "Alpha of the bar.", |
||
157 | min = .1, max = 1, |
||
158 | get = function() return Bartender.db.profile[Bar2:GetName()].Alpha or 1 end, |
||
159 | set = function(a) |
||
160 | Bartender:Alpha(Bar2, a) |
||
161 | end, |
||
162 | }, |
||
163 | padding = { |
||
164 | order = 1, |
||
165 | name = "Padding", type = "range", |
||
166 | desc = "Padding of the bar.", |
||
167 | min = -10, max = 30, step = 1, |
||
168 | get = function() return Bartender.db.profile[Bar2:GetName()].Padding or -1 end, |
||
169 | set = function(p) |
||
170 | Bartender:Padding(Bar2, p) |
||
171 | end, |
||
172 | }, |
||
173 | hotkey = { |
||
174 | order = 2, |
||
175 | name = "Hotkey", type = "toggle", |
||
176 | desc = "Toggle the bar HotKey on/off", |
||
177 | get = function() return not Bartender.db.profile[Bar2:GetName()].HideHotKey end, |
||
178 | set = function(v) |
||
179 | if Bartender.db.profile[Bar2:GetName()].HideHotKey then |
||
180 | Bartender:ShowHK(Bar2) |
||
181 | else |
||
182 | Bartender:HideHK(Bar2) |
||
183 | end |
||
184 | end, |
||
185 | } |
||
186 | } |
||
187 | }, |
||
188 | bar3 = { |
||
189 | order = 7, |
||
190 | type = "group", |
||
191 | name = "Bar3", |
||
192 | desc = "Bar3 options.", |
||
193 | args = { |
||
194 | show = { |
||
195 | order = 1, |
||
196 | name = "Show", type = "toggle", |
||
197 | desc = "Toggle bar shown.", |
||
198 | get = function() return not Bartender.db.profile[Bar3:GetName()].Hide end, |
||
199 | set = function(v) |
||
200 | if Bartender.db.profile[Bar3:GetName()].Hide then |
||
201 | Bartender:ShowBar(Bar3) |
||
202 | else |
||
203 | Bartender:HideBar(Bar3) |
||
204 | end |
||
205 | end, |
||
206 | }, |
||
207 | rows = { |
||
208 | order = 1, |
||
209 | name = "Rows", type = "text", |
||
210 | desc = "Change the rows of the Bar", |
||
211 | validate = {["1"] = " 1", ["2"] = " 2", ["3"] = " 3", ["4"] = " 4", ["6"] = " 6", ["12"] = "12"}, |
||
212 | get = function() return tostring(Bartender.db.profile[Bar3:GetName()].Rows) end, |
||
213 | set = function(v) |
||
214 | Bartender:Rows(Bar3,tonumber(v)) |
||
215 | end, |
||
216 | }, |
||
217 | scale = { |
||
218 | order = 1, |
||
219 | name = "Scale", type = "range", |
||
220 | desc = "Scale of the bar.", |
||
221 | min = .1, max = 5, step = 0.05, |
||
222 | get = function() return Bartender.db.profile[Bar3:GetName()].Scale or 1 end, |
||
223 | set = function(s) |
||
224 | Bartender:Scale(Bar3, s) |
||
225 | end, |
||
226 | }, |
||
227 | alpha = { |
||
228 | order = 1, |
||
229 | name = "Alpha", type = "range", |
||
230 | desc = "Alpha of the bar.", |
||
231 | min = .1, max = 1, |
||
232 | get = function() return Bartender.db.profile[Bar3:GetName()].Alpha or 1 end, |
||
233 | set = function(a) |
||
234 | Bartender:Alpha(Bar3, a) |
||
235 | end, |
||
236 | }, |
||
237 | padding = { |
||
238 | order = 1, |
||
239 | name = "Padding", type = "range", |
||
240 | desc = "Padding of the bar.", |
||
241 | min = -10, max = 30, step = 1, |
||
242 | get = function() return Bartender.db.profile[Bar3:GetName()].Padding or -1 end, |
||
243 | set = function(p) |
||
244 | Bartender:Padding(Bar3, p) |
||
245 | end, |
||
246 | }, |
||
247 | hotkey = { |
||
248 | order = 2, |
||
249 | name = "Hotkey", type = "toggle", |
||
250 | desc = "Toggle the bar HotKey on/off", |
||
251 | get = function() return not Bartender.db.profile[Bar3:GetName()].HideHotKey end, |
||
252 | set = function(v) |
||
253 | if Bartender.db.profile[Bar3:GetName()].HideHotKey then |
||
254 | Bartender:ShowHK(Bar3) |
||
255 | else |
||
256 | Bartender:HideHK(Bar3) |
||
257 | end |
||
258 | end, |
||
259 | } |
||
260 | } |
||
261 | }, |
||
262 | bar4 = { |
||
263 | order = 8, |
||
264 | type = "group", |
||
265 | name = "Bar4", |
||
266 | desc = "Bar4 options.", |
||
267 | args = { |
||
268 | show = { |
||
269 | order = 1, |
||
270 | name = "Show", type = "toggle", |
||
271 | desc = "Toggle bar shown.", |
||
272 | get = function() return not Bartender.db.profile[Bar4:GetName()].Hide end, |
||
273 | set = function(v) |
||
274 | if Bartender.db.profile[Bar4:GetName()].Hide then |
||
275 | Bartender:ShowBar(Bar4) |
||
276 | else |
||
277 | Bartender:HideBar(Bar4) |
||
278 | end |
||
279 | end, |
||
280 | }, |
||
281 | rows = { |
||
282 | order = 1, |
||
283 | name = "Rows", type = "text", |
||
284 | desc = "Change the rows of the Bar", |
||
285 | validate = {["1"] = " 1", ["2"] = " 2", ["3"] = " 3", ["4"] = " 4", ["6"] = " 6", ["12"] = "12"}, |
||
286 | get = function() return tostring(Bartender.db.profile[Bar4:GetName()].Rows) end, |
||
287 | set = function(v) |
||
288 | Bartender:Rows(Bar4,tonumber(v)) |
||
289 | end, |
||
290 | }, |
||
291 | scale = { |
||
292 | order = 1, |
||
293 | name = "Scale", type = "range", |
||
294 | desc = "Scale of the bar.", |
||
295 | min = .1, max = 5, step = 0.05, |
||
296 | get = function() return Bartender.db.profile[Bar4:GetName()].Scale or 1 end, |
||
297 | set = function(s) |
||
298 | Bartender:Scale(Bar4, s) |
||
299 | end, |
||
300 | }, |
||
301 | alpha = { |
||
302 | order = 1, |
||
303 | name = "Alpha", type = "range", |
||
304 | desc = "Alpha of the bar.", |
||
305 | min = .1, max = 1, |
||
306 | get = function() return Bartender.db.profile[Bar4:GetName()].Alpha or 1 end, |
||
307 | set = function(a) |
||
308 | Bartender:Alpha(Bar4, a) |
||
309 | end, |
||
310 | }, |
||
311 | padding = { |
||
312 | order = 1, |
||
313 | name = "Padding", type = "range", |
||
314 | desc = "Padding of the bar.", |
||
315 | min = -10, max = 30, step = 1, |
||
316 | get = function() return Bartender.db.profile[Bar4:GetName()].Padding or -1 end, |
||
317 | set = function(p) |
||
318 | Bartender:Padding(Bar4, p) |
||
319 | end, |
||
320 | }, |
||
321 | hotkey = { |
||
322 | order = 2, |
||
323 | name = "Hotkey", type = "toggle", |
||
324 | desc = "Toggle the bar HotKey on/off", |
||
325 | get = function() return not Bartender.db.profile[Bar4:GetName()].HideHotKey end, |
||
326 | set = function(v) |
||
327 | if Bartender.db.profile[Bar4:GetName()].HideHotKey then |
||
328 | Bartender:ShowHK(Bar4) |
||
329 | else |
||
330 | Bartender:HideHK(Bar4) |
||
331 | end |
||
332 | end, |
||
333 | } |
||
334 | } |
||
335 | }, |
||
336 | bar5 = { |
||
337 | order = 9, |
||
338 | type = "group", |
||
339 | name = "Bar5", |
||
340 | desc = "Bar5 options.", |
||
341 | args = { |
||
342 | show = { |
||
343 | order = 1, |
||
344 | name = "Show", type = "toggle", |
||
345 | desc = "Toggle bar shown.", |
||
346 | get = function() return not Bartender.db.profile[Bar5:GetName()].Hide end, |
||
347 | set = function(v) |
||
348 | if Bartender.db.profile[Bar5:GetName()].Hide then |
||
349 | Bartender:ShowBar(Bar5) |
||
350 | else |
||
351 | Bartender:HideBar(Bar5) |
||
352 | end |
||
353 | end, |
||
354 | }, |
||
355 | rows = { |
||
356 | order = 1, |
||
357 | name = "Rows", type = "text", |
||
358 | desc = "Change the rows of the Bar", |
||
359 | validate = {["1"] = " 1", ["2"] = " 2", ["3"] = " 3", ["4"] = " 4", ["6"] = " 6", ["12"] = "12"}, |
||
360 | get = function() return tostring(Bartender.db.profile[Bar5:GetName()].Rows) end, |
||
361 | set = function(v) |
||
362 | Bartender:Rows(Bar5,tonumber(v)) |
||
363 | end, |
||
364 | }, |
||
365 | scale = { |
||
366 | order = 1, |
||
367 | name = "Scale", type = "range", |
||
368 | desc = "Scale of the bar.", |
||
369 | min = .1, max = 5, step = 0.05, |
||
370 | get = function() return Bartender.db.profile[Bar5:GetName()].Scale or 1 end, |
||
371 | set = function(s) |
||
372 | Bartender:Scale(Bar5, s) |
||
373 | end, |
||
374 | }, |
||
375 | alpha = { |
||
376 | order = 1, |
||
377 | name = "Alpha", type = "range", |
||
378 | desc = "Alpha of the bar.", |
||
379 | min = .1, max = 1, |
||
380 | get = function() return Bartender.db.profile[Bar5:GetName()].Alpha or 1 end, |
||
381 | set = function(a) |
||
382 | Bartender:Alpha(Bar5, a) |
||
383 | end, |
||
384 | }, |
||
385 | padding = { |
||
386 | order = 1, |
||
387 | name = "Padding", type = "range", |
||
388 | desc = "Padding of the bar.", |
||
389 | min = -10, max = 30, step = 1, |
||
390 | get = function() return Bartender.db.profile[Bar5:GetName()].Padding or -1 end, |
||
391 | set = function(p) |
||
392 | Bartender:Padding(Bar5, p) |
||
393 | end, |
||
394 | }, |
||
395 | hotkey = { |
||
396 | order = 2, |
||
397 | name = "Hotkey", type = "toggle", |
||
398 | desc = "Toggle the bar HotKey on/off", |
||
399 | get = function() return not Bartender.db.profile[Bar5:GetName()].HideHotKey end, |
||
400 | set = function(v) |
||
401 | if Bartender.db.profile[Bar5:GetName()].HideHotKey then |
||
402 | Bartender:ShowHK(Bar5) |
||
403 | else |
||
404 | Bartender:HideHK(Bar5) |
||
405 | end |
||
406 | end, |
||
407 | } |
||
408 | } |
||
409 | }, |
||
410 | shapebar = { |
||
411 | order = 10, |
||
412 | type = "group", |
||
413 | name = "Shapebar", |
||
414 | desc = "Shapebar options.", |
||
415 | args = { |
||
416 | show = { |
||
417 | name = "Show", type = "toggle", |
||
418 | desc = "Toggle bar shown.", |
||
419 | get = function() return not Bartender.db.profile[Bar6:GetName()].Hide end, |
||
420 | set = function(v) |
||
421 | if Bartender.db.profile[Bar6:GetName()].Hide then |
||
422 | Bartender:ShowBar(Bar6) |
||
423 | else |
||
424 | Bartender:HideBar(Bar6) |
||
425 | end |
||
426 | end, |
||
427 | }, |
||
428 | swap = { |
||
429 | name = "Swap", type = "toggle", |
||
430 | desc = "swap bar horizontally/vertically.", |
||
431 | get = function() return Bartender.db.profile[Bar6:GetName()].Swap end, |
||
432 | set = function(v) |
||
433 | if not Bartender.db.profile[Bar6:GetName()].Swap then |
||
434 | Bartender:SwapOn(Bar6) |
||
435 | else |
||
436 | Bartender:SwapOff(Bar6) |
||
437 | end |
||
438 | end, |
||
439 | }, |
||
440 | scale = { |
||
441 | name = "Scale", type = "range", |
||
442 | desc = "Scale of the bar.", |
||
443 | min = .1, max = 5, step = 0.05, |
||
444 | get = function() return Bartender.db.profile[Bar6:GetName()].Scale or 1 end, |
||
445 | set = function(s) |
||
446 | Bartender:Scale(Bar6, s) |
||
447 | end, |
||
448 | }, |
||
449 | alpha = { |
||
450 | name = "Alpha", type = "range", |
||
451 | desc = "Alpha of the bar.", |
||
452 | min = .1, max = 1, |
||
453 | get = function() return Bartender.db.profile[Bar6:GetName()].Alpha or 1 end, |
||
454 | set = function(a) |
||
455 | Bartender:Alpha(Bar6, a) |
||
456 | end, |
||
457 | }, |
||
458 | padding = { |
||
459 | name = "Padding", type = "range", |
||
460 | desc = "Padding of the bar.", |
||
461 | min = -10, max = 30, step = 1, |
||
462 | get = function() return Bartender.db.profile[Bar6:GetName()].Padding or 0 end, |
||
463 | set = function(p) |
||
464 | Bartender:Padding(Bar6, p) |
||
465 | end, |
||
466 | } |
||
467 | } |
||
468 | }, |
||
469 | petbar = { |
||
470 | order = 11, |
||
471 | type = "group", |
||
472 | name = "Petbar", |
||
473 | desc = "Petbar options.", |
||
474 | args = { |
||
475 | show = { |
||
476 | name = "Show", type = "toggle", |
||
477 | desc = "Toggle bar shown.", |
||
478 | get = function() return not Bartender.db.profile[Bar7:GetName()].Hide end, |
||
479 | set = function(v) |
||
480 | if Bartender.db.profile[Bar7:GetName()].Hide then |
||
481 | Bartender:ShowBar(Bar7) |
||
482 | else |
||
483 | Bartender:HideBar(Bar7) |
||
484 | end |
||
485 | end, |
||
486 | }, |
||
487 | swap = { |
||
488 | name = "Swap", type = "toggle", |
||
489 | desc = "swap bar horizontally/vertically.", |
||
490 | get = function() return Bartender.db.profile[Bar7:GetName()].Swap end, |
||
491 | set = function(v) |
||
492 | if not Bartender.db.profile[Bar7:GetName()].Swap then |
||
493 | Bartender:SwapOn(Bar7) |
||
494 | else |
||
495 | Bartender:SwapOff(Bar7) |
||
496 | end |
||
497 | end, |
||
498 | }, |
||
499 | scale = { |
||
500 | name = "Scale", type = "range", |
||
501 | desc = "Scale of the bar.", |
||
502 | min = .1, max = 5, step = 0.05, |
||
503 | get = function() return Bartender.db.profile[Bar7:GetName()].Scale or 1 end, |
||
504 | set = function(s) |
||
505 | Bartender:Scale(Bar7, s) |
||
506 | end, |
||
507 | }, |
||
508 | alpha = { |
||
509 | name = "Alpha", type = "range", |
||
510 | desc = "Alpha of the bar.", |
||
511 | min = .1, max = 1, |
||
512 | get = function() return Bartender.db.profile[Bar7:GetName()].Alpha or 1 end, |
||
513 | set = function(a) |
||
514 | Bartender:Alpha(Bar7, a) |
||
515 | end, |
||
516 | }, |
||
517 | padding = { |
||
518 | name = "Padding", type = "range", |
||
519 | desc = "Padding of the bar.", |
||
520 | min = -10, max = 30, step = 1, |
||
521 | get = function() return Bartender.db.profile[Bar7:GetName()].Padding or 0 end, |
||
522 | set = function(p) |
||
523 | Bartender:Padding(Bar7, p) |
||
524 | end, |
||
525 | } |
||
526 | } |
||
527 | }, |
||
528 | bagbar = { |
||
529 | order = 12, |
||
530 | type = "group", |
||
531 | name = "Bagbar", |
||
532 | desc = "Bagbar options.", |
||
533 | args = { |
||
534 | show = { |
||
535 | name = "Show", type = "toggle", |
||
536 | desc = "Toggle bar shown.", |
||
537 | get = function() return not Bartender.db.profile[Bar8:GetName()].Hide end, |
||
538 | set = function(v) |
||
539 | if Bartender.db.profile[Bar8:GetName()].Hide then |
||
540 | Bartender:ShowBar(Bar8) |
||
541 | else |
||
542 | Bartender:HideBar(Bar8) |
||
543 | end |
||
544 | end, |
||
545 | }, |
||
546 | swap = { |
||
547 | name = "Swap", type = "toggle", |
||
548 | desc = "swap bar horizontally/vertically.", |
||
549 | get = function() return Bartender.db.profile[Bar8:GetName()].Swap end, |
||
550 | set = function(v) |
||
551 | if not Bartender.db.profile[Bar8:GetName()].Swap then |
||
552 | Bartender:SwapOn(Bar8) |
||
553 | else |
||
554 | Bartender:SwapOff(Bar8) |
||
555 | end |
||
556 | end, |
||
557 | }, |
||
558 | scale = { |
||
559 | name = "Scale", type = "range", |
||
560 | desc = "Scale of the bar.", |
||
561 | min = .1, max = 5, step = 0.05, |
||
562 | get = function() return Bartender.db.profile[Bar8:GetName()].Scale or 1 end, |
||
563 | set = function(s) |
||
564 | Bartender:Scale(Bar8, s) |
||
565 | end, |
||
566 | }, |
||
567 | alpha = { |
||
568 | name = "Alpha", type = "range", |
||
569 | desc = "Alpha of the bar.", |
||
570 | min = .1, max = 1, |
||
571 | get = function() return Bartender.db.profile[Bar8:GetName()].Alpha or 1 end, |
||
572 | set = function(a) |
||
573 | Bartender:Alpha(Bar8, a) |
||
574 | end, |
||
575 | }, |
||
576 | padding = { |
||
577 | name = "Padding", type = "range", |
||
578 | desc = "Padding of the bar.", |
||
579 | min = -10, max = 30, step = 1, |
||
580 | get = function() return Bartender.db.profile[Bar8:GetName()].Padding or 0 end, |
||
581 | set = function(p) |
||
582 | Bartender:Padding(Bar8, p) |
||
583 | end, |
||
584 | } |
||
585 | } |
||
586 | }, |
||
587 | microbar = { |
||
588 | order = 13, |
||
589 | type = "group", |
||
590 | name = "Microbar", |
||
591 | desc = "Microbar options.", |
||
592 | args = { |
||
593 | show = { |
||
594 | name = "Show", type = "toggle", |
||
595 | desc = "Toggle bar shown.", |
||
596 | get = function() return not Bartender.db.profile[Bar9:GetName()].Hide end, |
||
597 | set = function(v) |
||
598 | if Bartender.db.profile[Bar9:GetName()].Hide then |
||
599 | Bartender:ShowBar(Bar9) |
||
600 | else |
||
601 | Bartender:HideBar(Bar9) |
||
602 | end |
||
603 | end, |
||
604 | }, |
||
605 | swap = { |
||
606 | name = "Swap", type = "toggle", |
||
607 | desc = "swap bar horizontally/vertically.", |
||
608 | get = function() return Bartender.db.profile[Bar9:GetName()].Swap end, |
||
609 | set = function(v) |
||
610 | if not Bartender.db.profile[Bar9:GetName()].Swap then |
||
611 | Bartender:SwapOn(Bar9) |
||
612 | else |
||
613 | Bartender:SwapOff(Bar9) |
||
614 | end |
||
615 | end, |
||
616 | }, |
||
617 | scale = { |
||
618 | name = "Scale", type = "range", |
||
619 | desc = "Scale of the bar.", |
||
620 | min = .1, max = 5, step = 0.05, |
||
621 | get = function() return Bartender.db.profile[Bar9:GetName()].Scale or 1 end, |
||
622 | set = function(s) |
||
623 | Bartender:Scale(Bar9, s) |
||
624 | end, |
||
625 | }, |
||
626 | alpha = { |
||
627 | name = "Alpha", type = "range", |
||
628 | desc = "Alpha of the bar.", |
||
629 | min = .1, max = 1, |
||
630 | get = function() return Bartender.db.profile[Bar9:GetName()].Alpha or 1 end, |
||
631 | set = function(a) |
||
632 | Bartender:Alpha(Bar9, a) |
||
633 | end, |
||
634 | }, |
||
635 | padding = { |
||
636 | name = "Padding", type = "range", |
||
637 | desc = "Padding of the bar.", |
||
638 | min = -10, max = 30, step = 1, |
||
639 | get = function() return Bartender.db.profile[Bar9:GetName()].Padding or -4 end, |
||
640 | set = function(p) |
||
641 | Bartender:Padding(Bar9, p) |
||
642 | end, |
||
643 | } |
||
644 | } |
||
645 | }, |
||
646 | bonusbar = { |
||
647 | order = 14, |
||
648 | type = "group", |
||
649 | name = "Bonusbar", |
||
650 | desc = "Bonusbar options.", |
||
651 | args = { |
||
652 | show = { |
||
653 | order = 1, |
||
654 | name = "Show", type = "toggle", |
||
655 | desc = "Toggle bar shown.", |
||
656 | get = function() return not Bartender.db.profile[Bar10:GetName()].Hide end, |
||
657 | set = function(v) |
||
658 | if Bartender.db.profile[Bar10:GetName()].Hide then |
||
659 | Bartender:ShowBar(Bar10) |
||
660 | else |
||
661 | Bartender:HideBar(Bar10) |
||
662 | end |
||
663 | end, |
||
664 | }, |
||
665 | rows = { |
||
666 | order = 1, |
||
667 | name = "Rows", type = "text", |
||
668 | desc = "Change the rows of the Bar", |
||
669 | validate = {["1"] = " 1", ["2"] = " 2", ["3"] = " 3", ["4"] = " 4", ["6"] = " 6", ["12"] = "12"}, |
||
670 | get = function() return tostring(Bartender.db.profile[Bar10:GetName()].Rows) end, |
||
671 | set = function(v) |
||
672 | Bartender:Rows(Bar10,tonumber(v)) |
||
673 | end, |
||
674 | }, |
||
675 | scale = { |
||
676 | order = 1, |
||
677 | name = "Scale", type = "range", |
||
678 | desc = "Scale of the bar.", |
||
679 | min = .1, max = 5, step = 0.05, |
||
680 | get = function() return Bartender.db.profile[Bar10:GetName()].Scale or 1 end, |
||
681 | set = function(s) |
||
682 | Bartender:Scale(Bar10, s) |
||
683 | end, |
||
684 | }, |
||
685 | alpha = { |
||
686 | order = 1, |
||
687 | name = "Alpha", type = "range", |
||
688 | desc = "Alpha of the bar.", |
||
689 | min = .1, max = 1, |
||
690 | get = function() return Bartender.db.profile[Bar10:GetName()].Alpha or 1 end, |
||
691 | set = function(a) |
||
692 | Bartender:Alpha(Bar10, a) |
||
693 | end, |
||
694 | }, |
||
695 | padding = { |
||
696 | order = 1, |
||
697 | name = "Padding", type = "range", |
||
698 | desc = "Padding of the bar.", |
||
699 | min = -10, max = 30, step = 1, |
||
700 | get = function() return Bartender.db.profile[Bar10:GetName()].Padding or -1 end, |
||
701 | set = function(p) |
||
702 | Bartender:Padding(Bar10, p) |
||
703 | end, |
||
704 | }, |
||
705 | hotkey = { |
||
706 | order = 2, |
||
707 | name = "Hotkey", type = "toggle", |
||
708 | desc = "Toggle the bar HotKey on/off", |
||
709 | get = function() return not Bartender.db.profile[Bar10:GetName()].HideHotKey end, |
||
710 | set = function(v) |
||
711 | if Bartender.db.profile[Bar10:GetName()].HideHotKey then |
||
712 | Bartender:ShowHK(Bar10) |
||
713 | else |
||
714 | Bartender:HideHK(Bar10) |
||
715 | end |
||
716 | end, |
||
717 | }, |
||
718 | noswap = { |
||
719 | order = 3, |
||
720 | name = "Stanceswap", type = "toggle", |
||
721 | desc = "Toggle the Bonusbar stanceswap on/off", |
||
722 | get = function() return not Bartender.db.profile[Bar10:GetName()].NoSwap end, |
||
723 | set = function(val) |
||
724 | Bartender.db.profile[Bar10:GetName()].NoSwap = not val |
||
725 | Bartender:UPDATE_BONUS_ACTIONBAR() |
||
726 | end, |
||
727 | } |
||
728 | } |
||
729 | }, |
||
730 | spacer = { type = "header", order = 15 }, |
||
731 | } |
||
732 | } |
||
733 | |||
734 | Bartender:RegisterChatCommand({ "/bar", "/bartender" }, Bartender.options ) |