ui_node_item.c File Reference

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"
Include dependency graph for ui_node_item.c:

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

Detailed Description

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 Documentation

#define EXTRADATA ( node   )     UI_EXTRADATA(node, modelExtraData_t)

Definition at line 38 of file ui_node_item.c.


Function Documentation

static void UI_ItemNodeDraw ( uiNode_t node  )  [static]

Draw an item node.

Todo:
we should not use DrawItem but draw the image with render function (remove dependency with container)

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  ) 

Variable Documentation

const value_t properties[] [static]
Initial value:
 {
    
    {"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.


Generated by  doxygen 1.6.2