2023-09-12 18:58:10 +00:00
|
|
|
#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:
|
2016-06-18 09:32:56 +00:00
|
|
|
* 0: Show Hint <BOOL> (default: false)
|
2015-10-28 22:23:02 +00:00
|
|
|
*
|
|
|
|
* Return Value:
|
|
|
|
* None
|
|
|
|
*
|
|
|
|
* Example:
|
2016-03-06 14:41:17 +00:00
|
|
|
* [false] call ace_ui_fnc_setElements
|
2015-10-28 22:23:02 +00:00
|
|
|
*
|
|
|
|
* Public: No
|
|
|
|
*/
|
|
|
|
|
2016-06-18 09:32:56 +00:00
|
|
|
params [["_showHint", false]];
|
2016-03-08 17:12:01 +00:00
|
|
|
|
2016-06-18 09:32:56 +00:00
|
|
|
if (isArray (missionConfigFile >> "showHUD")) exitWith {
|
|
|
|
if (_showHint) then {
|
|
|
|
[LSTRING(Disabled)] call EFUNC(common,displayTextStructured);
|
|
|
|
};
|
|
|
|
};
|
2016-03-06 14:41:17 +00:00
|
|
|
|
2016-03-06 11:50:16 +00:00
|
|
|
["ui", [
|
2016-05-04 03:49:05 +00:00
|
|
|
true,
|
2015-10-28 22:23:02 +00:00
|
|
|
GVAR(soldierVehicleWeaponInfo),
|
|
|
|
GVAR(vehicleRadar),
|
|
|
|
GVAR(vehicleCompass),
|
2016-05-04 03:49:05 +00:00
|
|
|
true,
|
2015-10-28 22:23:02 +00:00
|
|
|
GVAR(commandMenu),
|
|
|
|
GVAR(groupBar),
|
2018-07-21 23:03:00 +00:00
|
|
|
true,
|
|
|
|
true,
|
2016-09-29 22:53:17 +00:00
|
|
|
true
|
2015-10-28 22:23:02 +00:00
|
|
|
]] call EFUNC(common,showHud);
|