UFO: Alien Invasion
|
Go to the source code of this file.
Data Structures | |
class | uiModelNode |
struct | uiModel_s |
Model that have more than one part (top and down part of an aircraft) More... | |
struct | modelExtraData_s |
extradata for the model node More... | |
Macros | |
#define | UI_MAX_MODELS 128 |
Typedefs | |
typedef struct uiModel_s | uiModel_t |
Model that have more than one part (top and down part of an aircraft) More... | |
typedef struct modelExtraData_s | modelExtraData_t |
extradata for the model node More... | |
Functions | |
uiModel_t * | UI_GetUIModel (const char *modelName) |
Returns pointer to UI model. More... | |
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) |
void | UI_Model_SetAnimationSource (uiNode_t *node, const char *animName) |
void | UI_Model_SetTagSource (uiNode_t *node, const char *tagName) |
#define UI_MAX_MODELS 128 |
Definition at line 44 of file ui_node_model.h.
Referenced by UI_ParseUIModel().
typedef struct modelExtraData_s modelExtraData_t |
extradata for the model node
Model that have more than one part (top and down part of an aircraft)
< We use model extradata
Definition at line 285 of file ui_node_model.cpp.
References modelInfo_t::angles, animState_s::backlerp, modelInfo_t::backlerp, uiNode_t::behaviour, uiNode_t::box, modelInfo_t::center, cl_genericPool, cls, modelInfo_t::color, uiNode_t::color, Com_Error(), Com_Printf(), ERR_DROP, EXTRADATA, uiNode_t::firstChild, animState_s::frame, modelInfo_t::frame, client_static_s::frametime, MAX_OLDREFVALUE, MAX_VAR, Mem_Free, Mem_PoolAllocType, modelInfo_t::mesh, modelInfo_t::model, modelInfo_t::name, uiNode_t::next, nullVector, OBJZERO, animState_s::oldframe, modelInfo_t::oldframe, modelInfo_t::origin, uiNode_t::padding, Q_streq, Q_strncpyz(), Q_strnull(), R_AnimChange(), R_AnimGetName(), R_AnimRun(), R_CleanupDepthBuffer(), R_DrawModelDirect(), R_FindModel(), R_ModelAutoScale(), modelInfo_t::scale, uiBox_t::size, modelInfo_t::skin, UI_CheckVisibility(), UI_DrawModelNodeWithUIModel(), UI_GetNodeAbsPos(), UI_GetNodeScreenPos(), UI_GetReferenceString(), UI_GetUIModel(), UI_NodeInstanceOf(), UI_PopClipRect(), UI_PushClipRect(), and VectorMA().
Referenced by uiItemNode::draw(), uiModelNode::draw(), GAME_DisplayItemInfo(), and UI_DrawItem().
uiModel_t* UI_GetUIModel | ( | const char * | modelName | ) |
Returns pointer to UI model.
[in] | modelName | model id from script files |
Definition at line 61 of file ui_node_model.cpp.
References i, uiModel_s::id, m, uiGlobal_s::models, uiGlobal_s::numModels, Q_streq, and ui_global.
Referenced by GAME_GetModelForItem(), UI_DrawModelNode(), UI_DrawModelNodeWithUIModel(), and UI_ParseUIModel().
Definition at line 92 of file ui_node_model.cpp.
References Mem_PoolStrDup, ui_dynStringPool, UI_EXTRADATA, and UI_FreeStringProperty().
Referenced by uiModelNode_t_set_animation().
Definition at line 82 of file ui_node_model.cpp.
References Mem_PoolStrDup, ui_dynStringPool, UI_EXTRADATA, and UI_FreeStringProperty().
Referenced by uiModelNode_t_set_model().
Definition at line 87 of file ui_node_model.cpp.
References Mem_PoolStrDup, ui_dynStringPool, UI_EXTRADATA, and UI_FreeStringProperty().
Referenced by uiModelNode_t_set_skin().
Definition at line 97 of file ui_node_model.cpp.
References Mem_PoolStrDup, ui_dynStringPool, UI_EXTRADATA, and UI_FreeStringProperty().
Referenced by uiModelNode_t_set_tag().
void UI_RegisterModelNode | ( | uiBehaviour_t * | behaviour | ) |
Definition at line 528 of file ui_node_model.cpp.
References Cmd_AddCommand(), uiBehaviour_t::drawItselfChild, EXTRADATA_TYPE, uiBehaviour_t::extraDataSize, uiBehaviour_t::lua_SWIG_typeinfo, uiBehaviour_t::manager, uiBehaviour_t::name, scale, UI_ListUIModels_f(), UI_RegisterExtradataNodeProperty, UI_SWIG_TypeQuery(), V_BOOL, V_CVAR_OR_STRING, and V_VECTOR.