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