-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathevents.lua
More file actions
27 lines (26 loc) · 1.06 KB
/
Copy pathevents.lua
File metadata and controls
27 lines (26 loc) · 1.06 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
local A, L = ...
L.eventFrame:RegisterEvent("ADDON_LOADED")
L.eventFrame:SetScript("OnEvent", function(_, event, ...)
if event == "ADDON_LOADED" then
local name = ...
if name == L.name then
--LoadDB
--db data aleardy loaded if ADDON_LOADED fires for the addon
L.F.LoadDB()
--RegisterOptionsPanel
L.F.RegisterOptionsPanel()
--LoadModuleChat
if L.DB.settings.modules.chat.enabled == true then L.F.LoadModuleChat() end
--LoadModuleDarkMode
if L.DB.settings.modules.darkmode.enabled == true then L.F.LoadModuleDarkMode() end
--LoadModuleSpellAlert
if L.DB.settings.modules.spellalert.enabled == true then L.F.LoadModuleSpellAlert() end
--LoadModuleStateDriver
if L.DB.settings.modules.statedriver.enabled == true then L.F.LoadModuleStateDriver() end
--LoadModuleTooltip
if L.DB.settings.modules.tooltip.enabled == true then L.F.LoadModuleTooltip() end
--LoadModuleVignette
if L.DB.settings.modules.vignette.enabled == true then L.F.LoadModuleVignette() end
end
end
end)