An item is only a model node allowing to display soldier armour. Soldier armour is an image, not a model. More...
#include "../ui_nodes.h"
#include "../ui_parse.h"
#include "ui_node_model.h"
#include "ui_node_item.h"
#include "ui_node_container.h"
#include "ui_node_abstractnode.h"
#include "../../client.h"
#include "../../cl_game.h"
#include "../../renderer/r_draw.h"
Go to the source code of this file.
Defines | |
#define | EXTRADATA(node) UI_EXTRADATA(node, modelExtraData_t) |
Functions | |
static void | UI_ItemNodeDraw (uiNode_t *node) |
Draw an item node. | |
void | UI_RegisterItemNode (uiBehaviour_t *behaviour) |
Variables | |
static const value_t | properties [] |
valid properties for model |
An item is only a model node allowing to display soldier armour. Soldier armour is an image, not a model.
Definition in file ui_node_item.c.
#define EXTRADATA | ( | node | ) | UI_EXTRADATA(node, modelExtraData_t) |
Definition at line 38 of file ui_node_item.c.
static void UI_ItemNodeDraw | ( | uiNode_t * | node | ) | [static] |
Draw an item node.
Definition at line 43 of file ui_node_item.c.
References EXTRADATA, GAME_DisplayItemInfo(), GAME_GetModelForItem(), objDef_s::idx, INV_IsArmour, INVSH_GetItemByIDSilent(), INVSH_GetItemByIDX(), pos, R_CleanupDepthBuffer(), scale, uiNode_s::size, item_s::t, UI_DrawItem(), UI_DrawModelNode(), UI_GetNodeAbsPos(), and UI_GetReferenceString().
Referenced by UI_RegisterItemNode().
void UI_RegisterItemNode | ( | uiBehaviour_t * | behaviour | ) |
Definition at line 87 of file ui_node_item.c.
References uiBehaviour_s::draw, uiBehaviour_s::extends, uiBehaviour_s::name, uiBehaviour_s::properties, and UI_ItemNodeDraw().
const value_t properties[] [static] |
{ {"containerlike", V_BOOL, UI_EXTRADATA_OFFSETOF(modelExtraData_t, containerLike), MEMBER_SIZEOF(modelExtraData_t, containerLike)}, {NULL, V_NULL, 0, 0} }
valid properties for model
Definition at line 80 of file ui_node_item.c.