34#define EXTRADATA_TYPE timerExtraData_t
35#define EXTRADATA(node) UI_EXTRADATA(node, EXTRADATA_TYPE)
36#define EXTRADATACONST(node) UI_EXTRADATACONST(node, EXTRADATA_TYPE)
58 if (
data.onTimeOut &&
data.timeOut) {
59 if (
data.lastTime == 0)
65 if (
data.onTimeOut !=
nullptr) {
68 else if (
data.lua_onEvent != LUA_NOREF) {
77 behaviour->
name =
"timer";
int CL_Milliseconds(void)
virtual void draw(uiNode_t *node)
void onWindowClosed(uiNode_t *node) override
void onWindowOpened(uiNode_t *node, linkedList_t *params) override
Called when we init the node on the screen.
void draw(uiNode_t *node) override
void Com_DPrintf(int level, const char *fmt,...)
A Com_Printf that only shows up if the "developer" cvar is set.
QGL_EXTERN GLsizei const GLvoid * data
Header for lua script functions.
node behaviour, how a node work
Atomic structure used to define most of the UI.
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.
bool UI_ExecuteLuaEventScript(uiNode_t *node, LUA_EVENT event)
Executes a lua event handler.
Basic lua initialization for 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...
SharedPtr< uiNode > UINodePtr
void UI_RegisterTimerNode(uiBehaviour_t *behaviour)