You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
478 B
22 lines
478 B
local WIT, core = ...
|
|
|
|
local AceGUI = LibStub("AceGUI-3.0")
|
|
|
|
function core.GuideModule(name, sections, category)
|
|
local self = core.Module(name, category)
|
|
|
|
self.Sections = sections
|
|
|
|
function self.Draw(container)
|
|
local frame = AceGUI:Create("ScrollFrame")
|
|
container:AddChild(frame)
|
|
|
|
for _, section in pairs(self.Sections) do
|
|
section.Draw(frame)
|
|
end
|
|
|
|
core.UI.ToggleQuickSearch(false)
|
|
end
|
|
|
|
return self
|
|
end
|
|
|