Class InventoryUI
Handle all the UI code related to the inventory (drag'n'drop of object, using objects, equipping object etc.)
Inheritance
System.Object
UnityEngine.Object
UnityEngine.Component
UnityEngine.Behaviour
UnityEngine.MonoBehaviour
InventoryUI
Assembly: Assembly-CSharp.dll
Syntax
public class InventoryUI : MonoBehaviour
Fields
DragCanvas
Declaration
Field Value
Type |
Description |
UnityEngine.Canvas |
|
EquipementUI
Declaration
public EquipmentUI EquipementUI
Field Value
ItemEntryPrefab
Declaration
public ItemEntryUI ItemEntryPrefab
Field Value
ItemSlots
Declaration
public RectTransform[] ItemSlots
Field Value
Type |
Description |
UnityEngine.RectTransform[] |
|
Declaration
public ItemTooltip Tooltip
Field Value
Properties
Character
Declaration
public CharacterData Character { get; }
Property Value
CurrentlyDragged
Declaration
public InventoryUI.DragData CurrentlyDragged { get; set; }
Property Value
DragCanvasScaler
Declaration
public CanvasScaler DragCanvasScaler { get; }
Property Value
Type |
Description |
UnityEngine.UI.CanvasScaler |
|
Methods
EquipmentDoubleClicked(EquipmentItem)
Declaration
public void EquipmentDoubleClicked(EquipmentItem equItem)
Parameters
HandledDroppedEntry(Vector3)
Declaration
public void HandledDroppedEntry(Vector3 position)
Parameters
Type |
Name |
Description |
UnityEngine.Vector3 |
position |
|
Init()
Declaration
Load(CharacterData)
Declaration
public void Load(CharacterData data)
Parameters
ObjectDoubleClicked(InventorySystem.InventoryEntry)
Declaration
public void ObjectDoubleClicked(InventorySystem.InventoryEntry usedItem)
Parameters
ObjectHoveredEnter(ItemEntryUI)
Declaration
public void ObjectHoveredEnter(ItemEntryUI hovered)
Parameters
ObjectHoverExited(ItemEntryUI)
Declaration
public void ObjectHoverExited(ItemEntryUI exited)
Parameters