![]() |
Bearsampp 2025.8.29
|
Public Member Functions | |
__construct ($args) | |
incrProgressBar ($nb=1) | |
processLoading ($window, $id, $ctrl, $param1, $param2) |
Data Fields | |
const | GAUGE = 20 |
const | WINDOW_HEIGHT = 90 |
const | WINDOW_WIDTH = 360 |
Private Member Functions | |
checkAllServicesStarted () |
Private Attributes | |
$wbProgressBar | |
$wbWindow |
Class ActionLoading
This class handles the loading action, including the creation and management of a progress bar window.
Definition at line 16 of file class.action.loading.php.
__construct | ( | $args | ) |
ActionLoading constructor.
Initializes the loading action, creates the progress bar window, and starts the main loop.
array | $args | The arguments passed to the constructor. |
Definition at line 40 of file class.action.loading.php.
References $bearsamppCore, $bearsamppLang, Win32Ps\getCurrentPid(), Lang\LOADING, and WinBinder\SYSINFO_WORKAREA.
|
private |
Checks if all services have started successfully
Definition at line 152 of file class.action.loading.php.
References $bearsamppBins, $bearsamppCore, $bearsamppRoot, $result, and Util\logTrace().
Referenced by processLoading().
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 69 of file class.action.loading.php.
References $bearsamppCore.
Referenced by processLoading().
processLoading | ( | $window, | |
$id, | |||
$ctrl, | |||
$param1, | |||
$param2 ) |
Processes the loading action, including handling window events and updating the progress bar.
mixed | $window | The window object. |
int | $id | The ID of the event. |
mixed | $ctrl | The control object. |
mixed | $param1 | The first parameter of the event. |
mixed | $param2 | The second parameter of the event. |
Definition at line 91 of file class.action.loading.php.
References $bearsamppRoot, checkAllServicesStarted(), Win32Ps\getCurrentPid(), incrProgressBar(), Win32Ps\kill(), and Util\logTrace().
|
private |
Definition at line 31 of file class.action.loading.php.
|
private |
Definition at line 28 of file class.action.loading.php.
const GAUGE = 20 |
Definition at line 25 of file class.action.loading.php.
const WINDOW_HEIGHT = 90 |
Definition at line 22 of file class.action.loading.php.
const WINDOW_WIDTH = 360 |
Definition at line 19 of file class.action.loading.php.