-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBearSynergiesMenu.lua
70 lines (67 loc) · 2.4 KB
/
BearSynergiesMenu.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
local BS = BearSynergies
local LAM = LibAddonMenu2
function BS.BuildMenu()
local panelData = BS:GetModulePanelData()
local optionsTable = {
{
type = 'header',
name = '|cFFFACDGeneral|r',
},
{
type = 'checkbox',
name = 'Account-Wide Settings',
getFunc = function() return BearSynergiesSV.Default[GetDisplayName()]['$AccountWide'].isAccountWide end,
setFunc = function(value) BearSynergiesSV.Default[GetDisplayName()]['$AccountWide'].isAccountWide = value end,
requiresReload = true,
default = BS.defaults.isAccountWide,
},
{
type = 'header',
name = '|cFFFACDModule Settings|r',
},
{
type = 'checkbox',
name = 'Synergy Block',
getFunc = function() return BS.sv.isBlock end,
setFunc = function(value) BS.sv.isBlock = value end,
width = 'half',
requiresReload = true,
default = BS.defaults.isBlock,
},
{
type = 'description',
text = 'Enables the possibility of blocking specific synergies or all synergies in defined scenarios.',
width = 'half',
},
{
type = 'checkbox',
name = 'Group Tracker',
getFunc = function() return BS.sv.isGroupTrack end,
setFunc = function(value) BS.sv.isGroupTrack = value end,
width = 'half',
requiresReload = true,
default = BS.defaults.isGroupTrack,
},
{
type = 'description',
text = 'Enables tracking of synergy cooldowns for group members, uptime of Alkosh and alerts for when Alkosh user needs your synergies.',
width = 'half',
},
{
type = 'checkbox',
name = 'Synergy Tracker',
getFunc = function() return BS.sv.isTrack end,
setFunc = function(value) BS.sv.isTrack = value end,
width = 'half',
requiresReload = true,
default = BS.defaults.isTrack,
},
{
type = 'description',
text = 'Enables the possibility of tracking the cooldown of synergies.',
width = 'half',
},
}
LAM:RegisterAddonPanel(BS.name .. 'Main', panelData)
LAM:RegisterOptionControls(BS.name .. 'Main', optionsTable)
end