Fix params error

This commit is contained in:
jonpas 2016-04-23 00:29:58 +02:00
parent dbe4c6ae26
commit b06659a2e4
3 changed files with 4 additions and 4 deletions

View File

@ -9,13 +9,14 @@ class CfgVehicles {
isGlobal = 1;
icon = QUOTE(PATHTOF(UI\Icon_Module_UI_ca.paa));
class Arguments {
// BASIC
class allowSelectiveUI {
displayName = CSTRING(AllowSelectiveUI);
description = CSTRING(AllowSelectiveUI_Description);
typeName = "BOOL";
defaultValue = 1;
};
// BASIC
class soldierVehicleWeaponInfo {
displayName = CSTRING(SoldierVehicleWeaponInfo);
typeName = "BOOL";

View File

@ -1,4 +1,3 @@
//#define DEBUG_MODE_FULL
#include "script_component.hpp"
// Exit on Headless
@ -24,7 +23,7 @@ if (!hasInterface) exitWith {};
// Selective UI Basic
if (_name in ELEMENTS_BASIC) then {
call FUNC(setElements);
[false] call FUNC(setElements);
};
// Selective UI Advanced

View File

@ -20,7 +20,7 @@ if (isArray (missionConfigFile >> "showHUD")) exitWith {};
params [ ["_force", false, [true]] ];
if (!_force && {!GVAR(allowSelectiveUI)}) exitWith {
[LSTRING(Disallowed), 2] call EFUNC(common,displayTextStructured)
[LSTRING(Disallowed), 2] call EFUNC(common,displayTextStructured);
};
private _shownHUD = shownHUD; // [hud, info, radar, compass, direction, menu, group, cursors]