-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMenu.lua
46 lines (43 loc) · 1.52 KB
/
Menu.lua
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
local LAM2 = LibAddonMenu2
LibWarCry = LibWarCry or {}
-- create a custom menu by using LibCustomMenu
function LibWarCry.createMenu()
local panelData = {
type = "panel",
name = "WarCry",
displayName = "WarCry",
author = "|c76c3f4@m00nyONE|r",
version = LibWarCry.version,
website = "https://github.com/m00nyONE/LibWarCry",
feedback = "https://www.esoui.com/downloads/info3212-LibWarCry.html#comments",
donation = LibWarCry.donate,
slashCommand = "/wcsettings",
registerForRefresh = true,
registerForDefaults = true,
}
local optionsTable = {
[1] = {
type = "header",
name = GetString(LIBWARCRY_MENU_GCS_NAME),
width = "full",
},
[2] = {
type = "checkbox",
name = GetString(LIBWARCRY_MENU_GCS_SYNCED_WARCRY_TITLE),
tooltip = GetString(LIBWARCRY_MENU_GCS_SYNCED_WARCRY_TOOLTIP),
getFunc = function() return LibWarCry.savedVariables.groupCommands end,
setFunc = function(value) LibWarCry.toggleListener(value) end,
width = "half",
default = true,
},
[3] = {
type = "texture",
image = "/esoui/art/icons/trophy_malacaths_wrathful_flame.dds",
imageWidth = 64,
imageHeight = 64,
width = "half",
},
}
LAM2:RegisterAddonPanel("LibWarCryMenu", panelData)
LAM2:RegisterOptionControls("LibWarCryMenu", optionsTable)
end