-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.lua
60 lines (58 loc) · 1.71 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
local myname, ns = ...
ns.defaults = {
profile = {
icon_scale = 1.5,
icon_alpha = 1.0,
complete = false,
},
}
ns.options = {
type = "group",
name = myname:gsub("HandyNotes_", ""),
get = function(info) return ns.db[info[#info]] end,
set = function(info, v)
ns.db[info[#info]] = v
ns.HL:SendMessage("HandyNotes_NotifyUpdate", myname:gsub("HandyNotes_", ""))
end,
args = {
icon = {
type = "group",
name = "Icon settings",
inline = true,
args = {
desc = {
name = "These settings control the look and feel of the icon.",
type = "description",
order = 0,
},
icon_scale = {
type = "range",
name = "Icon Scale",
desc = "The scale of the icons",
min = 0.25, max = 2, step = 0.01,
order = 20,
},
icon_alpha = {
type = "range",
name = "Icon Alpha",
desc = "The alpha transparency of the icons",
min = 0, max = 1, step = 0.01,
order = 30,
},
},
},
display = {
type = "group",
name = "What to display",
inline = true,
args = {
complete = {
type = "toggle",
name = "Show complete",
desc = "Show icons for the leyline taps already activated",
order = 0,
},
},
},
},
}