C# 클래스 UIItemStorage, Pharos

상속: MonoBehaviour
파일 보기 프로젝트 열기: rstaewen/Pharos

공개 프로퍼티들

프로퍼티 타입 설명
background UIWidget,
maxColumns int
maxItemCount int
maxRows int
padding int
pickupSound UnityEngine.AudioClip
spacing int
template GameObject

공개 메소드들

메소드 설명
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.

메소드 상세

GetItem() 공개 메소드

Convenience function that returns an item at the specified slot.
public GetItem ( int slot ) : InvGameItem,
slot int
리턴 InvGameItem,

PlaceItemInNextAvailableSlot() 공개 메소드

Replace an item in the container with the specified one.
public PlaceItemInNextAvailableSlot ( InvGameItem, item ) : bool
item InvGameItem,
리턴 bool

Replace() 공개 메소드

public Replace ( int slot, InvGameItem, item ) : InvGameItem,
slot int
item InvGameItem,
리턴 InvGameItem,

ReplaceExisting() 공개 메소드

public ReplaceExisting ( int slot, InvGameItem, item ) : InvGameItem,
slot int
item InvGameItem,
리턴 InvGameItem,

Start() 공개 메소드

Initialize the container and create an appropriate number of UI slots.
public Start ( ) : void
리턴 void

프로퍼티 상세

background 공개적으로 프로퍼티

Background widget to scale after the item slots have been created.
public UIWidget, background
리턴 UIWidget,

maxColumns 공개적으로 프로퍼티

Maximum number of columns to create.
public int maxColumns
리턴 int

maxItemCount 공개적으로 프로퍼티

Maximum size of the container. Adding more items than this number will not work.
public int maxItemCount
리턴 int

maxRows 공개적으로 프로퍼티

Maximum number of rows to create.
public int maxRows
리턴 int

padding 공개적으로 프로퍼티

Padding around the border.
public int padding
리턴 int

pickupSound 공개적으로 프로퍼티

public AudioClip,UnityEngine pickupSound
리턴 UnityEngine.AudioClip

spacing 공개적으로 프로퍼티

Spacing between icons.
public int spacing
리턴 int

template 공개적으로 프로퍼티

Template used to create inventory icons.
public GameObject template
리턴 GameObject