CreateSmoothToggle
This compatibility method behaves like AddSmoothToggle. Adds an animated boolean toggle with optional live-color styling. It is kept so scripts written with the older CreateSmoothToggle name continue to work.
CreateSmoothToggle
Compatibility alias
CreateSmoothToggle is an alternate name for AddSmoothToggle. New code can use AddSmoothToggle.
What it does
This compatibility method behaves like AddSmoothToggle. Adds an animated boolean toggle with optional live-color styling. It is kept so scripts written with the older CreateSmoothToggle name continue to work.
When to use it
Use it for on/off settings when you want a more expressive transition than a basic checkbox. Prefer AddSmoothToggle in new code so the method name matches the current API.
ElementFunction:CreateSmoothToggle(SmoothConfig)
local Result = Section:CreateSmoothToggle({
Name = "Example",
Default = false,
Callback = function(value)
print(value)
end,
})Behavior and return value
This alias forwards to AddSmoothToggle, so its options, callbacks, and returned value follow the canonical method.
Fields marked optional may be omitted. XLQP then uses the method’s built-in default or leaves that feature disabled.
Related reference
CreateSection
This compatibility method behaves like AddSection. Adds a titled container that groups elements on a tab or panel. It is kept so scripts written with the older CreateSection name continue to work.
CreateSupportedGames
This compatibility method behaves like AddGameSession. Adds game-session controls for supported places, rejoining, server hopping, history, and queued re-execution. It is kept so scripts written with the older CreateSupportedGames name continue to work.