From aa67e296c03bca120695b81c5e39db8fb27e2b00 Mon Sep 17 00:00:00 2001 From: SilentSpike Date: Tue, 21 Jul 2015 22:49:17 +0100 Subject: [PATCH] User feedback when no units left --- addons/spectator/functions/fnc_transitionCamera.sqf | 1 + addons/spectator/functions/fnc_updateCameraModes.sqf | 4 ++-- addons/spectator/functions/fnc_updateVisionModes.sqf | 2 +- addons/spectator/stringtable.xml | 3 +++ 4 files changed, 7 insertions(+), 3 deletions(-) diff --git a/addons/spectator/functions/fnc_transitionCamera.sqf b/addons/spectator/functions/fnc_transitionCamera.sqf index 198929af66..15c1c9591d 100644 --- a/addons/spectator/functions/fnc_transitionCamera.sqf +++ b/addons/spectator/functions/fnc_transitionCamera.sqf @@ -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 diff --git a/addons/spectator/functions/fnc_updateCameraModes.sqf b/addons/spectator/functions/fnc_updateCameraModes.sqf index 7ba6d6cf5e..ada68f8cf8 100644 --- a/addons/spectator/functions/fnc_updateCameraModes.sqf +++ b/addons/spectator/functions/fnc_updateCameraModes.sqf @@ -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; }; diff --git a/addons/spectator/functions/fnc_updateVisionModes.sqf b/addons/spectator/functions/fnc_updateVisionModes.sqf index 230b740058..c08ca6f3f3 100644 --- a/addons/spectator/functions/fnc_updateVisionModes.sqf +++ b/addons/spectator/functions/fnc_updateVisionModes.sqf @@ -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; }; diff --git a/addons/spectator/stringtable.xml b/addons/spectator/stringtable.xml index d7d5cc7959..d3d5884837 100644 --- a/addons/spectator/stringtable.xml +++ b/addons/spectator/stringtable.xml @@ -81,6 +81,9 @@ Spectator Controls + + No units available to spectate, entering free camera. + Free