From ed29a2197c24c1ef1b0aa3d02b0ef13ba630d167 Mon Sep 17 00:00:00 2001 From: Salbei Date: Tue, 9 Apr 2019 13:46:02 +0200 Subject: [PATCH 1/4] Create fn_toggleDuiHud.sqf --- addons/screenshotMode/functions/fn_toggleDuiHud.sqf | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 addons/screenshotMode/functions/fn_toggleDuiHud.sqf diff --git a/addons/screenshotMode/functions/fn_toggleDuiHud.sqf b/addons/screenshotMode/functions/fn_toggleDuiHud.sqf new file mode 100644 index 00000000..487c838b --- /dev/null +++ b/addons/screenshotMode/functions/fn_toggleDuiHud.sqf @@ -0,0 +1,7 @@ +params ["_stateChange"]; + +if (_stateChange) then { + diwako_dui_main_toggled_off = true; +}else{ + diwako_dui_main_toggled_off = false; +}; From aa7e002c36dfddf9a0769b9e06cac29e736ddbc1 Mon Sep 17 00:00:00 2001 From: Salbei Date: Tue, 9 Apr 2019 13:48:39 +0200 Subject: [PATCH 2/4] Update fn_toggleAll.sqf --- addons/screenshotMode/functions/fn_toggleAll.sqf | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/addons/screenshotMode/functions/fn_toggleAll.sqf b/addons/screenshotMode/functions/fn_toggleAll.sqf index 08c985c3..3017d55c 100644 --- a/addons/screenshotMode/functions/fn_toggleAll.sqf +++ b/addons/screenshotMode/functions/fn_toggleAll.sqf @@ -8,7 +8,8 @@ private _newState = param [0, true]; FUNC(toggleACENametags), FUNC(toggleSTHud), FUNC(toggleTFAR), - FUNC(toggleVanillaHUD) + FUNC(toggleVanillaHUD), + FUNC(toggleDuiHud) ]; false; From e17eb787f074f5456d75d70052d6603546f5b2b3 Mon Sep 17 00:00:00 2001 From: Salbei Date: Tue, 9 Apr 2019 13:49:06 +0200 Subject: [PATCH 3/4] Update cfgFunctions.hpp --- addons/screenshotMode/cfgFunctions.hpp | 1 + 1 file changed, 1 insertion(+) diff --git a/addons/screenshotMode/cfgFunctions.hpp b/addons/screenshotMode/cfgFunctions.hpp index d784df77..0df8f346 100644 --- a/addons/screenshotMode/cfgFunctions.hpp +++ b/addons/screenshotMode/cfgFunctions.hpp @@ -5,6 +5,7 @@ class CfgFunctions { file = "x\grad\addons\screenshotMode\functions"; class toggleAll {}; class toggleACENametags {}; + class toggleDuiHud {}; class toggleSTHud {}; class toggleTFAR {}; class toggleVanillaHUD {}; From 4c2ec5447b30fad29bf8b6205db9b492cc755da7 Mon Sep 17 00:00:00 2001 From: Salbei Date: Tue, 9 Apr 2019 13:56:51 +0200 Subject: [PATCH 4/4] Update fn_toggleDuiHud.sqf --- addons/screenshotMode/functions/fn_toggleDuiHud.sqf | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/addons/screenshotMode/functions/fn_toggleDuiHud.sqf b/addons/screenshotMode/functions/fn_toggleDuiHud.sqf index 487c838b..e8397d8c 100644 --- a/addons/screenshotMode/functions/fn_toggleDuiHud.sqf +++ b/addons/screenshotMode/functions/fn_toggleDuiHud.sqf @@ -1,7 +1,4 @@ params ["_stateChange"]; -if (_stateChange) then { - diwako_dui_main_toggled_off = true; -}else{ - diwako_dui_main_toggled_off = false; -}; +diwako_dui_main_toggled_off = !_stateChange; +