28 #include "../ui_nodes.h"
29 #include "../ui_parse.h"
30 #include "../ui_behaviour.h"
31 #include "../ui_input.h"
32 #include "../ui_timer.h"
33 #include "../ui_actions.h"
37 #include "../../input/cl_keys.h"
39 #include "../../../common/scripts_lua.h"
41 #define EXTRADATA_TYPE zoneExtraData_t
42 #define EXTRADATA(node) UI_EXTRADATA(node, EXTRADATA_TYPE)
81 capturedTimer =
nullptr;
95 behaviour->
name =
"zone";
static void UI_ZoneNodeRepeat(uiNode_t *node, uiTimer_t *timer)
void onCapturedMouseLost(uiNode_t *node) override
Called when the node have lost the captured node We clean cached data.
uiTimer_t * UI_AllocTimer(uiNode_t *node, int firstDelay, timerCallback_t callback)
Allocate a new time for a node.
void UI_RegisterZoneNode(uiBehaviour_t *behaviour)
struct uiAction_s * onClick
#define UI_RegisterExtradataNodeProperty(BEHAVIOUR, NAME, TYPE, EXTRADATATYPE, ATTRIBUTE)
Initialize a property from extradata of node.
void onMouseUp(uiNode_t *node, int x, int y, int button) override
static uiTimer_t * capturedTimer
SharedPtr< uiNode > UINodePtr
void UI_TimerRelease(uiTimer_t *timer)
Release the timer. It no more exists.
void UI_ExecuteEventActions(uiNode_t *source, const uiAction_t *firstAction)
Atomic structure used to define most of the UI.
void * UI_SWIG_TypeQuery(const char *name)
This function queries the SWIG type table for a type information structure. It is used in combination...
void onMouseDown(uiNode_t *node, int x, int y, int button) override
node behaviour, how a node work
void UI_TimerStart(uiTimer_t *timer)
Restart a timer.
void onLoading(uiNode_t *node) override
Call before the script initialized the node.