Skip to main content

Introduction

This component provides the ability to display a list of Crafting Queue items.

"Crafting Queue List UI"

Fields#

NameDescription
SourceDetermine if source is a Direct Reference or in the Tool Registry
KeyKey used to find source
Scroll RectTransform to place prefabs inside
Selected Item UIUI used to display selected item details
On Can Complete NowEvent raised when selected item can be completed now for a premium cost
On Cannot Complete NowEvent raised when selected item cannot be completed now for a premium cost
On Active Display ChangedEvent raised when the active display UI changes
On Selection ChangedEvent raised when selection changes
On Item AddedEvent raised when an item is loaded by the active display
On Item RemovedEvent raised when an item is removed by the active display
On Item ClickEvent raised when the item is clicked
On Item Double ClickEvent raised when the item is double-clicked
On DropEvent raised when an item is dropped on this one

Properties#

NameDescription
contentGets the RectTransform used for housing data
contentScrollRectScrollRect housing content (if any)
inventoryGets the associated Inventory
lockInputGets/Sets if input is locked
activeDisplayGets the currently active display
selectedIndexGets/Sets the selected index

Methods#

NameDescription
ClearClear all items
CompleteSelectedNowImmediately finish crafting the selected item
ReloadReload the list
CycleViewCycle between available UI Displays
GetSelectedItemGet the selected item of type T
SetSelectedItemSet the selected item of type T