mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
User feedback when no units left
This commit is contained in:
parent
9f0415b9fa
commit
aa67e296c0
@ -36,6 +36,7 @@ if !(_newMode in GVAR(availableModes)) then {
|
||||
if (GVAR(unitList) isEqualTo []) then {
|
||||
_newMode = 0;
|
||||
_newUnit = objNull;
|
||||
[LSTRING(NoUnits)] call EFUNC(common,displayTextStructured);
|
||||
};
|
||||
|
||||
// Reset gun cam if not internal
|
||||
|
@ -2,7 +2,7 @@
|
||||
* Author: SilentSpike
|
||||
* Adds or removes spectator camera modes from the selection available to the local player.
|
||||
* Possible camera modes are:
|
||||
* - 0: Freecam
|
||||
* - 0: Free
|
||||
* - 1: Internal
|
||||
* - 2: External
|
||||
*
|
||||
@ -35,7 +35,7 @@ _newModes sort true;
|
||||
|
||||
// Can't become an empty array
|
||||
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 {
|
||||
GVAR(availableModes) = _newModes;
|
||||
};
|
||||
|
@ -43,7 +43,7 @@ _newModes sort true;
|
||||
|
||||
// Can't become an empty array
|
||||
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 {
|
||||
GVAR(availableVisions) = _newModes;
|
||||
};
|
||||
|
@ -81,6 +81,9 @@
|
||||
<Key ID="STR_ACE_Spectator_HelpTitle">
|
||||
<English>Spectator Controls</English>
|
||||
</Key>
|
||||
<Key ID="STR_ACE_Spectator_NoUnits">
|
||||
<English>No units available to spectate, entering free camera.</English>
|
||||
</Key>
|
||||
<Key ID="STR_ACE_Spectator_ViewFree">
|
||||
<English>Free</English>
|
||||
</Key>
|
||||
|
Loading…
Reference in New Issue
Block a user