-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMenu.lua
More file actions
177 lines (170 loc) · 6.04 KB
/
Menu.lua
File metadata and controls
177 lines (170 loc) · 6.04 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
function InventoryManager.test_func(panel)
if panel == InventoryManager.main_panel then
InventoryManager:UpdateSettingsData()
end
end
function InventoryManager:InitMenu()
local LAM = LibAddonMenu2
if LAM == nil then return end
local panelName = "InventoryManagerPannel"
local panelData = {
type = "panel",
name = "Inventory Manager",
displayName = string.format("%s%s|u5:0::Inventory Manager|u", "|t32:32:esoui/art/champion/champion_points_stamina_icon-hud-32.dds|t", ""),
author = string.format("%s@elDrag0n|r", self.colours.author),
--website = "https://www.esoui.com/forums/showthread.php?p=43242",
version = self.version,
slashCommand = "/im",
registerForRefresh = true
}
local panel = LAM:RegisterAddonPanel(panelName, panelData)
InventoryManager.main_panel = panel
local optionsData =
{
{
type = "description",
text = SI_INVENTORY_MANAGER,
width = "full"
},
{
type = "header",
name = "Storage settings",
width = "full"
},
{
type = "description",
text = "Enable specific storage types to work with",
width = "full"
},
{
type = "checkbox",
name = "Bank",
getFunc = function() return self.savedVariables.bank_management end,
setFunc = function(value) self.savedVariables.bank_management = value end,
tooltip = "Best tooltip!",
width = "full"
},
{
type = "checkbox",
name = "House chests",
getFunc = function() return self.savedVariables.house_chests_management end,
setFunc = function(value) self.savedVariables.house_chests_management = value end,
tooltip = "Best tooltip!",
width = "full"
},
{
type = "header",
name = "Item types settings",
width = "full"
},
{
type = "description",
text = "Enable specific item types to work with",
width = "full"
},
{
type = "checkbox",
name = "Rune materials",
getFunc = function() return self.savedVariables.rune_material end,
setFunc = function(value) self.savedVariables.rune_material = value end,
tooltip = "Best tooltip!",
width = "full"
},
{
type = "checkbox",
name = "Raw Materials",
getFunc = function() return self.savedVariables.raw_material end,
setFunc = function(value) self.savedVariables.raw_material = value end,
tooltip = "Best tooltip!",
width = "full"
},
{
type = "checkbox",
name = "Refined Materials",
getFunc = function() return self.savedVariables.refined_material end,
setFunc = function(value) self.savedVariables.refined_material = value end,
tooltip = "Best tooltip!",
width = "full"
},
{
type = "checkbox",
name = "Traits",
getFunc = function() return self.savedVariables.trait_material end,
setFunc = function(value) self.savedVariables.trait_material = value end,
tooltip = "Best tooltip!",
width = "full"
},
{
type = "checkbox",
name = "Boosters",
getFunc = function() return self.savedVariables.booster end,
setFunc = function(value) self.savedVariables.booster = value end,
tooltip = "Various boosters",
width = "full"
},
{
type = "checkbox",
name = "Alchemy",
getFunc = function() return self.savedVariables.alchemy end,
setFunc = function(value) self.savedVariables.alchemy = value end,
tooltip = "Alchemy materials",
width = "full"
},
{
type = "checkbox",
name = "Trophy",
getFunc = function() return self.savedVariables.trophy end,
setFunc = function(value) self.savedVariables.trophy = value end,
--disabled = function() return not self.savedVariables.alchemy end,
tooltip = "Maps, fragments etc.",
width = "full"
},
{
type = "checkbox",
name = "Lure",
getFunc = function() return self.savedVariables.lure end,
setFunc = function(value) self.savedVariables.lure = value end,
tooltip = "Lure for fishing",
width = "full"
},
{
type = "checkbox",
name = "Furnishing Materials",
getFunc = function() return self.savedVariables.furnishing_material end,
setFunc = function(value) self.savedVariables.furnishing_material = value end,
tooltip = "Various boosters",
width = "full"
},
{
type = "checkbox",
name = "Furnishing",
getFunc = function() return self.savedVariables.furnishing end,
setFunc = function(value) self.savedVariables.furnishing = value end,
tooltip = "Furnishing",
width = "full"
},
{
type = "checkbox",
name = "Style Materials",
getFunc = function() return self.savedVariables.style_material end,
setFunc = function(value) self.savedVariables.style_material = value end,
tooltip = "Style materials",
width = "full"
},
{
type = "header",
name = "Debug settings",
width = "full"
},
{
type = "checkbox",
name = "Debug messages",
getFunc = function() return self.savedVariables.debug end,
setFunc = function(value) self.savedVariables.debug = value end,
tooltip = "Prints debug messages in chat",
width = "full"
},
}
LAM:RegisterOptionControls(panelName, optionsData)
CALLBACK_MANAGER:RegisterCallback("LAM-PanelClosed", self.test_func)
end