InventoryView
Namespace: StackInventory.Game.UI
Inherits: PanelContainer
Properties
Section titled “Properties”| Name | Type | Description |
|---|---|---|
InitialInventory | InventoryDefinition | |
MoneyLabel | MoneyLabel |
Methods
Section titled “Methods”_Ready
Section titled “_Ready”void _Ready()Refresh
Section titled “Refresh”void Refresh()void Clear()Populate
Section titled “Populate”void Populate()QueueRefresh
Section titled “QueueRefresh”void QueueRefresh()GetContainerViewTemplateScene
Section titled “GetContainerViewTemplateScene”PackedScene? GetContainerViewTemplateScene()CreateAndAddContainerView
Section titled “CreateAndAddContainerView”void CreateAndAddContainerView(PackedScene template, IItemContainer container, int index)Callable
Section titled “Callable”new Callable(this, nameof(_GetDragData)Callable
Section titled “Callable”new Callable(this, nameof(_CanDropData)Callable
Section titled “Callable”new Callable(this, nameof(_DropData)PropagateInventory
Section titled “PropagateInventory”void PropagateInventory()OnVisibilityChanged
Section titled “OnVisibilityChanged”void OnVisibilityChanged()OnInventoryContainersChanged
Section titled “OnInventoryContainersChanged”void OnInventoryContainersChanged(IList<ItemContainer> containers)_CanDropData
Section titled “_CanDropData”bool _CanDropData(Vector2 atPosition, Variant data)_DropData
Section titled “_DropData”void _DropData(Vector2 atPosition, Variant data)SetInventory
Section titled “SetInventory”void SetInventory(IInventory inventory)Updates the inventory that the view is representing.