-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDeveloperSuiteAbout.lua
More file actions
40 lines (32 loc) · 968 Bytes
/
DeveloperSuiteAbout.lua
File metadata and controls
40 lines (32 loc) · 968 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
33
34
35
36
37
38
39
40
-- Developer Suite
-- The MIT License © Arthur Corenzan
local NAMESPACE = "DeveloperSuite"
--
--
--
local DeveloperSuite_About = ZO_Object:Subclass()
function DeveloperSuite_About:New(...)
local about = ZO_Object.New(self)
about:Initialize(...)
return about
end
function DeveloperSuite_About:Initialize(control, savedVars)
DeveloperSuite_TopLevelControl_Initialize(self, control, savedVars)
end
function DeveloperSuite_About:Toggle()
if self.control:IsHidden() then
DeveloperSuite_TopLevelControl_Show(self.control)
else
DeveloperSuite_TopLevelControl_Hide(self.control)
end
end
--
--
--
local function OnAddOnLoaded(savedVars)
DEVELOPER_SUITE_ABOUT = DeveloperSuite_About:New(DeveloperSuite_AboutTopLevelControl, savedVars.about)
SLASH_COMMANDS["/developersuite"] = function()
DEVELOPER_SUITE_ABOUT:Toggle()
end
end
CALLBACK_MANAGER:RegisterCallback(NAMESPACE.."_OnAddOnLoaded", OnAddOnLoaded)