mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Public function error messages
This commit is contained in:
parent
78ae59b223
commit
248cdf1f3f
@ -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
|
||||||
|
@ -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;
|
||||||
};
|
};
|
||||||
|
@ -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;
|
||||||
};
|
};
|
||||||
|
@ -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>
|
||||||
|
Loading…
Reference in New Issue
Block a user