NGUI: Next-Gen UI kit  3.7.2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Macros
UIItemStorage Class Reference

Storage container that stores items. More...

Inheritance diagram for UIItemStorage:

Public Member Functions

InvGameItem GetItem (int slot)
 Convenience function that returns an item at the specified slot. More...
 
InvGameItem Replace (int slot, InvGameItem item)
 Replace an item in the container with the specified one. More...
 

Public Attributes

int maxItemCount = 8
 Maximum size of the container. Adding more items than this number will not work. More...
 
int maxRows = 4
 Maximum number of rows to create. More...
 
int maxColumns = 4
 Maximum number of columns to create. More...
 
GameObject template
 Template used to create inventory icons. More...
 
UIWidget background
 Background widget to scale after the item slots have been created. More...
 
int spacing = 128
 Spacing between icons. More...
 
int padding = 10
 Padding around the border. More...
 

Properties

List< InvGameItemitems [get]
 List of items in the container. More...
 

Detailed Description

Storage container that stores items.

Member Function Documentation

InvGameItem UIItemStorage.GetItem ( int  slot)

Convenience function that returns an item at the specified slot.

InvGameItem UIItemStorage.Replace ( int  slot,
InvGameItem  item 
)

Replace an item in the container with the specified one.

Returns
An item that was replaced.

Member Data Documentation

UIWidget UIItemStorage.background

Background widget to scale after the item slots have been created.

int UIItemStorage.maxColumns = 4

Maximum number of columns to create.

int UIItemStorage.maxItemCount = 8

Maximum size of the container. Adding more items than this number will not work.

int UIItemStorage.maxRows = 4

Maximum number of rows to create.

int UIItemStorage.padding = 10

Padding around the border.

int UIItemStorage.spacing = 128

Spacing between icons.

GameObject UIItemStorage.template

Template used to create inventory icons.

Property Documentation

List<InvGameItem> UIItemStorage.items
get

List of items in the container.


The documentation for this class was generated from the following file: