This repository has been archived by the owner on Jan 6, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Config.lua
132 lines (125 loc) · 2.9 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
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
local addon = Lyranthe;
local AceConfigOptions = {};
local AceConfig = LibStub("AceConfig-3.0");
local AceConfigRegistry = LibStub("AceConfigRegistry-3.0");
local AceDB = LibStub("AceDB-3.0");
local labDefaultConfig = {
outOfRangeColoring = "button",
tooltip = "enabled",
showGrid = true,
colors = {
range = { 0.8, 0.1, 0.1 },
mana = { 0.5, 0.5, 1.0 }
},
hideElements = {
macro = false,
hotkey = false,
equipped = false,
},
keyBoundTarget = nil,
clickOnDown = false,
flyoutDirection = "UP",
}
local buttonDefaults = {
labConfig = labDefaultConfig,
width = nil,
height = nil,
states = {
default = {type = "empty",
action = 0,
},
},
attributes = {
["useparent-unit"] = true,
},
unit = nil,
};
local defaultStates = {
"[overridebar][vehicleui][possessbar,@vehicle,exists]override",
"[@mouseover, harm, mod:ctrl]cc-mo",
"[@focus, harm, mod:ctrl]cc-fo",
"[@target, harm, mod:ctrl]cc-ta",
"[@mouseover,help,nodead]heal-mo",
"[@target,help,nodead]heal-ta",
"[@mouseover,help,dead]rez-mo",
"[@target,help,dead]rez-ta",
"[@target,exists]default-ta",
"[@mouseover,exists]default-mo",
"[]default-df",
};
-- Default settings
local DefaultSettings = {
profile = {
bars = {
[1] = {
name = "Bar1",
relativeTo = "UIParent",
anchorPoint = "BOTTOMLEFT",
relativePoint = "BOTTOMLEFT",
xOffset = 430,
yOffset = 160,
buttons = {
[1] = buttonDefaults,
[2] = buttonDefaults,
[3] = buttonDefaults,
[4] = buttonDefaults,
[5] = buttonDefaults,
[6] = buttonDefaults,
[7] = buttonDefaults,
},
states = defaultStates,
},
[2] = {
name = "Bar2",
relativeTo = "UIParent",
anchorPoint = "BOTTOMLEFT",
relativePoint = "BOTTOMLEFT",
xOffset = 430,
yOffset = 120,
buttons = {
[1] = buttonDefaults,
[2] = buttonDefaults,
[3] = buttonDefaults,
[4] = buttonDefaults,
[5] = buttonDefaults,
[6] = buttonDefaults,
[7] = buttonDefaults,
},
states = defaultStates,
},
[3] = {
name = "Bar3",
relativeTo = "UIParent",
anchorPoint = "BOTTOMLEFT",
relativePoint = "BOTTOMLEFT",
xOffset = 468,
yOffset = 80,
buttons = {
[1] = buttonDefaults,
[2] = buttonDefaults,
[3] = buttonDefaults,
[4] = buttonDefaults,
[5] = buttonDefaults,
},
states = defaultStates,
},
[4] = {
name = "Bar4",
relativeTo = "UIParent",
anchorPoint = "BOTTOMLEFT",
relativePoint = "BOTTOMLEFT",
xOffset = 506,
yOffset = 40,
buttons = {
[1] = buttonDefaults,
[2] = buttonDefaults,
[3] = buttonDefaults,
},
states = defaultStates,
},
},
},
};
function addon:InitConfig()
addon.configDB = AceDB:New("LyrantheDB", DefaultSettings);
end