2023-09-12 18:58:10 +00:00
|
|
|
#include "..\script_component.hpp"
|
2016-09-04 19:33:07 +00:00
|
|
|
/*
|
|
|
|
* Author: BaerMitUmlaut
|
|
|
|
* Creates the stamina bar.
|
|
|
|
*
|
|
|
|
* Arguments:
|
|
|
|
* 0: Display <DISPLAY>
|
|
|
|
*
|
|
|
|
* Return Value:
|
|
|
|
* None
|
2017-06-08 13:31:51 +00:00
|
|
|
*
|
|
|
|
* Example:
|
|
|
|
* [DISPLAY] call ace_advanced_fatigue_fnc_createStaminaBar
|
|
|
|
*
|
|
|
|
* Public: No
|
2016-09-04 19:33:07 +00:00
|
|
|
*/
|
|
|
|
params ["_display"];
|
|
|
|
|
|
|
|
private _staminaBar = _display ctrlCreate [QGVAR(StaminaBarContainer), -1];
|
|
|
|
uiNamespace setVariable [QGVAR(staminaBarContainer), _staminaBar];
|
|
|
|
|
|
|
|
_staminaBar ctrlSetFade 1;
|
|
|
|
_staminaBar ctrlCommit 0;
|