forked from kakysha/HonorSpy
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsettings.lua
More file actions
executable file
·53 lines (47 loc) · 1.45 KB
/
Copy pathsettings.lua
File metadata and controls
executable file
·53 lines (47 loc) · 1.45 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
local L = LibStub("AceLocale-3.0"):GetLocale("RankCollector", true)
local options = {
type = "group",
name = L["RankCollector Options"],
args = {}
}
options.args["minimapButton"] = {
order = 0,
type = "toggle",
name = L["Hide Minimap Button"],
desc = L["Use \'/hs show\' to bring RankCollector window, if hidden. Will Reload UI on change."],
get = function() return RankCollector.db.factionrealm.minimapButton.hide end,
set = function(info, v) RankCollector.db.factionrealm.minimapButton.hide = v; ReloadUI() end,
}
options.args["minimapButtonDesc"] = {
order = 1,
type = "description",
name = L["Use \'/hs show\' to bring RankCollector window, if hidden. Will Reload UI on change."] .. '\n\n'
}
options.args["sep1"] = {
order = 2,
type = "description",
name = "\n"
}
options.args["sep1"] = {
order = 3,
type = "description",
name = "\n"
}
options.args["export"] = {
order = 4,
type = "execute",
name = L["Export to CSV"],
desc = L["Show window with current data in CSV format"],
func = function() RankCollector:ExportCSV() end,
}
options.args["purge_data"] = {
order = 5,
type = "execute",
name = L["_ purge all data"],
desc = L["Delete all collected data"],
confirm = true,
confirmText = L["Delete all collected data"] .. '?',
func = function() RankCollector:ResetWeek() end,
}
LibStub("AceConfig-3.0"):RegisterOptionsTable("RankCollector-options", options)
LibStub("AceConfigDialog-3.0"):AddToBlizOptions("RankCollector-options", "RankCollector")