Enchanting Window UGUI
Scripting with the EnchantingWindowUGUI class.
The EnchantingWindowUGUI
class is the Inventool's enchanting window.
Fields & Properties
enchantingTitleLabel
The enchanting title label.
TextMeshProUGUI
protected
enchantmentSlotElements
A list of all enchantment slots.
List<ItemSlotElementUGUI>
protected
enchantmentSlotLeft
Left enchantment slot.
ItemSlotElementUGUI
protected
enchantmentSlotRight
Right enchantment slot.
ItemSlotElementUGUI
protected
currencyElement
The enchanting cost element.
CurrencyElementUGUI
protected
enchantButton
he button that confirms the enchant.
Button
protected
enchantButtonLabel
The label that displays the text for the enchant button.
TextMeshProUGUI
protected
closeButton
The close button.
Button
protected
activeEnchanter
The enchanter currently being interacted with.
Enchanter
protected
useEnchantingCost
If the enchanting cost should be used. This is set to true if the window is opened for enchanting only.
bool
protected
OpenedForMerchant
If the window is currently open for a merchant.
bool
public
Active Instance
You can get the active EnchantingWindowUGUI
instance with EnchantingWindowUGUI.Instance
. Ensure there's an instance of it in your scene before using this field.
Open
Call the Open
method when the enchanting window should be opened. This method accepts a Enchanter
parameter. Use null to open without a enchanter reference.
Close
Close
simply closes the window.
Last updated