Add Squad Radar UI setting

This commit is contained in:
jonpas 2016-07-05 23:06:44 +02:00
parent 1922cac79e
commit 005f17131a
6 changed files with 19 additions and 3 deletions

View File

@ -43,6 +43,13 @@ class ACE_Settings {
value = 0;
isClientSettable = 1;
};
class GVAR(squadRadar) {
category = CSTRING(Category);
displayName = CSTRING(SquadRadar);
typeName = "BOOL";
value = 1;
isClientSettable = 1;
};
// ADVANCED
// Soldier

View File

@ -42,6 +42,11 @@ class CfgVehicles {
typeName = "BOOL";
defaultValue = 0;
};
class squadRadar {
displayName = CSTRING(SquadRadar);
typeName = "BOOL";
defaultValue = 1;
};
// ADVANCED
// Soldier

View File

@ -30,6 +30,7 @@ if (isArray (missionConfigFile >> "showHUD")) then {
[_logic, QGVAR(vehicleCompass), "vehicleCompass"] call EFUNC(common,readSettingFromModule);
[_logic, QGVAR(commandMenu), "commandMenu"] call EFUNC(common,readSettingFromModule);
[_logic, QGVAR(groupBar), "groupBar"] call EFUNC(common,readSettingFromModule);
[_logic, QGVAR(squadRadar), "squadRadar"] call EFUNC(common,readSettingFromModule);
};
// Advanced

View File

@ -32,5 +32,5 @@ if (isArray (missionConfigFile >> "showHUD")) exitWith {
GVAR(commandMenu),
GVAR(groupBar),
true,
true
GVAR(squadRadar)
]] call EFUNC(common,showHud);

View File

@ -19,7 +19,7 @@
// Basic Elements
#define ELEMENTS_BASIC [QGVAR(soldierVehicleWeaponInfo), QGVAR(vehicleRadar), QGVAR(vehicleCompass), QGVAR(commandMenu), QGVAR(groupBar)]
#define ELEMENTS_BASIC [QGVAR(soldierVehicleWeaponInfo), QGVAR(vehicleRadar), QGVAR(vehicleCompass), QGVAR(commandMenu), QGVAR(groupBar), QGVAR(squadRadar)]
/*
RscUnitInfo = 300

View File

@ -60,6 +60,9 @@
<Portuguese>Barra de Grupo</Portuguese>
<French>Barre de groupe</French>
</Key>
<Key ID="STR_ACE_UI_SquadRadar">
<English>Squad Radar</English>
</Key>
<Key ID="STR_ACE_UI_WeaponName">
<English>Weapon Name</English>
<Czech>Název zbraně</Czech>
@ -241,4 +244,4 @@
<French>Impossible de modifier un élément de l'interface utilisateur forcé</French>
</Key>
</Package>
</Project>
</Project>