-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathinit.lua
266 lines (257 loc) · 7.06 KB
/
init.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
local addonName, core = ...
local grid = bdCore.Grid
--------------------------------------
-- Configuration Main
--------------------------------------
local defaults = {}
local specialspells = {}
specialspells['Sentence of Sargeras'] = true
specialspells['Soulblight'] = true
specialspells['Soulbomb'] = true
specialspells['Fulminating Pulse'] = true
specialspells['Chilled Blood'] = true
---------------------------------
-- Frames Display
---------------------------------
defaults[#defaults+1] = {tab = {
type = "tab",
value = "Frames Display"
}}
defaults[#defaults+1] = {powerdisplay = {
type = "dropdown",
value = "None",
options = {"None","Healers","All"},
label = "Power Bar Display",
tooltip = "Show mana/energy/rage bars on frames.",
callback = function() bdCore:triggerEvent("bdGrid_update") end
}}
defaults[#defaults+1] = {powerheight = {
type = "slider",
value = 2,
min = 2,
max = 20,
step = 1,
label = "Power Bar Height",
tooltip = "The height of mana/energy/rage",
callback = function() bdCore.Grid:callback() end
}}
defaults[#defaults+1] = {width = {
type = "slider",
value = 60,
min = 20,
max = 100,
step = 2,
label = "Width",
tooltip = "The width of each player in the raid frames",
callback = function() bdCore.Grid:callback() end
}}
defaults[#defaults+1] = {height = {
type = "slider",
value = 50,
min = 20,
max = 100,
step = 2,
label = "Height",
tooltip = "The height of each player in the raid frames",
callback = function() bdCore.Grid:callback() end
}}
defaults[#defaults+1] = {hideabsorbs = {
type = "checkbox",
value = false,
label = "Hide Absorbs",
tooltip = "Not recommended, hide absorbs for units",
callback = function() bdCore.Grid:refresh() end
}}
defaults[#defaults+1] = {hidetooltips = {
type = "checkbox",
value = true,
label = "Hide Tooltips",
tooltip = "Hide tooltips when mousing over each unit",
callback = function() bdCore.Grid:refresh() end
}}
defaults[#defaults+1] = {showpartyleadericon = {
type = "checkbox",
value = true,
label = "Show Party Leader Indicator",
callback = function() bdCore.Grid:refresh() end
}}
defaults[#defaults+1] = {showGroupNumbers = {
type = "checkbox",
value = false,
label = "Show group numbers in raid",
callback = function() bdCore.Grid:refresh() end
}}
defaults[#defaults+1] = {invert = {
type = "checkbox",
value = false,
label = "Invert Frame Colors",
tooltip = "Make the main color of the frames a dark grey, and the backgrounds the class color.",
callback = function() bdCore.Grid:refresh() end
}}
defaults[#defaults+1] = {roleicon = {
type = "checkbox",
value = false,
label = "Show role icon for tanks and healers",
tooltip = "Will only show icon for tanks/healers (only in groups)",
callback = function() bdCore.Grid:callback() end
}}
defaults[#defaults+1] = {inrangealpha = {
type = "slider",
value = 1,
min = 0.1,
max = 1,
step = 0.1,
label = "In Range Alpha",
tooltip = "The transparency of a player who's in range",
callback = function() bdCore.Grid:callback() end
}}
defaults[#defaults+1] = {outofrangealpha = {
type = "slider",
value = 0.4,
min = 0.0,
max = 1.0,
step = 0.1,
label = "Out of Range Alpha",
tooltip = "The transparency of a player who's out of range",
callback = function() bdCore.Grid:callback() end
}}
---------------------------------
-- Aura Display
---------------------------------
defaults[#defaults+1] = {tab = {
type = "tab",
value = "Aura Display"
}}
defaults[#defaults+1] = {buffSize = {
type = "slider",
value = 14,
min = 8,
max = 40,
step = 2,
label = "Buff Size",
tooltip = "Size of each buff icon.",
callback = function() bdCore.Grid:callback() end
}}
defaults[#defaults+1] = {debuffSize = {
type = "slider",
value = 16,
min = 8,
max = 40,
step = 2,
label = "Debuff Size",
tooltip = "Size of each debuff icon.",
callback = function() bdCore.Grid:callback() end
}}
defaults[#defaults+1] = {showBuffTimers = {
type = "checkbox",
value = false,
label = "Show buff cooldown timers",
callback = function() bdCore.Grid:callback() end
}}
defaults[#defaults+1] = {showDebuffTimers = {
type = "checkbox",
value = false,
label = "Show debuff cooldown timers",
callback = function() bdCore.Grid:callback() end
}}
---------------------------------
-- Growth & Grouping
---------------------------------
defaults[#defaults+1] = {tab = {
type = "tab",
value = "Growth & Grouping"
}}
defaults[#defaults+1] = {showsolo = {
type = "checkbox",
value = true,
label = "Show raid frames when solo",
callback = function() bdCore.Grid:refresh() end
}}
defaults[#defaults+1] = {num_groups = {
type = "slider",
value = 4,
min = 1,
max = 8,
step = 1,
label = "Default number of Groups",
tooltip = "How many groups should be shown at a time",
callback = function() bdCore.Grid:refresh() end
}}
defaults[#defaults+1] = {intel_groups = {
type = "checkbox",
value = true,
label = "Automatically set group size.",
tooltip = "When in LFR, show 5 groups, mythic show 4, etc.",
callback = function() bdCore.Grid:refresh() end
}}
defaults[#defaults+1] = {group_growth = {
type = "dropdown",
value = "Left",
options = {"Left","Right","Upwards","Downwards"},
label = "Group stack direction",
tooltip = "Group stacking direction for when a new group is added.",
callback = function() bdCore.Grid:refresh() end
}}
defaults[#defaults+1] = {new_player_reverse = {
type = "checkbox",
value = false,
label = "Reverse new player growth.",
tooltip = "When a new player is added the default growth direction is Downward or Right depending on your group growth.",
callback = function() bdCore.Grid:refresh() end
}}
defaults[#defaults+1] = {group_sort = {
type = "dropdown",
value = "Group",
options = {"Group","Role","Class","Name"},
label = "Group By",
tooltip = "Method by which the groups should be formed.",
callback = function() bdCore.Grid:refresh() end
}}
defaults[#defaults+1] = {tab = {
type = "tab",
value = "Special Spells"
}}
defaults[#defaults+1] = {text = {
type = "text",
value = "Spells in the following list will create a 'Glow' animation around the frame when the unit has the bufff OR debuff.",
}}
defaults[#defaults+1] = {showspecialicons = {
type = "checkbox",
value = true,
label = "Show Special Spell icons by default",
callback = function() bdCore.Grid:refresh() end
}}
defaults[#defaults+1] = {specialalerts = {
type = "list",
value = specialspells,
label = "Special Alerts",
}}
defaults[#defaults+1] = {tab = {
type = "tab",
value = "Names"
}}
defaults[#defaults+1] = {namewidth = {
type = "slider",
value = 4,
min = 0,
max = 12,
step = 1,
label = "Truncate names to: ",
tooltip = "Longer names will be trucated to this size",
callback = function() bdCore.Grid:callback() end
}}
defaults[#defaults+1] = {text = {
type = "text",
value = "You can add or remove a nickname to a player by right clicking their name and clicking 'Add player alias'",
}}
-- aura conditional loading
local aura_config = bdConfigLib:GetSave('Auras')
if (not aura_config) then
aura_config = bdConfigLib:RegisterModule({
name = "Auras",
persistent = true
}, bdCore.auraconfig, "BD_persistent")
end
local config = bdConfigLib:RegisterModule({
name = "Grid"
}, defaults, "BD_persistent")