ACE3/addons/ui/functions/fnc_setElements.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

38 lines
694 B
Plaintext

#include "..\script_component.hpp"
/*
* Author: Jonpas
* Sets basic visible elements of the UI using showHUD setter.
*
* Arguments:
* 0: Show Hint <BOOL> (default: false)
*
* Return Value:
* None
*
* Example:
* [false] call ace_ui_fnc_setElements
*
* Public: No
*/
params [["_showHint", false]];
if (isArray (missionConfigFile >> "showHUD")) exitWith {
if (_showHint) then {
[LSTRING(Disabled)] call EFUNC(common,displayTextStructured);
};
};
["ui", [
true,
GVAR(soldierVehicleWeaponInfo),
GVAR(vehicleRadar),
GVAR(vehicleCompass),
true,
GVAR(commandMenu),
GVAR(groupBar),
true,
true,
true
]] call EFUNC(common,showHud);