ACE3/addons/ui/functions/fnc_setElements.sqf

38 lines
691 B
Plaintext
Raw Normal View History

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