ACE3/addons/interact_menu/XEH_preInit.sqf

56 lines
1.2 KiB
Plaintext
Raw Normal View History

2015-01-18 18:38:27 +00:00
#include "script_component.hpp"
ADDON = false;
2016-02-22 14:20:36 +00:00
#include "XEH_PREP.hpp"
2015-05-02 04:33:28 +00:00
// Event handlers for all interact menu controls
DFUNC(handleMouseMovement) = {
if (GVAR(cursorKeepCentered)) then {
GVAR(cursorPos) = GVAR(cursorPos) vectorAdd [_this select 1, _this select 2, 0] vectorDiff [0.5, 0.5, 0];
setMousePosition [0.5, 0.5];
} else {
GVAR(cursorPos) = [_this select 1, _this select 2, 0];
};
};
DFUNC(handleMouseButtonDown) = {
if !(GVAR(actionOnKeyRelease)) then {
[GVAR(openedMenuType),true] call FUNC(keyUp);
};
};
2015-01-18 18:38:27 +00:00
GVAR(keyDown) = false;
2015-02-18 21:58:06 +00:00
GVAR(keyDownSelfAction) = false;
2015-01-18 18:38:27 +00:00
GVAR(keyDownTime) = 0;
GVAR(openedMenuType) = -1;
2015-01-18 18:38:27 +00:00
GVAR(lastTime) = ACE_diagTime;
2015-01-18 18:38:27 +00:00
GVAR(rotationAngle) = 0;
GVAR(selectedAction) = [[],[]];
2015-01-18 18:38:27 +00:00
GVAR(actionSelected) = false;
GVAR(selectedTarget) = objNull;
GVAR(menuDepthPath) = [];
GVAR(lastPos) = [0,0,0];
GVAR(currentOptions) = [];
GVAR(lastPath) = [];
GVAR(expanded) = false;
GVAR(startHoverTime) = ACE_diagTime;
GVAR(expandedTime) = ACE_diagTime;
2015-01-18 18:38:27 +00:00
GVAR(iconCtrls) = [];
GVAR(iconCount) = 0;
GVAR(collectedActionPoints) = [];
GVAR(foundActions) = [];
GVAR(lastTimeSearchedActions) = -1000;
// Init zeus menu
[] call FUNC(compileMenuZeus);
2015-01-29 07:38:46 +00:00
ADDON = true;