-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathSettings.lua
More file actions
37 lines (31 loc) · 1.1 KB
/
Copy pathSettings.lua
File metadata and controls
37 lines (31 loc) · 1.1 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
-- Slightly Improved™ Experience Bar
-- The MIT License © 2019 Arthur Corenzan
-- FreeBSD License © 2014 Kevin Douglas
local NAMESPACE = "SlightlyImprovedExperienceBar"
local settings = {}
local panel =
{
type = "panel",
name = "Slightly Improved™ Experience Bar",
displayName = "Slightly Improved™ Experience Bar",
author = nil,
version = nil,
}
local options =
{
{
type = "dropdown",
name = "Visibility",
tooltip = "Controls the visibility of the Experience Bar. When set to automatic the Experience Bar will only appear in useful situations like when you level up or in the inventory screen.",
choices = {"Automatic", "Always Show"},
getFunc = function() return settings.visibility end,
setFunc = function(value) settings.visibility = 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)