-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathOptionsTabs.lua
More file actions
32 lines (28 loc) · 846 Bytes
/
OptionsTabs.lua
File metadata and controls
32 lines (28 loc) · 846 Bytes
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
local AceAddon = LibStub("AceAddon-3.0")
local addon = AceAddon and AceAddon:GetAddon("SimpleUnitFrames", true)
if not addon then
return
end
local UNIT_SECTION_NAV = {
{ key = "general", label = "General" },
{ key = "bars", label = "Bars" },
{ key = "castbar", label = "Castbar" },
{ key = "auras", label = "Auras" },
{ key = "plugins", label = "Plugins" },
{ key = "advanced", label = "Advanced" },
}
local UNIT_SUB_TABS = {
{ key = "all", label = "All" },
{ key = "general", label = "General" },
{ key = "bars", label = "Bars" },
{ key = "castbar", label = "Castbar" },
{ key = "auras", label = "Auras" },
{ key = "plugins", label = "Plugins" },
{ key = "advanced", label = "Advanced" },
}
function addon:GetOptionsUnitSectionNav()
return UNIT_SECTION_NAV
end
function addon:GetOptionsUnitSubTabs()
return UNIT_SUB_TABS
end