Go to the source code of this file.
Data Structures | |
struct | containerExtraData_s |
extradata for container widget More... | |
Defines | |
#define | C_UNIT 25 |
One unit in the containers is 25x25. | |
Typedefs | |
typedef struct containerExtraData_s | containerExtraData_t |
extradata for container widget | |
Functions | |
void | UI_RegisterContainerNode (struct uiBehaviour_s *behaviour) |
void | UI_DrawItem (struct uiNode_s *node, const vec3_t org, const struct item_s *item, int x, int y, const vec3_t scale, const vec4_t color) |
void | UI_ContainerNodeUpdateEquipment (inventory_t *inv, equipDef_t *ed) |
Fills the ground container of the ui_inventory with unused items from a given equipment definition. | |
Variables | |
inventory_t * | ui_inventory |
Definition in file ui_node_container.h.
#define C_UNIT 25 |
One unit in the containers is 25x25.
Definition at line 29 of file ui_node_container.h.
Referenced by UI_BaseInventoryNodeDrawItems(), UI_BaseInventoryNodeGetItem(), UI_ContainerNodeDNDMove(), UI_ContainerNodeDrawDropPreview(), UI_ContainerNodeDrawFreeSpace(), UI_ContainerNodeGetItemAtPosition(), UI_ContainerNodeLoaded(), and UI_DrawItem().
typedef struct containerExtraData_s containerExtraData_t |
extradata for container widget
void UI_ContainerNodeUpdateEquipment | ( | inventory_t * | inv, | |
equipDef_t * | ed | |||
) |
Fills the ground container of the ui_inventory with unused items from a given equipment definition.
ed
is changed here - so items are removed and the ground container of a inventory definition is in general a temp container - that means you should make a copy of the equipDef_t
you want to add to the temp ground container of the given inv
ui_inventory
pointer must be set [in,out] | inv | The inventory to add the unused items from ed to |
[in,out] | ed | The equipment definition to get the used items from that should be added to the ground container of inv |
Definition at line 130 of file ui_node_container.c.
References inventoryInterface_s::AddToInventory, inventory_s::c, cls, csi, FILTER_AIRCRAFT, GAME_ItemIsUseable(), client_static_s::i, i, csi_s::idEquip, objDef_s::idx, INVDEF, INVSH_GetItemByIDX(), MAX_CONTAINERS, NONE, NONE_AMMO, equipDef_s::numItems, csi_s::numODs, and item_s::t.
Referenced by CL_UpdateEquipmentMenuParameters_f(), and MP_GetEquipment().
void UI_DrawItem | ( | struct uiNode_s * | node, | |
const vec3_t | org, | |||
const struct item_s * | item, | |||
int | x, | |||
int | y, | |||
const vec3_t | scale, | |||
const vec4_t | color | |||
) |
void UI_RegisterContainerNode | ( | struct uiBehaviour_s * | behaviour | ) |
Definition at line 1111 of file ui_node_container.c.
References uiBehaviour_s::capturedMouseMove, uiBehaviour_s::dndEnter, uiBehaviour_s::dndFinished, uiBehaviour_s::dndLeave, uiBehaviour_s::dndMove, uiBehaviour_s::draw, uiBehaviour_s::drawTooltip, EXTRADATA_TYPE, uiBehaviour_s::extraDataSize, uiBehaviour_s::loaded, uiBehaviour_s::loading, uiBehaviour_s::mouseDown, uiBehaviour_s::mouseUp, uiBehaviour_s::mouseWheel, uiBehaviour_s::name, uiBehaviour_s::properties, UI_ContainerNodeCapturedMouseMove(), UI_ContainerNodeDNDEnter(), UI_ContainerNodeDNDFinished(), UI_ContainerNodeDNDLeave(), UI_ContainerNodeDNDMove(), UI_ContainerNodeDraw(), UI_ContainerNodeDrawTooltip(), UI_ContainerNodeLoaded(), UI_ContainerNodeLoading(), UI_ContainerNodeMouseDown(), UI_ContainerNodeMouseUp(), and UI_ContainerNodeWheel().
Definition at line 59 of file ui_node_container.c.
Referenced by CL_ActorEquipmentSelect_f(), CL_ActorSelect(), CL_UpdateEquipmentMenuParameters_f(), MP_GetEquipment(), UI_BaseInventoryNodeDraw(), UI_ContainerNodeAutoPlace(), and UI_ContainerNodeGetExistingItem().