Language:
Lua     Change language:
Pastebin: 127652
Author: Dridzt
Subject: Multishot r33+ (config.lua)
Created: 2009-11-05 22:23:58
Download and save
Toggle line numbers
1MultishotConfig = {} 
2 
3local defaults = { 
4  levelup = true
5  achievement = true
6  party = true
7  raid = true
8  repchange = true
9  delay1 = 1.2
10  delay2 = 2
11  debug = false
12} 
13 
14local options = { 
15  type = "group"
16  name = "Multishot"
17  args = { 
18    intro = { 
19      order = 0
20      type = "description"
21      name = "Multishot will take a screenshot on the following events:\n" }
22    levelup = { 
23      order = 1
24      type = "toggle"
25      name = "levelups"
26      width = "full"
27      get = function() return MultishotConfig.levelup end
28      set = function(_,v) MultishotConfig.levelup = v end }
29    achievement = { 
30      order = 2
31      type = "toggle"
32      name = "achievements"
33      width = "full"
34      get = function() return MultishotConfig.achievement end
35      set = function(_,v) MultishotConfig.achievement = v end }
36    repchange   = { 
37      order = 3
38      type = "toggle"
39      name = "rep standing changes"
40      width = "full"
41      get = function() return MultishotConfig.repchange end
42      set = function(_,v) MultishotConfig.repchange = v end }
43    party = { 
44      order = 4
45      type = "toggle"
46      name = "bosskills (5-man)"
47      width = "full"
48      get = function() return MultishotConfig.party end
49      set = function(_,v) MultishotConfig.party = v end }
50    raid = { 
51      order = 5
52      type = "toggle"
53      name = "bosskills (10/25-man)"
54      width = "full"
55      get = function() return MultishotConfig.raid end
56      set = function(_,v) MultishotConfig.raid = v end }
57    header1 = { 
58      order = 6
59      type = "header"
60      name = "delay (seconds)" }
61    delay1 = { 
62      order = 7
63      type = "range"
64      name = "achiev, level & rep"
65      min = .1, max = 10, step = .1
66      get = function() return MultishotConfig.delay1 end
67      set = function(_,v) MultishotConfig.delay1 = v end }
68    delay2 = { 
69      order = 8
70      type = "range"
71      name = "bosskills"
72      min = .1, max = 10, step = .1
73      get = function() return MultishotConfig.delay2 end
74      set = function(_,v) MultishotConfig.delay2 = v end }
75    header2 = { 
76      order = 9
77      type = "header"
78      name = "debug" }
79    debug = { 
80      order = 10
81      type = "toggle"
82      name = "debug mode"
83      width = "full"
84      get = function() return MultishotConfig.debug end
85      set = function(_,v) MultishotConfig.debug = v end }
86} } 
87 
88function Multishot:InitOptions() 
89  LibStub("AceConfig-3.0"):RegisterOptionsTable("Multishot", options); 
90  Multishot.PrefPane = LibStub("AceConfigDialog-3.0"):AddToBlizOptions("Multishot"); 
91  setmetatable(MultishotConfig, {__index = defaults}
92end 
Download and save
Toggle line numbers
Thread:
[127652] Multishot r33+ (config.lua) by Dridzt at 2009-11-05 22:23:58
Tip: Click the line numbers to toggle highliting on that line.

Paste followup:

Language:
Author:
Subject:


    Tabstop:     bigger biggest
Note: You can prefix a line with "@@@" to highlight it.