-
Notifications
You must be signed in to change notification settings - Fork 45
Expand file tree
/
Copy pathsettings.lua
More file actions
executable file
·126 lines (111 loc) · 3.92 KB
/
settings.lua
File metadata and controls
executable file
·126 lines (111 loc) · 3.92 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
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
local L = LibStub("AceLocale-3.0"):GetLocale("HonorSpy", true)
local options = {
type = "group",
name = L["HonorSpy Options"],
args = {}
}
options.args["minimapButton"] = {
order = 0,
type = "toggle",
name = L["Hide Minimap Button"],
desc = L["Use \'/hs show\' to bring HonorSpy window, if hidden. Will Reload UI on change."],
get = function() return HonorSpy.db.factionrealm.minimapButton.hide end,
set = function(info, v) HonorSpy.db.factionrealm.minimapButton.hide = v; ReloadUI() end,
}
options.args["minimapButtonDesc"] = {
order = 1,
type = "description",
name = L["Use \'/hs show\' to bring HonorSpy window, if hidden. Will Reload UI on change."] .. '\n\n'
}
options.args["sep1"] = {
order = 2,
type = "description",
name = "\n"
}
options.args["estHonorCol"] = {
order = 3,
type = "toggle",
name = L["Show Estimated Honor"],
desc = L["Shows the Estimated Honor column in the table. This data will only be populated by other people with HonorSpy."],
get = function() return HonorSpy.db.factionrealm.estHonorCol.show end,
set = function(info, v) HonorSpy.db.factionrealm.estHonorCol.show = v; HonorSpyGUI:PrepareGUI() end,
}
options.args["estTodayHonorCol"] = {
order = 4,
type = "toggle",
name = "Show Estimated Todays Honor",
desc = "Shows the Estimated Todays Honor column in the table. This data will only be populated by other people with HonorSpy.",
get = function() return HonorSpy.db.factionrealm.estTodayHonorCol.show end,
set = function(info, v) HonorSpy.db.factionrealm.estTodayHonorCol.show = v; HonorSpyGUI:PrepareGUI() end,
}
options.args["estHonorColDesc"] = {
order = 5,
type = "description",
name = L["Shows the Estimated Honor column in the table. This data will only be populated by other people with HonorSpy."] .. '\n\n'
}
options.args["sep1"] = {
order = 6,
type = "description",
name = "\n"
}
options.args["poolBoost"] = {
order = 7,
type = "range",
name = L["Pool Booster Count"],
desc = L["Number of characters to add to Pool"],
min = 0,
max = 10000,
step = 5,
bigStep = 100,
get = function() return HonorSpy.db.factionrealm.poolBoost end,
set = function(info, v) HonorSpy.db.factionrealm.poolBoost = tonumber(v); end
}
options.args["spreadPoolBoostOverWeek"] = {
order = 8,
type = "toggle",
name = L["Spread the poolboost count over the week"],
desc = L["As final pool boost should be only achieved at the end of the week"],
get = function() return HonorSpy.db.factionrealm.spreadPoolBoostOverWeek end,
set = function(info, v) HonorSpy.db.factionrealm.spreadPoolBoostOverWeek = v; end
}
options.args["sep2"] = {
order = 9,
type = "description",
name = L["This is how big the discrepancy is at the end of PvP week between HonorSpy pool size and real server pool size. Pool size will slowly be growing during the week reaching the final value of 'gathered number of players' + 'pool boost size'."] .. "\n\n"
}
options.args["sep3"] = {
order = 10,
type = "description",
name = "\n"
}
options.args["som_realm"] = {
order = 11,
type = "toggle",
name = L["Season of Mastery"],
desc = L["Implements the ranking changes applied to Season of Mastery."],
get = function() return HonorSpy.db.factionrealm.isSom end,
set = function(info, v) HonorSpy.db.factionrealm.isSom = v; ReloadUI() end,
}
options.args["sep4"] = {
order = 12,
type = "description",
name = L["Enables Season of Mastery ranking changes."] .. '\n\n'
}
options.args["export"] = {
order = 13,
type = "execute",
name = L["Export to CSV"],
desc = L["Show window with current data in CSV format"],
func = function() HonorSpy:ExportCSV() end,
}
options.args["purge_data"] = {
order = 14,
type = "execute",
name = L["Purge all data"],
desc = L["Delete all collected data"],
confirm = true,
confirmText = L["Delete all collected data"] .. '?',
func = function() HonorSpy:ResetWeek() end,
}
LibStub("AceConfig-3.0"):RegisterOptionsTable("HonorSpy-options", options)
LibStub("AceConfigDialog-3.0"):AddToBlizOptions("HonorSpy-options", "HonorSpy")