ACE3/addons/ui/functions/fnc_setElements.sqf
2016-07-05 23:06:44 +02:00

37 lines
693 B
Plaintext

/*
* 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
*/
#include "script_component.hpp"
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,
GVAR(squadRadar)
]] call EFUNC(common,showHud);