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)
95 behaviour->
name =
"zone";
void onLoading(uiNode_t *node) override
Call before the script initialized the node.
void onMouseUp(uiNode_t *node, int x, int y, int button) override
void onMouseDown(uiNode_t *node, int x, int y, int button) override
void onCapturedMouseLost(uiNode_t *node) override
Called when the node have lost the captured node We clean cached data.
node behaviour, how a node work
Atomic structure used to define most of the UI.
struct uiAction_s * onClick
void UI_ExecuteEventActions(uiNode_t *source, const uiAction_t *firstAction)
#define UI_RegisterExtradataNodeProperty(BEHAVIOUR, NAME, TYPE, EXTRADATATYPE, ATTRIBUTE)
Initialize a property from extradata of node.
void * UI_SWIG_TypeQuery(const char *name)
This function queries the SWIG type table for a type information structure. It is used in combination...
SharedPtr< uiNode > UINodePtr
static void UI_ZoneNodeRepeat(uiNode_t *node, uiTimer_t *timer)
static uiTimer_t * capturedTimer
void UI_RegisterZoneNode(uiBehaviour_t *behaviour)
uiTimer_t * UI_AllocTimer(uiNode_t *node, int firstDelay, timerCallback_t callback)
Allocate a new time for a node.
void UI_TimerStart(uiTimer_t *timer)
Restart a timer.
void UI_TimerRelease(uiTimer_t *timer)
Release the timer. It no more exists.