mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
310710b6e2
- Store only one compiled menu per class - Actions added through apis for invidual objects stored on the object separately - Replaced the concept of uids by paths. This allows adding/removing actions inside other actions loaded from config seamlessly. - Temporarily removed caching of nearby actions (probe). We may go back to that if needed pretty easily. This allows the player to move freely with the interaction menu opened.
27 lines
484 B
Plaintext
27 lines
484 B
Plaintext
/*
|
|
* Author: NouberNou
|
|
* Handle interaction key up
|
|
*
|
|
* Argument:
|
|
* None
|
|
*
|
|
* Return value:
|
|
* true <BOOL>
|
|
*
|
|
* Public: No
|
|
*/
|
|
#include "script_component.hpp"
|
|
|
|
GVAR(keyDown) = false;
|
|
if(GVAR(actionSelected)) then {
|
|
this = GVAR(selectedTarget);
|
|
_player = ACE_Player;
|
|
_target = GVAR(selectedTarget);
|
|
[GVAR(selectedTarget), ACE_player] call GVAR(selectedAction);
|
|
};
|
|
GVAR(expanded) = false;
|
|
GVAR(lastPath) = [];
|
|
GVAR(menuDepthPath) = [];
|
|
GVAR(vecLineMap) = [];
|
|
true
|