ElementsNavigation & windows
CreateLoading
Creates a loading controller for stages, tasks, progress, and closing the loading UI.
CreateLoading
What it does
Creates a loading controller for stages, tasks, progress, and closing the loading UI.
When to use it
Use it when startup work should be reported to the user before the main interface is ready.
XLQPGen1:CreateLoading(LoadingConfig)
local Loading = Library:CreateLoading({
Name = "My Hub",
HeaderSubtitle = "Module loader",
Icon = "loader",
StageTitle = "Loading modules...",
CurrentStep = "Preparing interface...",
Progress = 0.08,
Tasks = {
"Creating navigation",
"Loading themes",
"Building interface",
"Finalizing",
},
TaskIndex = 1,
Hint = "Modules are prepared and verified in order.",
HideInterface = true,
LoadingProgress = true,
IntroEnabled = true,
IntroText = "My Hub",
IntroSubtitle = "Starting interface",
IntroIcon = "home",
IntroDuration = 0.8,
})
Loading:SetTask(2, "Loading themes...", 0.5)
Loading:Close()Behavior and return value
Store the returned controller or object when later code needs to update its state, call its methods, or close it.
Fields marked optional may be omitted. XLQP then uses the method’s built-in default or leaves that feature disabled.