SplashWindow

The SplashWindow scripting namespace contains functions for controlling the SLADE splash window.

Functions

show

Parameters

  • string message: The message to show
  • [boolean progress: false]: Whether to show the progress bar

Shows the splash window with message. If progress is true, a progress bar will be shown on the splash window (see progress, setProgressMessage, setProgress below).


hide

Hides the splash window if it is currently showing.


update

Updates and redraws the splash window.


progress

Returns number

Returns the current progress bar progress. This is a floating point number between 0.0 (empty) and 1.0 (full).


setMessage

Parameters

  • string message: The message to show

Sets the splash window message to message.


setProgressMessage

Parameters

  • string message: The progress bar message to show

Sets the small message within the progress bar to message.


setProgress

Parameters

  • number progress: The progress amount

Sets the progress bar progress amount. This is a floating point number between 0.0 (empty) and 1.0 (full).