Skip to content

InventoryView

Namespace: StackInventory.Game.UI
Inherits: PanelContainer

NameTypeDescription
InitialInventoryInventoryDefinition
MoneyLabelMoneyLabel
void _Ready()
void Refresh()
void Clear()
void Populate()
void QueueRefresh()
PackedScene? GetContainerViewTemplateScene()
void CreateAndAddContainerView(PackedScene template, IItemContainer container, int index)
new Callable(this, nameof(_GetDragData)
new Callable(this, nameof(_CanDropData)
new Callable(this, nameof(_DropData)
void PropagateInventory()
void OnVisibilityChanged()
void OnInventoryContainersChanged(IList<ItemContainer> containers)
bool _CanDropData(Vector2 atPosition, Variant data)
void _DropData(Vector2 atPosition, Variant data)
void SetInventory(IInventory inventory)

Updates the inventory that the view is representing.