User feedback when no units left

This commit is contained in:
SilentSpike 2015-07-21 22:49:17 +01:00
parent 9f0415b9fa
commit aa67e296c0
4 changed files with 7 additions and 3 deletions

View File

@ -36,6 +36,7 @@ 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

@ -2,7 +2,7 @@
* Author: SilentSpike * Author: SilentSpike
* Adds or removes spectator camera modes from the selection available to the local player. * Adds or removes spectator camera modes from the selection available to the local player.
* Possible camera modes are: * Possible camera modes are:
* - 0: Freecam * - 0: Free
* - 1: Internal * - 1: Internal
* - 2: External * - 2: External
* *
@ -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"],true,10] call EFUNC(common,displayStructuredText); [["[ACE Spectator]","Cannot remove all camera modes"]] call EFUNC(common,displayTextStructured);
} 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"],true,10] call EFUNC(common,displayStructuredText); [["[ACE Spectator]","Cannot remove all vision modes"]] call EFUNC(common,displayTextStructured);
} else { } else {
GVAR(availableVisions) = _newModes; GVAR(availableVisions) = _newModes;
}; };

View File

@ -81,6 +81,9 @@
<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>