-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.lua
77 lines (64 loc) · 1.5 KB
/
config.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
local addon, ns = ...
local cfg = {}
local barConfig = {}
local filterConfig = {}
-- global enable
cfg.enable = true
-- spellbar config
-- spellbar position
barConfig.position = {
x = 0,
y = -180,
}
-- spellbar relatives
barConfig.relative = {
frame = UIParent,
anchor = "CENTER",
}
barConfig.anchor = "CENTER"
-- set nil to arrange every icon in one row
barConfig.perRow = nil
-- anchor of tooltip of spells. avialable value:
-- ANCHOR_NONE, ANCHOR_CURSOR, ANCHOR_BOTTOMLEFT, ANCHOR_BOTTOMRIGHT, ANCHOR_LEFT, ANCHOR_RIGHT, ANCHOR_TOPLEFT, ANCHOR_TOPRIGHT
barConfig.tooltipAnchor = "ANCHOR_CURSOR"
-- icon size
barConfig.button = {
height = 36,
width = 36,
margin = 4,
}
-- filter config
-- where to track the mobs' abilities
filterConfig.track = {
Dungeon = true,
Raid = true,
Scenario = true,
None = true,
}
-- where to show the bar of the mobs' abilities
filterConfig.show = {
Dungeon = nil,
Raid = nil,
Scenario = nil,
None = nil,
}
-- where to save to local file when player logout
filterConfig.save = {
Dungeon = nil,
Raid = nil,
Scenario = nil,
None = nil,
}
-- if set nil, filterConfig.show and filterConfig.save will follow filterConfig.track
for k, v in pairs(filterConfig.track) do
if filterConfig.show[k] == nil then
filterConfig.show[k] = v
end
if filterConfig.save[k] == nil then
filterConfig.save[k] = v
end
end
-- do not touch~
cfg.barConfig = barConfig
cfg.filterConfig = filterConfig
ns.cfg = cfg