2024.8.23
|
Public Member Functions | |
__construct () | |
getWbWindow () | |
incrProgressBar ($nb=1) | |
init ($title, $gauge, $text) | |
setTextLoading ($caption) | |
Data Fields | |
const | WINDOW_HEIGHT = 90 |
const | WINDOW_WIDTH = 460 |
Private Attributes | |
$currentImg | |
$wbImage | |
$wbProgressBar | |
$wbTextLoading | |
$wbWindow | |
Class Splash
This class represents a splash screen with a progress bar for the Bearsampp application. It provides methods to initialize the splash screen, set loading text, and increment the progress bar.
Definition at line 16 of file class.splash.php.
Splash::__construct | ( | ) |
Splash constructor.
Initializes the Splash class and sets the current image to null.
Definition at line 34 of file class.splash.php.
References Util\logInitClass().
Splash::getWbWindow | ( | ) |
Retrieves the window object of the splash screen.
Definition at line 103 of file class.splash.php.
References $wbWindow.
Splash::incrProgressBar | ( | $nb = 1 | ) |
Increments the progress bar by a specified number of steps.
int | $nb | The number of steps to increment the progress bar by. Default is 1. |
Definition at line 85 of file class.splash.php.
References $bearsamppCore.
Referenced by init().
Splash::init | ( | $title, | |
$gauge, | |||
$text ) |
Initializes the splash screen.
string | $title | The title of the splash screen window. |
int | $gauge | The maximum value for the progress bar. |
string | $text | The initial loading text to display. |
Definition at line 47 of file class.splash.php.
References $bearsamppCore, incrProgressBar(), setTextLoading(), WinBinder\SYSINFO_WORKAREA, and WINDOW_WIDTH.
Splash::setTextLoading | ( | $caption | ) |
Sets the loading text on the splash screen.
string | $caption | The loading text to display. |
Definition at line 72 of file class.splash.php.
Referenced by init().
|
private |
Definition at line 27 of file class.splash.php.
|
private |
Definition at line 23 of file class.splash.php.
|
private |
Definition at line 25 of file class.splash.php.
|
private |
Definition at line 24 of file class.splash.php.
|
private |
Definition at line 22 of file class.splash.php.
Referenced by getWbWindow().
const Splash::WINDOW_HEIGHT = 90 |
Definition at line 20 of file class.splash.php.
const Splash::WINDOW_WIDTH = 460 |
Definition at line 19 of file class.splash.php.
Referenced by init().