Multi Section Expandable container with tabbed inner content.
MultiSection is an expandable container with tabbed inner content.
local Multi = MainTab : MultiSection ({
Title = "Combat Modes" ,
Desc = "Switch between profiles" ,
Icon = "crosshair" ,
Box = true ,
BoxBorder = true ,
Opened = true ,
})
Key Type Default Notes Titlestring"Section"Header title Descstring?nilHeader description Iconstring?nilHeader icon TextXAlignment"Left" | "Center" | "Right""Left"Header text alignment TextSizenumber19Header title text size DescTextSizenumber16Header description text size BoxbooleanfalseEnables boxed background BoxBorderbooleanfalseShows outline when Box=true FontWeightEnum.FontWeightSemiBoldHeader title weight DescFontWeightEnum.FontWeightMediumHeader desc weight TextTransparencynumber0.05Header title transparency DescTextTransparencynumber0.4Header desc transparency HoverbooleantrueHover/press feedback OpenedbooleanfalseStarts opened LockedbooleanfalseStarts locked LockedTitlestring?nilStored; no built-in label in this container HeaderSizenumber42Header base size IconSizenumber20Header icon size HeaderGapnumber10Horizontal spacing in header HeaderPaddingXnumberdynamic Horizontal header padding HeaderPaddingYnumberdynamic Vertical header padding TabGapnumber6Gap between tab chips TabPaddingXnumber12Tab chip horizontal padding TabPaddingYnumber8Tab chip vertical padding TabTextSizenumber15Tab title size TabDescTextSizenumber13Tab desc size
Method Signature Description SetIconMulti:SetIcon(iconOrNil)Updates/removes header icon SetTitleMulti:SetTitle(title)Updates header title SetDescMulti:SetDesc(descOrNil)Updates/removes description LockMulti:Lock()Locks header interaction and tab elements UnlockMulti:Unlock()Unlocks interaction and tab elements SelectTabMulti:SelectTab(tabValue, isInstant)Selects tab by object, index, or title GetSelectedTabMulti:GetSelectedTab()Returns selected tab object GetTabsMulti:GetTabs()Returns all tab objects TabMulti:Tab(tabConfig)Creates a tab inside this multi section OpenMulti:Open(isNotAnim)Opens content area CloseMulti:Close(isNotAnim)Closes content area DestroyMulti:Destroy()Destroys container and all tab content
Key Type Default Notes Titlestring"Tab N"Tab title Descstring?nilTab subtitle Iconstring?nilTab icon IconThemedboolean?nilUses themed icon coloring SelectedbooleanfalseSelect immediately OpenedbooleanfalseAlias for immediate select
Method Signature Description SelectTab:Select(isInstant)Selects this tab DestroyTab:Destroy()Removes this tab and its elements
Each tab also receives element constructors:
Paragraph, Button, ButtonKeybind, Toggle, ToggleKeybind, Slider, Keybind, Input, Dropdown, Code, Colorpicker, Section, MultiSection, Divider, Space, Image, Group, Video.
local Multi = MainTab : MultiSection ({
Title = "Combat Modes" ,
Desc = "Select your profile" ,
Icon = "crosshair" ,
Box = true ,
BoxBorder = true ,
Opened = true ,
})
local Rage = Multi : Tab ({
Title = "Rage" ,
Desc = "Aggressive settings" ,
Icon = "flame" ,
Selected = true ,
})
local Legit = Multi : Tab ({
Title = "Legit" ,
Desc = "Low profile settings" ,
Icon = "shield-check" ,
})
Rage : Toggle ({
Title = "Silent Aim" ,
Value = false ,
})
Legit : Slider ({
Title = "FOV" ,
Value = { Min = 10 , Max = 250 , Default = 80 },
})
Multi : SetIcon ( "swords" )
Multi : SetTitle ( "Profiles" )
Multi : SetDesc ( "Switch behavior quickly" )
Multi : SelectTab ( "Legit" , true )
Multi : SelectTab ( 1 , false )
Multi : SelectTab (Rage)
local selected = Multi : GetSelectedTab ()
print ( "Selected tab:" , selected and selected. Title )
local allTabs = Multi : GetTabs ()
print ( "Tab count:" , # allTabs)
local temp = Multi : Tab ({ Title = "Temporary" })
temp : Select ( true )
temp : Destroy ()
Multi : Open ( true )
Multi : Close ( false )
Multi : Lock ()
Multi : Unlock ()