mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Prevent the interact menu from closing dialogs opened by the actions
This commit is contained in:
@ -15,6 +15,10 @@
|
|||||||
// Exit if there's no menu opened
|
// Exit if there's no menu opened
|
||||||
if (GVAR(openedMenuType) < 0) exitWith {true};
|
if (GVAR(openedMenuType) < 0) exitWith {true};
|
||||||
|
|
||||||
|
if (uiNamespace getVariable [QGVAR(cursorMenuOpened),false]) then {
|
||||||
|
closeDialog 0;
|
||||||
|
};
|
||||||
|
|
||||||
if(GVAR(actionSelected)) then {
|
if(GVAR(actionSelected)) then {
|
||||||
this = GVAR(selectedTarget);
|
this = GVAR(selectedTarget);
|
||||||
|
|
||||||
@ -27,7 +31,9 @@ if(GVAR(actionSelected)) then {
|
|||||||
|
|
||||||
// Check the action conditions
|
// Check the action conditions
|
||||||
_actionData = GVAR(selectedAction) select 0;
|
_actionData = GVAR(selectedAction) select 0;
|
||||||
|
systemChat "Checking Condition";
|
||||||
if ([_target, _player, _actionData select 6] call (_actionData select 4)) then {
|
if ([_target, _player, _actionData select 6] call (_actionData select 4)) then {
|
||||||
|
systemChat format ["Condition met: %1", [_target, _player, _actionData select 6, (_actionData select 3)]];
|
||||||
// Call the statement
|
// Call the statement
|
||||||
[_target, _player, _actionData select 6] call (_actionData select 3);
|
[_target, _player, _actionData select 6] call (_actionData select 3);
|
||||||
|
|
||||||
@ -40,10 +46,6 @@ GVAR(keyDown) = false;
|
|||||||
GVAR(keyDownSelfAction) = false;
|
GVAR(keyDownSelfAction) = false;
|
||||||
GVAR(openedMenuType) = -1;
|
GVAR(openedMenuType) = -1;
|
||||||
|
|
||||||
if (uiNamespace getVariable [QGVAR(cursorMenuOpened),false]) then {
|
|
||||||
closeDialog 0;
|
|
||||||
};
|
|
||||||
|
|
||||||
GVAR(expanded) = false;
|
GVAR(expanded) = false;
|
||||||
GVAR(lastPath) = [];
|
GVAR(lastPath) = [];
|
||||||
GVAR(menuDepthPath) = [];
|
GVAR(menuDepthPath) = [];
|
||||||
|
Reference in New Issue
Block a user