mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
84bf44e026
- Reordering of action members - Removed full path from actions, so they can be mounted under different paths if needed - Added api for creating actions - Api for adding actions for objects or classes
35 lines
715 B
Plaintext
35 lines
715 B
Plaintext
/*
|
|
* Author: NouberNou
|
|
* Handle self action key up
|
|
*
|
|
* Argument:
|
|
* None
|
|
*
|
|
* Return value:
|
|
* true <BOOL>
|
|
*
|
|
* Public: No
|
|
*/
|
|
#include "script_component.hpp"
|
|
|
|
if (uiNamespace getVariable [QGVAR(cursorMenuOpened),false]) then {
|
|
closeDialog 0;
|
|
};
|
|
|
|
if(GVAR(actionSelected)) then {
|
|
this = GVAR(selectedTarget);
|
|
_player = ACE_Player;
|
|
_target = GVAR(selectedTarget);
|
|
[GVAR(selectedTarget), ACE_player, (GVAR(selectedAction) select 0) select 6] call GVAR(selectedStatement);
|
|
};
|
|
|
|
if (GVAR(keyDownSelfAction)) then {
|
|
GVAR(keyDownSelfAction) = false;
|
|
["interactMenuClosed", [1]] call EFUNC(common,localEvent);
|
|
};
|
|
|
|
GVAR(expanded) = false;
|
|
GVAR(lastPath) = [];
|
|
GVAR(menuDepthPath) = [];
|
|
true
|