From e09342b7ea18fff381479bb120fb8436b2413d22 Mon Sep 17 00:00:00 2001 From: SilentSpike Date: Sun, 19 Jul 2015 22:50:13 +0100 Subject: [PATCH] Improved toggle controls --- .../functions/fnc_handleInterface.sqf | 24 +++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/addons/spectator/functions/fnc_handleInterface.sqf b/addons/spectator/functions/fnc_handleInterface.sqf index 6c78bf6e1e..7dbe14ba8d 100644 --- a/addons/spectator/functions/fnc_handleInterface.sqf +++ b/addons/spectator/functions/fnc_handleInterface.sqf @@ -160,6 +160,18 @@ switch (toLower _mode) do { case 1: { // Esc [player,false] call FUNC(setSpectator); // Handle esc menu goes here, currently closes for purposes of testing }; + case 2: { // 1 + GVAR(showUnit) = !GVAR(showUnit); + [] call FUNC(updateInterface); + }; + case 3: { // 2 + GVAR(showTool) = !GVAR(showTool); + [] call FUNC(updateInterface); + }; + case 4: { // 3 + GVAR(showComp) = !GVAR(showComp); + [] call FUNC(updateInterface); + }; case 14: { // Backspace GVAR(showInterface) = !GVAR(showInterface); [] call FUNC(updateInterface); @@ -170,14 +182,6 @@ switch (toLower _mode) do { case 17: { // W GVAR(camDolly) set [0,true]; }; - case 20: { // T - GVAR(showTool) = !GVAR(showTool); - [] call FUNC(updateInterface); - }; - case 22: { // U - GVAR(showUnit) = !GVAR(showUnit); - [] call FUNC(updateInterface); - }; case 29: { // Ctrl GVAR(ctrlKey) = true; }; @@ -194,10 +198,6 @@ switch (toLower _mode) do { GVAR(showHelp) = !GVAR(showHelp); [] call FUNC(updateInterface); }; - case 37: { // K - GVAR(showComp) = !GVAR(showComp); - [] call FUNC(updateInterface); - }; case 44: { // Z GVAR(camBoom) set [1,true]; };