Crafting Window
Scripting with the CraftingWindow class.
The CraftingWindow
class is the Inventool's crafting window. This is split from the other systems unlike the Inventool Window.
Fields & Properties
craftingTitle
The crafting title element.
Label
protected
craftingContent
The crafting content.
VisualElement
protected
craftingSlotElements
A list of all crafting slots.
List<ItemSlotElement>
protected
craftScroll
The scroll view that contains a list of items to craft.
ScrollView
protected
craftListElement
The element that contains the items to craft.
VisualElement
protected
craftCostIcon
Crafting cost icon element.
VisualElement
protected
craftCostLabel
Crafting cost label.
Label
protected
craftButton
The button that confirms the craft.
Button
protected
craftResultSlot
The craft result item slot.
ItemSlotElement
protected
craftEmptyLabel
The label that is displayed when the craft list is empty.
Label
protected
closeButton
The close button.
Button
protected
crafter
Crafting logic handler.
Crafter
protected
activeCraftsman
The craftsman currently being interacted with.
Craftsman
protected
useCraftingCost
If the crafting cost should be used. This is set to true if the window is opened for crafting only.
bool
protected
OpenedForMerchant
If the window is currently open for a merchant.
bool
public
Active Instance
You can get the active CraftingWindow
instance with CraftingWindow.Instance
. Ensure there's an instance of it in your scene before using this field.
Open
Call the Open
method when the crafting window should be opened. This method accepts a Craftsman
parameter. Use null to open without a craftsman reference.
Close
Close
simply closes the window.
Last updated