42#define EXTRADATA_TYPE sequenceExtraData_t
43#define EXTRADATA(node) UI_EXTRADATA(node, EXTRADATA_TYPE)
44#define EXTRADATACONST(node) UI_EXTRADATACONST(node, EXTRADATA_TYPE)
60 bool finished =
false;
80 else if (
EXTRADATA(node).lua_onEnd != LUA_NOREF) {
100 if (
EXTRADATA(node).context !=
nullptr) {
109 if (
EXTRADATA(node).context !=
nullptr) {
119 }
else if (
EXTRADATA(node).context !=
nullptr) {
135 behaviour->
name =
"sequence";
bool SEQ_InitContext(sequenceContext_t *context, const char *name)
Initialize a sequence context from data of a named script sequence.
void SEQ_SendClickEvent(sequenceContext_t *context)
Unlock a click event for the current sequence or ends the current sequence if not locked.
void SEQ_FreeContext(sequenceContext_t *context)
Free a sequence context.
void SEQ_SetView(sequenceContext_t *context, vec2_t pos, vec2_t size)
Define the position of the viewport on the screen.
sequenceContext_t * SEQ_AllocContext(void)
Allocate a sequence context.
bool SEQ_Render(sequenceContext_t *context)
Execute and render a sequence.
virtual void onPropertyChanged(uiNode_t *node, const value_t *property)
virtual void initNode(uiNode_t *node)
void draw(uiNode_t *node) override
void initNode(uiNode_t *node) override
void onWindowOpened(uiNode_t *node, linkedList_t *params) override
void onPropertyChanged(uiNode_t *node, const value_t *property) override
void onWindowClosed(uiNode_t *node) override
void onLeftClick(uiNode_t *node, int x, int y) override
Primary header for client.
#define Mem_PoolStrDup(in, pool, tagNum)
void R_CleanupDepthBuffer(int x, int y, int width, int height)
"Clean up" the depth buffer into a rect
QGL_EXTERN GLuint GLsizei GLsizei GLint GLenum GLchar * name
void R_PopMatrix(void)
Removes the current matrix from the stack.
void R_PushMatrix(void)
Push a new matrix to the stack.
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)
void UI_FreeStringProperty(void *pointer)
Free a string property if it is allocated into ui_dynStringPool.
#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...
void UI_GetNodeAbsPos(const uiNode_t *node, vec2_t pos)
Returns the absolute position of a node.
void UI_GetNodeScreenPos(const uiNode_t *node, vec2_t pos)
Returns the absolute position of a node in the screen. Screen position is not used for the node rende...
SharedPtr< uiNode > UINodePtr
static const uiBehaviour_t * localBehaviour
memPool_t * ui_dynStringPool
void UI_RegisterSequenceNode(uiBehaviour_t *behaviour)
static const value_t * propertySource
void UI_Sequence_SetSource(uiNode_t *node, const char *name)
void UI_PushClipRect(int x, int y, int width, int height)
void UI_PopClipRect(void)