promotional bannermobile promotional banner
premium banner
A selectable Panel Container for use with ACE3 GUI

Description

A selectable Panel Container for use with ACE3 GUI

 

 To use this:

 

local selpanel = AceGUI:Create("SelectablePanel")
selpanel:SetKey(key) -- Unique identifier 
selpanel:SetFullWidth(true)
selpanel:SetHeight(300)
viewframe.panels[key] = selpanel  -- Add to an array of panels so I can iterate through them to clear them when i select a different panel.
selpanel:SetCallback("OnClick", function(widget, _, selected, button)
  viewframe:clearpanels(widget, selected)  -- Clear Panels allows you to clear other panels in an array when you select this one.
end)
-- add a label to the panel
local label = AceGUI:Create("Label")
label:SetText(sequencename)
label:SetFont(fontName, fontHeight + 4 , fontFlags)
selpanel:AddChild(label)
...
container:AddChild(selpanel) -- Add it for display