From bd01b2446856ce8ba5181e65d50c3f6634daaa0a Mon Sep 17 00:00:00 2001 From: jonbons Date: Sun, 29 Jan 2023 01:29:02 -0600 Subject: [PATCH 1/2] Fixed CBA keybinds not working on the progress bar after cursor hiding change --- addons/common/functions/fnc_progressBar.sqf | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/addons/common/functions/fnc_progressBar.sqf b/addons/common/functions/fnc_progressBar.sqf index a08f236886d..3c1fde99e7c 100644 --- a/addons/common/functions/fnc_progressBar.sqf +++ b/addons/common/functions/fnc_progressBar.sqf @@ -30,8 +30,12 @@ private _player = ACE_player; closeDialog 0; createDialog QGVAR(ProgressBar_Dialog); -// Hide cursor by using custom transparent cursor private _display = uiNamespace getVariable QGVAR(dlgProgress); + +// Ensure CBA keybindings are hooked into the display +[_display] call (uiNamespace getVariable ["CBA_events_fnc_initDisplayCurator", {}]); + +// Hide cursor by using custom transparent cursor private _map = _display displayCtrl 101; _map ctrlMapCursor ["", QGVAR(blank)]; From 95a9dbe85ca7e1442c6eb4585771601f9826863d Mon Sep 17 00:00:00 2001 From: JonBons Date: Mon, 30 Jan 2023 18:25:48 -0600 Subject: [PATCH 2/2] Removed fallback value for uiNamespace lookup Co-authored-by: Filip Maciejewski --- addons/common/functions/fnc_progressBar.sqf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/common/functions/fnc_progressBar.sqf b/addons/common/functions/fnc_progressBar.sqf index 3c1fde99e7c..41257d15e66 100644 --- a/addons/common/functions/fnc_progressBar.sqf +++ b/addons/common/functions/fnc_progressBar.sqf @@ -33,7 +33,7 @@ createDialog QGVAR(ProgressBar_Dialog); private _display = uiNamespace getVariable QGVAR(dlgProgress); // Ensure CBA keybindings are hooked into the display -[_display] call (uiNamespace getVariable ["CBA_events_fnc_initDisplayCurator", {}]); +_display call (uiNamespace getVariable "CBA_events_fnc_initDisplayCurator"); // Hide cursor by using custom transparent cursor private _map = _display displayCtrl 101;