mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
ed15d99915
* Display disabled message when basic config set by mission showHud * Set showHud on RscDiary unload - fix #3907, Remove redundant force parameter from basic setElements * Log forced source to RPT * Add source to scripted element setter
36 lines
671 B
Plaintext
36 lines
671 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
|
|
]] call EFUNC(common,showHud);
|