DIFF

class InventoryGridSource

InventoryGrid ScriptedWidgetEventHandler Managed

All members, including inherited

Constructors 1

void InventoryGrid()

Members 17

static int ITEM_COLOR_QUICKBAR_NORMAL = 0x0AFFFFFF
static int ITEM_COLOR_QUICKBAR_H_GOOD = 0x2A6e980d
static int ITEM_COLOR_QUICKBAR_H_BAD = 0x2A980d0d
static int ITEM_COLOR_QUICKBAR_I_BAD = 0x2A986e0d
static int ITEM_COLOR_NORMAL = 0x0AFFFFFF
Referenced by ResetItemWidget()
static int ITEM_COLOR_DRAG = 0x0AFFFFFF
reference bool m_IsDebugOutput
protected ref map<int, Widget> m_BackgroundWidgets
protected ref map<int, Widget> m_ItemWidgets
Referenced by AddItem(), GetCol(), GetItem()
Show 2 more, InventoryGrid(), and RemoveItem()
protected int m_GridSize
protected bool m_IsMouseLeftDown
protected bool m_CanAddItemInHandToInventory
private Widget m_on_drag_item
private int m_col
Referenced by OnDrag(), OnDrop(), and OnMouseButtonUp()

Methods 37

protected void OnWidgetScriptInit(Widget w)
References Widget.SetHandler(), and m_Root
bool CanAddItemInHandToInventory()
override bool OnUpdate(Widget w)
override bool OnMouseLeave(Widget w, Widget enterW, int x, int y)
int GetColFromBg(Widget w)
int GetGridSize()
References m_GridSize
void SetGridSize(int size)
References map.Count(), map.Get(), Show()
Show 2 more, m_BackgroundWidgets, and m_GridSize
bool IsValidPos(int index)
References m_GridSize
TItemsMap GetItems()
References m_Items
Widget GetItem(int index)
Referenced by SetItemColor()
Widget GetItemBackground(int index)
void SetItemColor(InventoryItem item, int color)
References map.Contains(), map.Get(), GetItem()
Show 3 more, Math.Round(), Widget.SetColor(), and m_Items
void SetController(InventoryGridController controller)
References m_Controller
InventoryGridController GetController()
References m_Controller
void UpdateItems(TItemsMap items, bool show_quantity, bool show_temperature)
void UpdateQuantityItems()
void UpdateTemperatureItems()
protected void ResetItemWidget(Widget item_w, int width, int height)
Referenced by AddItem(), ResetItem(), and SetItem()
bool HasItem(InventoryItem item)
References map.Contains(), and m_Items