-
Notifications
You must be signed in to change notification settings - Fork 1
/
Settings.lua
36 lines (30 loc) · 1.01 KB
/
Settings.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
-- Slightly Improved™ Buff Tracking
-- The MIT License © 2016 Arthur Corenzan
local NAMESPACE = "SlightlyImprovedBuffTracking"
local settings = {}
local panel =
{
type = "panel",
name = "Slightly Improved™ Buff Tracking",
displayName = "Slightly Improved™ Buff Tracking",
author = nil,
version = nil,
}
local options =
{
{
type = "dropdown",
name = "Duration Indicator",
tooltip = "Whether to use duration label or a cooldown effect to indicate how much time is left until the effect expires.",
choices = {"Label", "Cooldown"},
getFunc = function() return settings.durationIndicator end,
setFunc = function(value) settings.durationIndicator = value end,
-- requiresReload = true,
},
}
CALLBACK_MANAGER:RegisterCallback(NAMESPACE.."_OnAddOnLoaded", function(savedVars)
settings = savedVars
local LAM = LibStub("LibAddonMenu-2.0")
LAM:RegisterAddonPanel(NAMESPACE, panel)
LAM:RegisterOptionControls(NAMESPACE, options)
end)