-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathconfig.lua
More file actions
189 lines (182 loc) · 6.89 KB
/
config.lua
File metadata and controls
189 lines (182 loc) · 6.89 KB
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
local _, ns = ...
local Filger = ns.Filger
local class = Filger.class
local cooldowns = Filger.cooldowns or {}
local blacklist = Filger.blacklist or {}
local spells = Filger.spells or {}
local all = Filger.all or {}
------------------------------------------------------------
-- Config
------------------------------------------------------------
--[[
* filter -- list of filters, separated by spaces or pipes. "HELPFUL" by default.
-- "HELPFUL" : Buffs
-- "HARMFUL" : Debuffs
-- "PLAYER" : Auras Debuffs applied by the player
-- "RAID" : Buffs the player can apply and debuffs the player can dispell
-- "CANCELABLE" : Buffs that can be cancelled with /cancelaura or CancelUnitBuff()
-- "NOT_CANCELABLE" : Buffs that cannot be cancelled
-- "INCLUDE_NAME_PLATE_ONLY" : Auras that should be shown on nameplates
-- "MAW" : Torghast Anima Powers
* unit -- unit whose auras to query. ("player", "target", "focus", etc.)
* caster -- aura caster.
* showOnlyPlayer --
* isDebuff --
* hidePlayer --
]]
local size = 35
local spacing = 5
local xOffset, yOffset = 200, 39
Filger.config = {
["general"] = {
["backdrop"] = {
["color"] = Filger:CreateColor(0.15, 0.15, 0.15)
},
["border"] = {
["color"] = Filger:CreateColor(0.00, 0.00, 0.00),
["size"] = 1
},
["well_fed"] = false, -- enabled filter to hide well fed buff (too many spells with this name)
["gametooltip"] = true, -- enabled tooltips
},
["frames"] = {
-- LEFT
["PLAYER_DEBUFFS"] = {
enabled = true,
unit = "player",
filter = "HARMFUL",
anchor = { "RIGHT", UIParent, "CENTER", -xOffset, yOffset },
limit = 8,
size = size,
spacing = spacing,
initialAnchor = "BOTTOMRIGHT",
["growth-x"] = "LEFT",
["growth-y"] = "DOWN",
spells = {
[124275] = { enabled = true, priority = 3 }, -- Light Stagger
[124274] = { enabled = true, priority = 3 }, -- Moderate Stagger
[124273] = { enabled = true, priority = 3 } -- Heavy Stagger
}
},
["PLAYER_AURAS"] = {
enabled = true,
unit = "player",
filter = "PLAYER|HELPFUL",
anchor = { "RIGHT", UIParent, "CENTER", -xOffset, 0 },
limit = 8,
size = size,
spacing = spacing,
initialAnchor = "BOTTOMRIGHT",
["growth-x"] = "LEFT",
["growth-y"] = "DOWN",
spells = Mixin(spells[class] or {}, spells["ALL"] or {})
},
["PLAYER_BUFFS"] = {
enabled = true,
unit = "player",
filter = "HELPFUL",
caster = "all",
hidePlayer = true,
anchor = { "RIGHT", UIParent, "CENTER", -xOffset, -yOffset },
limit = 8,
size = size,
spacing = spacing,
initialAnchor = "BOTTOMRIGHT",
["growth-x"] = "LEFT",
["growth-y"] = "DOWN",
FilterAura = function(element, unit, data)
return data.enabled and not data.isPlayerAura
end
},
["TARGET_DEBUFFS"] = {
enabled = true,
unit = "target",
filter = "HARMFUL",
anchor = { "LEFT", UIParent, "CENTER", xOffset, yOffset },
limit = 8,
size = size,
spacing = spacing,
initialAnchor = "BOTTOMLEFT",
["growth-x"] = "RIGHT",
["growth-y"] = "DOWN",
spells = all,
FilterAura = function(element, unit, data)
if UnitCanAttack(unit, "player") then
return data.enabled and data.isPlayerAura
end
return data.enabled and not data.isPlayerAura
end,
SortAuras = function(a, b)
if (a.priority ~= b.priority) then
return a.priority < b.priority
end
if (a.expirationTime ~= b.expirationTime) then
return a.expirationTime < b.expirationTime
end
if (a.isPlayerAura ~= b.isPlayerAura) then
return a.isPlayerAura
end
return a.auraInstanceID < b.auraInstanceID
end
},
["TARGET_AURAS"] = {
enabled = true,
unit = "target",
filter = "HELPFUL",
anchor = { "LEFT", UIParent, "CENTER", xOffset, 0 },
limit = 8,
size = size,
spacing = spacing,
initialAnchor = "BOTTOMLEFT",
["growth-x"] = "RIGHT",
["growth-y"] = "DOWN",
spells = all
},
["FOCUS_DEBUFFS"] = {
enabled = true,
unit = "focus",
filter = "HARMFUL",
anchor = { "LEFT", UIParent, "CENTER", xOffset, -yOffset },
limit = 8,
size = size,
spacing = spacing,
initialAnchor = "BOTTOMLEFT",
["growth-x"] = "RIGHT",
["growth-y"] = "DOWN",
desaturated = false,
FilterAura = function(element, unit, data)
return data.enabled and data.isBossAura or (data.sourceUnit == nil) or not data.isFromPlayerOrPlayerPet
end
},
["BOSS_DEBUFFS"] = {
enabled = false,
unit = "player",
filter = "HARMFUL",
anchor = { "CENTER", UIParent, "CENTER", 0, 160 },
limit = 1,
size = math.floor(1.5 * size),
spacing = spacing,
initialAnchor = "BOTTOMLEFT",
["growth-x"] = "RIGHT",
["growth-y"] = "DOWN",
FilterAura = function(element, unit, data)
return data.enabled and data.isBossAura or (data.sourceUnit == nil)
end
},
["PLAYER_COOLDOWNS"] = {
enabled = true,
unit = "player",
filter = "COOLDOWN",
caster = "player",
anchor = { "CENTER", UIParent, "BOTTOM", 0, 175 },
limit = 8,
size = 38,
max_size = 40,
spacing = 3,
initialAnchor = "CENTER",
["growth-x"] = "CENTER",
["growth-y"] = "CENTER",
spells = cooldowns
}
}
}