NGUI: Next-Gen UI kit
3.7.2
|
Storage container that stores items. More...
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< InvGameItem > | items [get] |
List of items in the container. More... | |
Storage container that stores items.
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.
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.
|
get |
List of items in the container.