-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathBlizConfigOpts.lua
executable file
·54 lines (48 loc) · 1.63 KB
/
BlizConfigOpts.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
-- BlizConfigOpts.lua
-- config options at ESC -> Blizzard Options -> Addons -> UFO
-- NOT IN USE
-------------------------------------------------------------------------------
-- Module Loading
-------------------------------------------------------------------------------
---@type Ufo
local ADDON_NAME, Ufo = ...
Ufo.Wormhole() -- Lua voodoo magic that replaces the current Global namespace with the Ufo object
local debug = Debug:new()
-------------------------------------------------------------------------------
-- Constants: Ace -> Bliz Config UI definition
-------------------------------------------------------------------------------
local escMenuConfigDef = {
name = ADDON_NAME,
type = "group",
args = {
respectSpec = {
name = "Swap with spec",
desc = "Auto swap flyout locations on the action bars when you change your class spec.",
type = "toggle",
set = function(info, val)
Db.profile.respectSpec = val
end,
get = function()
return Db.profile.respectSpec
end
},
debug = {
name = "Show debug info",
desc = "Enable / disable debug information",
type = "toggle",
set = function(info, val)
Db.profile.debug = val
end,
get = function()
return Db.profile.debug
end
},
--aceProfileUi = {} -- will be populated by Ace in OnInitialize()
}
}
local defaultConfigOptions = {
profile = { -- required by AceDB
debug = false,
respectSpec = true,
}
}