27 #include "../ui_nodes.h" 29 #include "../../cl_renderer.h" 44 #define UI_MAX_MODELS 128 47 typedef struct uiModel_s {
63 typedef struct modelExtraData_s {
void onCapturedMouseMove(uiNode_t *node, int x, int y) override
Model that have more than one part (top and down part of an aircraft)
void UI_RegisterModelNode(uiBehaviour_t *behaviour)
void onMouseDown(uiNode_t *node, int x, int y, int button) override
uiModel_t * UI_GetUIModel(const char *modelName)
Returns pointer to UI model.
void draw(uiNode_t *node) override
void UI_DrawModelNode(uiNode_t *node, const char *source)
void UI_Model_SetModelSource(uiNode_t *node, const char *modelName)
void clone(uiNode_t const *source, uiNode_t *clone) override
Call to update a cloned node.
void onMouseUp(uiNode_t *node, int x, int y, int button) override
void UI_Model_SetAnimationSource(uiNode_t *node, const char *animName)
void UI_Model_SetSkinSource(uiNode_t *node, const char *skinName)
Atomic structure used to define most of the UI.
void doLayout(uiNode_t *node) override
Call to update the node layout. This common code revalidates the node tree.
void UI_Model_SetTagSource(uiNode_t *node, const char *tagName)
void initNodeDynamic(uiNode_t *node) override
node behaviour, how a node work
void deleteNode(uiNode_t *node) override
void onLoading(uiNode_t *node) override
Called before loading. Used to set default attribute values.
void onLoaded(uiNode_t *node) override