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

Abstract UI component observing an item somewhere in the inventory. This item can be equipped on the character, it can be lying in a chest, or it can be hot-linked by another player. Either way, all the common behavior is in this class. What the observed item actually is... that's up to the derived class to determine. More...

Inheritance diagram for UIItemSlot:
UIEquipmentSlot UIStorageSlot

Public Attributes

UISprite icon
 
UIWidget background
 
UILabel label
 
AudioClip grabSound
 
AudioClip placeSound
 
AudioClip errorSound
 

Protected Member Functions

abstract InvGameItem Replace (InvGameItem item)
 Replace the observed item with the specified value. Should return the item that was replaced. More...
 

Properties

abstract InvGameItem observedItem [get]
 This function should return the item observed by this UI class. More...
 

Detailed Description

Abstract UI component observing an item somewhere in the inventory. This item can be equipped on the character, it can be lying in a chest, or it can be hot-linked by another player. Either way, all the common behavior is in this class. What the observed item actually is... that's up to the derived class to determine.

Member Function Documentation

abstract InvGameItem UIItemSlot.Replace ( InvGameItem  item)
protectedpure virtual

Replace the observed item with the specified value. Should return the item that was replaced.

Implemented in UIEquipmentSlot, and UIStorageSlot.

Member Data Documentation

UIWidget UIItemSlot.background
AudioClip UIItemSlot.errorSound
AudioClip UIItemSlot.grabSound
UISprite UIItemSlot.icon
UILabel UIItemSlot.label
AudioClip UIItemSlot.placeSound

Property Documentation

abstract InvGameItem UIItemSlot.observedItem
getprotected

This function should return the item observed by this UI class.


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