Summary

Methods

Init()client
Builds an item icon (cwInventoryItem) for the parent's itemData.
Draws the item icon's background.
Think()client
Refreshes the item icon's color, its model when the item's icon changes, and its tooltip while it is hovered.

Methods

Builds an item icon (cwInventoryItem) for the parent's itemData.

itemData.itemTable is the item shown. When itemData.OnPress is set it runs on click instead of the usual item menu, and the right click menu is disabled.

Draws the item icon's background.

Parameters

  • w
  • h

Refreshes the item icon's color, its model when the item's icon changes, and its tooltip while it is hovered.

Defined in