64typedef struct containerExtraData_s {
inventory definition with all its containers
item instance data, with linked list capability
void initNode(uiNode_t *node) override
void onMouseUp(uiNode_t *node, int x, int y, int button) override
void onLoaded(uiNode_t *node) override
Calculates the size of a container node and links the container into the node (uses the invDef_t shap...
void onLoading(uiNode_t *node) override
bool onDndEnter(uiNode_t *node) override
Call when a DND enter into the node.
bool onDndMove(uiNode_t *node, int x, int y) override
Call into the target when the DND hover it.
void draw(uiNode_t *node) override
Main function to draw a container node.
void onDndLeave(uiNode_t *node) override
Call when a DND enter into the node.
void onMouseDown(uiNode_t *node, int x, int y, int button) override
void onCapturedMouseMove(uiNode_t *node, int x, int y) override
bool onDndFinished(uiNode_t *node, bool isDroped) override
Call into the source when the DND end.
void drawTooltip(const uiNode_t *node, int x, int y) const override
Custom tooltip for container node.
int LUA_EVENT
holds a reference to a lua event handler
inventory definition for our menus
node behaviour, how a node work
Atomic structure used to define most of the UI.
static const vec3_t scale
uiNode_t * UI_GetContainerNodeByContainerIDX(const uiNode_t *const parent, const int index)
Search a child container node by the given container id.
void UI_ContainerNodeAutoPlaceItem(uiNode_t *node, Item *ic)
Try to autoplace an item from a container.
void UI_DrawItem(uiNode_t *node, const vec3_t org, const Item *item, int x, int y, const vec3_t scale, const vec4_t color)
Draws an item to the screen.
void UI_GetItemTooltip(const Item &item, char *tooltipText, size_t stringMaxLength)
Generate tooltip text for an item.
void UI_ContainerNodeUpdateEquipment(Inventory *inv, const equipDef_t *ed)
Fills the ground container of the ui_inventory with unused items from a given equipment definition.
void UI_RegisterContainerNode(uiBehaviour_t *behaviour)