C# Class UIItemStorage, Pharos

Inheritance: MonoBehaviour
Afficher le fichier Open project: rstaewen/Pharos

Méthodes publiques

Свойство Type Description
background UIWidget,
maxColumns int
maxItemCount int
maxRows int
padding int
pickupSound UnityEngine.AudioClip
spacing int
template GameObject

Méthodes publiques

Méthode Description
GetItem ( int slot ) : InvGameItem,

Convenience function that returns an item at the specified slot.

PlaceItemInNextAvailableSlot ( InvGameItem, item ) : bool

Replace an item in the container with the specified one.

Replace ( int slot, InvGameItem, item ) : InvGameItem,
ReplaceExisting ( int slot, InvGameItem, item ) : InvGameItem,
Start ( ) : void

Initialize the container and create an appropriate number of UI slots.

Method Details

GetItem() public méthode

Convenience function that returns an item at the specified slot.
public GetItem ( int slot ) : InvGameItem,
slot int
Résultat InvGameItem,

PlaceItemInNextAvailableSlot() public méthode

Replace an item in the container with the specified one.
public PlaceItemInNextAvailableSlot ( InvGameItem, item ) : bool
item InvGameItem,
Résultat bool

Replace() public méthode

public Replace ( int slot, InvGameItem, item ) : InvGameItem,
slot int
item InvGameItem,
Résultat InvGameItem,

ReplaceExisting() public méthode

public ReplaceExisting ( int slot, InvGameItem, item ) : InvGameItem,
slot int
item InvGameItem,
Résultat InvGameItem,

Start() public méthode

Initialize the container and create an appropriate number of UI slots.
public Start ( ) : void
Résultat void

Property Details

background public_oe property

Background widget to scale after the item slots have been created.
public UIWidget, background
Résultat UIWidget,

maxColumns public_oe property

Maximum number of columns to create.
public int maxColumns
Résultat int

maxItemCount public_oe property

Maximum size of the container. Adding more items than this number will not work.
public int maxItemCount
Résultat int

maxRows public_oe property

Maximum number of rows to create.
public int maxRows
Résultat int

padding public_oe property

Padding around the border.
public int padding
Résultat int

pickupSound public_oe property

public AudioClip,UnityEngine pickupSound
Résultat UnityEngine.AudioClip

spacing public_oe property

Spacing between icons.
public int spacing
Résultat int

template public_oe property

Template used to create inventory icons.
public GameObject template
Résultat GameObject