Public function error messages

This commit is contained in:
SilentSpike 2015-07-22 14:36:55 +01:00
parent 78ae59b223
commit 248cdf1f3f
4 changed files with 2 additions and 6 deletions

View File

@ -36,7 +36,6 @@ if !(_newMode in GVAR(availableModes)) then {
if (GVAR(unitList) isEqualTo []) then { if (GVAR(unitList) isEqualTo []) then {
_newMode = 0; _newMode = 0;
_newUnit = objNull; _newUnit = objNull;
[LSTRING(NoUnits)] call EFUNC(common,displayTextStructured);
}; };
// Reset gun cam if not internal // Reset gun cam if not internal

View File

@ -35,7 +35,7 @@ _newModes sort true;
// Can't become an empty array // Can't become an empty array
if (_newModes isEqualTo []) then { if (_newModes isEqualTo []) then {
[["[ACE Spectator]","Cannot remove all camera modes"]] call EFUNC(common,displayTextStructured); ["Cannot remove all camera modes (%1)", QFUNC(updateCameraModes)] call BIS_fnc_error;
} else { } else {
GVAR(availableModes) = _newModes; GVAR(availableModes) = _newModes;
}; };

View File

@ -43,7 +43,7 @@ _newModes sort true;
// Can't become an empty array // Can't become an empty array
if (_newModes isEqualTo []) then { if (_newModes isEqualTo []) then {
[["[ACE Spectator]","Cannot remove all vision modes"]] call EFUNC(common,displayTextStructured); ["Cannot remove all vision modes (%1)", QFUNC(updateVisionModes)] call BIS_fnc_error;
} else { } else {
GVAR(availableVisions) = _newModes; GVAR(availableVisions) = _newModes;
}; };

View File

@ -81,9 +81,6 @@
<Key ID="STR_ACE_Spectator_HelpTitle"> <Key ID="STR_ACE_Spectator_HelpTitle">
<English>Spectator Controls</English> <English>Spectator Controls</English>
</Key> </Key>
<Key ID="STR_ACE_Spectator_NoUnits">
<English>No units available to spectate, entering free camera.</English>
</Key>
<Key ID="STR_ACE_Spectator_ViewFree"> <Key ID="STR_ACE_Spectator_ViewFree">
<English>Free</English> <English>Free</English>
</Key> </Key>