Revert "Update showHud setter for Squad Radar" (#4485)

This commit is contained in:
jonpas 2016-09-30 00:53:17 +02:00 committed by PabstMirror
parent 1bd7a66888
commit dad4293216
11 changed files with 8 additions and 31 deletions

View File

@ -21,7 +21,7 @@ params ["_newUnit","_oldUnit"];
//set showHUD based on new unit status: //set showHUD based on new unit status:
if ((_newUnit getVariable [QGVAR(isHandcuffed), false]) || {_newUnit getVariable [QGVAR(isSurrendering), false]}) then { if ((_newUnit getVariable [QGVAR(isHandcuffed), false]) || {_newUnit getVariable [QGVAR(isSurrendering), false]}) then {
TRACE_1("Player Change (showHUD false)",_newUnit); TRACE_1("Player Change (showHUD false)",_newUnit);
["captive", [false, false, false, false, false, false, false, false, false]] call EFUNC(common,showHud); ["captive", [false, false, false, false, false, false, false, false]] call EFUNC(common,showHud);
} else { } else {
TRACE_1("Player Change (showHUD true)",_newUnit); TRACE_1("Player Change (showHUD true)",_newUnit);
["captive", []] call EFUNC(common,showHud); //same as showHud true; ["captive", []] call EFUNC(common,showHud); //same as showHud true;

View File

@ -19,7 +19,7 @@
if ((ACE_player getVariable [QGVAR(isHandcuffed), false]) || {ACE_player getVariable [QGVAR(isSurrendering), false]}) then { if ((ACE_player getVariable [QGVAR(isHandcuffed), false]) || {ACE_player getVariable [QGVAR(isSurrendering), false]}) then {
TRACE_1("Player Change (showHUD false)",ACE_player); TRACE_1("Player Change (showHUD false)",ACE_player);
["captive", [false, false, false, false, false, false, false, false, false]] call EFUNC(common,showHud); ["captive", [false, false, false, false, false, false, false, false]] call EFUNC(common,showHud);
} else { } else {
TRACE_1("Player Change (showHUD true)",ACE_player); TRACE_1("Player Change (showHUD true)",ACE_player);
["captive", []] call EFUNC(common,showHud); //same as showHud true; ["captive", []] call EFUNC(common,showHud); //same as showHud true;

View File

@ -50,7 +50,7 @@ if (_state) then {
_unit setVariable [QGVAR(CargoIndex), ((vehicle _unit) getCargoIndex _unit), true]; _unit setVariable [QGVAR(CargoIndex), ((vehicle _unit) getCargoIndex _unit), true];
if (_unit == ACE_player) then { if (_unit == ACE_player) then {
["captive", [false, false, false, false, false, false, false, false, false]] call EFUNC(common,showHud); ["captive", [false, false, false, false, false, false, false, false]] call EFUNC(common,showHud);
}; };
// fix anim on mission start (should work on dedicated servers) // fix anim on mission start (should work on dedicated servers)

View File

@ -47,7 +47,7 @@ if (_state) then {
[_unit, "setCaptive", QGVAR(Surrendered), true] call EFUNC(common,statusEffect_set); [_unit, "setCaptive", QGVAR(Surrendered), true] call EFUNC(common,statusEffect_set);
if (_unit == ACE_player) then { if (_unit == ACE_player) then {
["captive", [false, false, false, false, false, false, false, false, false]] call EFUNC(common,showHud); ["captive", [false, false, false, false, false, false, false, false]] call EFUNC(common,showHud);
}; };
[_unit] call EFUNC(common,fixLoweredRifleAnimation); [_unit] call EFUNC(common,fixLoweredRifleAnimation);

View File

@ -15,7 +15,6 @@
* - menu: Boolean - show commanding menu (hides HC related menus) * - menu: Boolean - show commanding menu (hides HC related menus)
* - group: Boolean - show group info bar (hides squad leader info bar) * - group: Boolean - show group info bar (hides squad leader info bar)
* - cursors: Boolean - show HUD weapon cursors (connected with scripted HUD) * - cursors: Boolean - show HUD weapon cursors (connected with scripted HUD)
* - squadRadar: Boolean - show HUD squad radar (since 1.62)
* *
* Return Value: * Return Value:
* Resulting ShowHud Array <ARRAY> * Resulting ShowHud Array <ARRAY>
@ -30,12 +29,7 @@
if (!hasInterface) exitWith {[-1]}; if (!hasInterface) exitWith {[-1]};
params [["_reason", "", [""]], ["_mask", [], [[]], [0,8,9]]]; params [["_reason", "", [""]], ["_mask", [], [[]], [0,8]]];
if ((count _mask) == 8) then {
ACE_LOGWARNING_1("ace_common_fnc_showHud - mask now takes 9 arguments in 1.62 [called with %1]",_this);
_mask pushBack true;
};
if (isArray (missionConfigFile >> "showHUD")) then { if (isArray (missionConfigFile >> "showHUD")) then {
//(showHud = 0;) is fine - the array is the problem //(showHud = 0;) is fine - the array is the problem
@ -56,7 +50,7 @@ if (_reason != "") then {
GVAR(showHudHash) params ["", "_reasons", "_masks"]; GVAR(showHudHash) params ["", "_reasons", "_masks"];
private _resultMask = []; private _resultMask = [];
for "_index" from 0 to 8 do { for "_index" from 0 to 7 do {
private _set = true; //Default to true private _set = true; //Default to true
{ {
if (!(_x select _index)) exitWith { if (!(_x select _index)) exitWith {

View File

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

View File

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

View File

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

View File

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

View File

@ -19,7 +19,7 @@
// Basic Elements // Basic Elements
#define ELEMENTS_BASIC [QGVAR(soldierVehicleWeaponInfo), QGVAR(vehicleRadar), QGVAR(vehicleCompass), QGVAR(commandMenu), QGVAR(groupBar), QGVAR(squadRadar)] #define ELEMENTS_BASIC [QGVAR(soldierVehicleWeaponInfo), QGVAR(vehicleRadar), QGVAR(vehicleCompass), QGVAR(commandMenu), QGVAR(groupBar)]
// Locations // Locations
#define ANYWHERE 0 #define ANYWHERE 0

View File

@ -90,9 +90,6 @@
<Japanese>指揮メニュー</Japanese> <Japanese>指揮メニュー</Japanese>
<Polish>Pasek grupy</Polish> <Polish>Pasek grupy</Polish>
</Key> </Key>
<Key ID="STR_ACE_UI_SquadRadar">
<English>Squad Radar</English>
</Key>
<Key ID="STR_ACE_UI_WeaponName"> <Key ID="STR_ACE_UI_WeaponName">
<English>Weapon Name</English> <English>Weapon Name</English>
<Czech>Název zbraně</Czech> <Czech>Název zbraně</Czech>