ACE3/addons/advanced_fatigue/functions/fnc_createStaminaBar.sqf
jonpas 742626ff1a
General - Relative script_component.hpp includes (#9378)
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
2023-09-12 20:58:10 +02:00

24 lines
475 B
Plaintext

#include "..\script_component.hpp"
/*
* Author: BaerMitUmlaut
* Creates the stamina bar.
*
* Arguments:
* 0: Display <DISPLAY>
*
* Return Value:
* None
*
* Example:
* [DISPLAY] call ace_advanced_fatigue_fnc_createStaminaBar
*
* Public: No
*/
params ["_display"];
private _staminaBar = _display ctrlCreate [QGVAR(StaminaBarContainer), -1];
uiNamespace setVariable [QGVAR(staminaBarContainer), _staminaBar];
_staminaBar ctrlSetFade 1;
_staminaBar ctrlCommit 0;