mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
b7c73f705c
- Submenu scale as a function of the number of children - Added menu expansion animation to better communicate where the options come from - Unused action point are faded as soon as the user hovers a certain action point
48 lines
883 B
Plaintext
48 lines
883 B
Plaintext
#include "script_component.hpp"
|
|
|
|
ADDON = false;
|
|
|
|
PREP(addAction);
|
|
PREP(addClassAction);
|
|
PREP(compileMenu);
|
|
PREP(compileMenuSelfAction);
|
|
PREP(collectActiveActionTree);
|
|
PREP(keyDown);
|
|
PREP(keyDownSelfAction);
|
|
PREP(keyUp);
|
|
PREP(keyUpSelfAction);
|
|
PREP(removeAction);
|
|
PREP(removeClassAction);
|
|
PREP(render);
|
|
PREP(renderIcon);
|
|
PREP(renderBaseMenu);
|
|
PREP(renderMenu);
|
|
|
|
GVAR(keyDown) = false;
|
|
GVAR(keyDownSelfAction) = false;
|
|
GVAR(keyDownTime) = 0;
|
|
|
|
GVAR(lastTime) = diag_tickTime;
|
|
GVAR(rotationAngle) = 0;
|
|
|
|
GVAR(selectedAction) = [[],[]];
|
|
GVAR(selectedStatement) = {};
|
|
GVAR(actionSelected) = false;
|
|
GVAR(selectedTarget) = objNull;
|
|
|
|
GVAR(menuDepthPath) = [];
|
|
GVAR(lastPos) = [0,0,0];
|
|
|
|
GVAR(currentOptions) = [];
|
|
|
|
GVAR(lastPath) = [];
|
|
|
|
GVAR(expanded) = false;
|
|
|
|
GVAR(startHoverTime) = diag_tickTime;
|
|
GVAR(expandedTime) = diag_tickTime;
|
|
GVAR(iconCtrls) = [];
|
|
GVAR(iconCount) = 0;
|
|
|
|
ADDON = true;
|