This repository was archived by the owner on Jan 5, 2021. It is now read-only.
forked from suspectz/Corruption-Tooltips
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathConfig.lua
More file actions
63 lines (61 loc) · 2.09 KB
/
Config.lua
File metadata and controls
63 lines (61 loc) · 2.09 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
local L = LibStub("AceLocale-3.0"):GetLocale("CorruptionTooltips")
local myOptions =
{
name = "Corruption Tooltips",
type = "group",
args =
{
toggle =
{
type = "toggle",
name = L["Append to corruption stat"],
desc = L["Use the new style tooltip."],
set = function(info, val)
CorruptionTooltips.db.profile.append = val
end,
get = function() return CorruptionTooltips.db.profile.append end,
width = "full",
order = 10,
},
icon =
{
type = "toggle",
name = L["Show icon"],
desc = L["Show the spell icon along with the name."],
set = function(info, val)
CorruptionTooltips.db.profile.icon = val
end,
get = function() return CorruptionTooltips.db.profile.icon end,
width = "full",
order = 20,
},
summary =
{
type = "toggle",
name = L["Show summary on the corruption tooltip"],
desc = L["List your corruptions in the eye tooltip in the character screen."],
set = function(info, val)
CorruptionTooltips.db.profile.summary = val
end,
get = function() return CorruptionTooltips.db.profile.summary end,
width = "full",
order = 30,
},
english =
{
type = "toggle",
name = L["Display in English"],
desc = L["Don't translate the corruption effect names."],
set = function(info, val)
CorruptionTooltips.db.profile.english = val
end,
get = function() return CorruptionTooltips.db.profile.english end,
width = "full",
order = 40,
}
},
}
local AceConfig = LibStub("AceConfig-3.0")
local AceConfigDialog = LibStub("AceConfigDialog-3.0")
AceConfig:RegisterOptionsTable("CorruptionTooltips", myOptions, {"ct"})
AceConfigDialog:AddToBlizOptions("CorruptionTooltips", "Corruption Tooltips", nil)