-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsettings.lua
More file actions
237 lines (227 loc) · 9.95 KB
/
settings.lua
File metadata and controls
237 lines (227 loc) · 9.95 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
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
local addon = {}
local LAM = LibAddonMenu2
function addon:Initialize(settingsName, settingsDisplayName, sv)
local panelData = {
type = 'panel',
name = settingsDisplayName,
author = '@impda',
}
local panel = LAM:RegisterAddonPanel(settingsName, panelData)
local optionsData = {
{
type = 'submenu',
name = 'Beautiful Campaigns Manager',
tooltip = 'COME AND FIGHT!',
controls = {
{
type = 'checkbox',
name = 'Enable',
getFunc = function() return sv.beautifulCampaignsManager.enabled end,
setFunc = function(value) sv.beautifulCampaignsManager.enabled = value end,
requiresReload = true,
},
{
type = 'checkbox',
name = 'Always show Icereach',
getFunc = function() return sv.beautifulCampaignsManager.showIcereach end,
setFunc = function(value) sv.beautifulCampaignsManager.showIcereach = value end,
requiresReload = true,
tooltip = 'Icereach is "below 50" campaign and will be hidden for characters level 50 and above. Turn ON to show it all the time insted.'
},
{
type = 'checkbox',
name = 'Show tooltip',
getFunc = function() return sv.beautifulCampaignsManager.showTooltip end,
setFunc = function(value) sv.beautifulCampaignsManager.showTooltip = value end,
requiresReload = true,
},
{
type = 'checkbox',
name = '[EXPERIMENTAL] Show bonuses',
getFunc = function() return sv.beautifulCampaignsManager.showBonuses end,
setFunc = function(value) sv.beautifulCampaignsManager.showBonuses = value end,
requiresReload = true,
},
{
type = 'checkbox',
name = '[EXPERIMENTAL] Autotransfer',
getFunc = function() return sv.beautifulCampaignsManager.autotransfer end,
setFunc = function(value) sv.beautifulCampaignsManager.autotransfer = value end,
requiresReload = true,
},
},
},
{
type = 'submenu',
name = 'Keep Tooltip',
-- tooltip = 'To go Cyrodiil or Imperial City',
controls = {
{
type = 'checkbox',
name = 'Enable',
getFunc = function() return sv.keepTooltip.enabled end,
setFunc = function(value) sv.keepTooltip.enabled = value end,
requiresReload = true,
},
{
type = 'checkbox',
name = 'Add tracker',
getFunc = function() return sv.keepTooltip.tracker end,
setFunc = function(value) sv.keepTooltip.tracker = value end,
requiresReload = true,
},
{
type = 'checkbox',
name = 'Add siege timer',
getFunc = function() return sv.keepTooltip.siegeTimer end,
setFunc = function(value) sv.keepTooltip.siegeTimer = value end,
requiresReload = true,
},
{
type = 'checkbox',
name = 'Add resources levels',
getFunc = function() return sv.keepTooltip.resourcesLevels end,
setFunc = function(value) sv.keepTooltip.resourcesLevels = value end,
requiresReload = true,
},
{
type = 'checkbox',
name = 'Update tooltip once per second',
getFunc = function() return sv.keepTooltip.continuousUpdate end,
setFunc = function(value) sv.keepTooltip.continuousUpdate = value end,
requiresReload = true,
tooltip = 'By default, tooltip updated only on MouseIn and MouseOut, enables update every second while mouse over any keep',
},
{
type = 'checkbox',
name = 'Show guild owner',
getFunc = function() return sv.keepTooltip.guildOwner end,
setFunc = function(value) sv.keepTooltip.guildOwner = value end,
requiresReload = true,
},
{
type = 'checkbox',
name = 'Hide resource guild owner',
getFunc = function() return sv.keepTooltip.hideResourceGuildOwner end,
setFunc = function(value) sv.keepTooltip.hideResourceGuildOwner = value end,
requiresReload = true,
},
{
type = 'checkbox',
name = 'Show forward camps timer',
getFunc = function() return sv.keepTooltip.forwardCampsTimer end,
setFunc = function(value) sv.keepTooltip.forwardCampsTimer = value end,
requiresReload = true,
},
},
},
{
type = 'submenu',
name = 'Battle Victories',
tooltip = 'Customize Battle Victories (crossed swords on map, also known as kill locations)',
controls = {
{
type = 'checkbox',
name = 'Compact',
getFunc = function() return sv.battleVictories.compact end,
setFunc = function(value) sv.battleVictories.compact = value end,
requiresReload = true,
},
},
},
{
type = 'submenu',
name = '3D Labels in IC Sewers',
-- tooltip = '',
controls = {
{
type = 'checkbox',
name = 'Enable',
getFunc = function() return sv.imprialSewersLabels.enabled end,
setFunc = function(value) sv.imprialSewersLabels.enabled = value end,
requiresReload = true,
},
{
type = 'dropdown',
name = 'Localization',
tooltip = [[
Addon Default - Short EN names (without "District").
Ingame Default - Full names in the chosen language (for EN and DE only, for now).
DE (Arboretum) - Same as "Ingame Default," but "Baumgartenbezirk" is replaced with "Arboretum".
]],
choices = {'Addon Default', 'Ingame Default', 'DE (Arboretum)'},
choicesValues = {'default', 'auto', 'de_special'},
getFunc = function() return sv.imprialSewersLabels.localization end,
setFunc = function(var) sv.imprialSewersLabels.localization = var end,
width = 'full',
warning = 'Will need to reload the UI',
requiresReload = true,
},
{
type = 'slider',
name = 'Text size (district names)',
getFunc = function() return sv.imprialSewersLabels.scale * 100 end,
setFunc = function(value)
sv.imprialSewersLabels.scale = value / 100
IMP_ISL_ScaleLabels(value / 100)
end,
min = 50,
max = 450,
},
{
type = 'slider',
name = 'Text height (district names)',
getFunc = function() return sv.imprialSewersLabels.height end,
setFunc = function(value)
sv.imprialSewersLabels.height = value
IMP_ISL_ChangeHeight(value)
end,
min = 100,
max = 1000,
},
{
type = 'checkbox',
name = 'Show banked Tel Vars',
getFunc = function() return sv.imprialSewersBankedTelvarsLabels.enabled end,
setFunc = function(value) sv.imprialSewersBankedTelvarsLabels.enabled = value end,
requiresReload = true,
},
},
},
{
type = 'submenu',
name = '3D Labels for Battlegrounds',
controls = {
{
type = 'description',
text = 'It took much time to actually make it as I had to be lucky enough to visit all maps, so if you find any bug or you have better ideas where to place these labels or better layout in mind - please contact me via ESOUI forum. Enjoy :)',
},
{
type = 'checkbox',
name = 'Enable',
getFunc = function() return sv.battlegroundLabels.enabled end,
setFunc = function(value) sv.battlegroundLabels.enabled = value end,
requiresReload = true,
}
},
},
}
local cyrodiilLabels = {}
cyrodiilLabels[#cyrodiilLabels+1] = {
type = 'checkbox',
name = 'Show Banked AP',
getFunc = function() return sv.cyrodiilLabels.showBankedAP end,
setFunc = function(value) sv.cyrodiilLabels.showBankedAP = value end,
requiresReload = true,
}
optionsData[#optionsData+1] = {
type = 'submenu',
name = 'Cyrodiil 3D Labels',
-- tooltip = '',
controls = cyrodiilLabels,
}
LAM:RegisterOptionControls(settingsName, optionsData)
end
function IMP_PVP_UI_InitializeSettings(...)
addon:Initialize(...)
end