Reference
Controllers Runtime methods returned by XLQP windows and elements.
Copy MarkdownOpen with AI
Most constructors return a controller. Store it when you plan to change, refresh, open, close, play, or destroy that element later.
Controller Methods Window MakeTab, newmaketabtop, MakeAdminTab, AddDialog, CreatePrivateTab, AddPrivateGroupbox, CreatePrivateMiniTab, OpenPrivateTabEditor, SelectPrivateTab, AddWidget, GetWidget, RemoveWidget, OpenWidgets, CloseWidgets, ToggleWidgets, SetWidgetsEnabled, SetTabButtonsStyle, GetTabButtonsStyle, GetTabButtonsStyleParameters, CreatePopup, SetSidebarCollapsed, SetGifBackground, RemoveGifBackground, IsGifBackgroundSupportedWidget SetTitle, SetImage, SetVisible, Toggle, SetPosition, SetSize, SetCornerRadius, AddElement, Clear, DestroyDialog AddInput, AddTextbox, AddToggle, DismissAdmin tab Normal tab element methods plus Lock Box section SetOpen, Toggle, SetTitleSidebar menu Open, CloseDropdown panel SetOpen, Toggle, Set, AddGroupbox, AddTabbox, SetTitle, SetIcon, SetVisible, SetPinned, SetCollapsed, SetSize, Refresh, Destroy, SetDetached, TogglePopout, RefreshControls, Select
Controller Methods Button Set, Press, SetLockedSmooth toggle Set, Toggle, SetName, SetDescription, SetLiveColorToggle Set, SetName, SetBind, SetSettingsOpen, AddActionRow, AddDropdown, AddMiniButtons, AddSlider, SendStatsToWebhookSlider Set, SetColor, GetColorsDropdown GetSelected, Set, Clear, SelectAll, Invert, Refresh, RefreshPlayers, UpdateAppearanceBind / key picker Set, SetMenuVisibility, GetMenuVisibilityText area Set, GetTextbox Set where supportedColor picker Set, SetTransparency, ResetStepper SetCooldown button Start, Cancel, SetDuration, IsCoolingDown, Trigger
Controller Methods Label SetText, GetText, SetVisible, IsVisible, Show, Hide, SetRichText, SetFont, SetIcon, SetColor, DestroyBadge / stat card / notice / shortcut SetProgress bar Set, SetColorKey-value list Set, Clear, AddItemDivider / spacer SetAction row AddButton, SetTitleChecklist Add, Set, Refresh, SetTitleTimeline Add, Clear, Refresh, SetTitleFilter list Add, Clear, Refresh, SetItems, Run, SetTitleNotify FireTag cloud / pill list Add, ClearStatus box SetStatus, SetTitle, SetText, SetContent, Set, DestroyChangelog Add, SetTitleBanner SetImage, SetTitle, SetContent, AddAction
Controller Methods Data table SetRows, AddRow, UpdateRow, RemoveRow, Clear, SetFilter, SortBy, GetSelectedRuntime monitor SetMetric, Refresh, Start, StopMeter group Set, AddLoadout group AddItem, SetItems, SetSelected, GetSelected, SetTitle, SetButtonText, EquipTable contents SetRows, Set, AddRow, RemoveRow, ClearRevenue card Add, BindChart, Reset, SetChange, SetMiniStatLine/bar chart Push, Replay; line chart also supports SetStacked chart ReplayStat Replay, SetProgress Increment, Replay where supportedDownload progress Download, Pause, Resume, Cancel
Controller Methods Image Set, SetHeightVideo Set, Play, PauseDrawing grid Clear, SetColor, SetTool, SetBoxes, SetGridSize, SetCellSize, GetDataViewport SetObject, SetHeight, Focus, SetInteractive, SetVisible, SetNameMedia player Load, Play, Pause, Stop, TogglePlay, PlayIndex, Next, Previous, SetURL, SetVolume, SetPitch, SetLoop, SetAutoPlay, SetEffect, SetVisualizer, AddToPlaylist, ClearPlaylist, GetState, GetPlaylist, SubscribeBytebeat Generate, Stop, Set, Get, SetHz, GetHz, SetDuration, GetDuration, ApplyPreset, SelectPreset, AddPreset, SetVisualizer, SetMediaPreset
Controller Methods Game session Refresh, Join, Rejoin, ServerHop, Leave, SetGames, SetAutoExecute, IsAutoExecuteEnabled, QueueAutoExecuteDependency box Refresh, SetDependencies, SetDependency, SetCondition, SetVisible, IsVisible, DestroyPlugins Scan, GetNames, Find, Read, SaveCode, AddCode, InstallURL, ExecuteSource, Load, RunCode, RunCommand, Unload, Delete, RefreshSoccer SetLeague, SetDate, Refresh, SetAutoRefresh, GetMatches, GetSource, DestroyXLQP Gen1 AI / AI textbox Send, GetLastResponse, GetTools, CallTool, SetPermissionMode, SetEffort, SetMultiline, SetAgentPlanner, GetCurrentTask, AskQuestion; mounted AddXLQPGen1AI also adds Show and HideExecutor SetScriptDebug console Log, Info, Warn, Error, Success, Code, Clear, GetText, Copy, SetHeight, SetCapture
Controller Methods Subtabs AddTab, Select, GetSelected, SetHeight, SetFill, RefreshOption grid AddOption, RemoveOption, UpdateOption, Clear, Set, Get, GetSelected, SetMulti, SetRows, SetCardSize, SetSpacing, SetColumns, SetCustom, Resize, SetIcon, SetSettingsIcon, SetSettingsOpen, ToggleSettings, AddElementElement grid AddElement, Remove, Clear, SetRows, SetColumns, SetCellSize, SetSpacing, SetAutoHeight, Resize, SetCustomNamed slider / custom slider SetParameter, GetParameter, GetParameters, SetDotsVisible, SetColor, GetColors, UsePlugin, ApplyStyle
See Current API additions , AI agent , and the linked element guides for signatures.
Every registered Add* controller exposes .Parameters, .ParameterInfo, and GetParameters(). Registered styled surfaces may also expose SetStyle(newStyle). At the library level, use GetElementParameters, GetAllElementParameters, GetElementParameterNames, FormatElementParameters, and GetNewAPIParameters.
local Status = Section: AddStatusBox ({
Title = "Task" ,
Content = "Waiting" ,
Variant = "neutral" ,
})
local function setTaskState (state, message)
if not Status then
return
end
Status: SetStatus (state)
Status: SetContent (message)
end
Avoid updating a controller after its element or parent window has been destroyed.