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";
static void UI_ZoneNodeRepeat(uiNode_t *node, uiTimer_t *timer)
struct uiAction_s * onClick
uiTimer_t * UI_AllocTimer(uiNode_t *node, int firstDelay, timerCallback_t callback)
Allocate a new time for a node.
void onMouseUp(uiNode_t *node, int x, int y, int button) override
void UI_RegisterZoneNode(uiBehaviour_t *behaviour)
void onCapturedMouseLost(uiNode_t *node) override
Called when the node have lost the captured node We clean cached data.
#define UI_RegisterExtradataNodeProperty(BEHAVIOUR, NAME, TYPE, EXTRADATATYPE, ATTRIBUTE)
Initialize a property from extradata of node.
Atomic structure used to define most of the UI.
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)
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 onLoading(uiNode_t *node) override
Call before the script initialized the node.
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.