interface/cl_tab¶
Source: gamemode/framework/interface/cl_tab.lua
Sorts section keys by sort order, then by name alphabetically.
Documented functions: 8
Functions¶
PANEL:GetTabButtonData(key)PANEL:GetTabButtonPanel(key)PANEL:HideSidebar(fadeTime)PANEL:RestoreLastTab()PANEL:SelectFirstTab()PANEL:ShowSidebar(tabKey, sections, fadeTime)PANEL:SwitchSection(sectionKey)PANEL:SwitchTab(tabKey)
PANEL:GetTabButtonData(key)¶
Returns the tab/section data table for a given key.
Realm: client
PANEL:GetTabButtonPanel(key)¶
Returns the button panel for a given tab or section key.
Realm: client
PANEL:HideSidebar(fadeTime)¶
Hides the sidebar with an animation.
Realm: client
PANEL:RestoreLastTab()¶
Restores the last active tab/section, or selects the first tab.
Realm: client
PANEL:SelectFirstTab()¶
Selects the first available tab.
Realm: client
PANEL:ShowSidebar(tabKey, sections, fadeTime)¶
Shows the sidebar with section buttons for the given tab.
Realm: client
PANEL:SwitchSection(sectionKey)¶
Switches to a section within the current tab.
Realm: client
PANEL:SwitchTab(tabKey)¶
Switches to a main tab by key.
Realm: client