C# Class InventoryItemButton, Lumiere

Inheritance: MonoBehaviour, ISelectHandler, IPointerEnterHandler
Exibir arquivo Open project: smwolfskill/Lumiere Class Usage Examples

Public Properties

Property Type Description
UNSET_ITEM_COLOR_BG Color,
UNSET_ITEM_COLOR_FG Color,
backgroundImage Image
button Button
itemImage Image
itemQuantityText Text
panelScript InventoryPanel
uiBehavior UIBehavior

Public Methods

Method Description
OnPointerEnter ( PointerEventData eventData ) : void
OnPointerExit ( PointerEventData eventData ) : void
SetGUIReferences ( UIBehavior, uiBehavior, InventoryPanel, panelScript ) : void
SetNewItem ( GameItem, newItem, int locationX, int locationY ) : void
Start ( ) : void
TaskOnClick ( ) : void
UpdateQuantityText ( ) : void

Method Details

OnPointerEnter() public method

public OnPointerEnter ( PointerEventData eventData ) : void
eventData PointerEventData
return void

OnPointerExit() public method

public OnPointerExit ( PointerEventData eventData ) : void
eventData PointerEventData
return void

SetGUIReferences() public method

public SetGUIReferences ( UIBehavior, uiBehavior, InventoryPanel, panelScript ) : void
uiBehavior UIBehavior,
panelScript InventoryPanel,
return void

SetNewItem() public method

public SetNewItem ( GameItem, newItem, int locationX, int locationY ) : void
newItem GameItem,
locationX int
locationY int
return void

Start() public method

public Start ( ) : void
return void

TaskOnClick() public method

public TaskOnClick ( ) : void
return void

UpdateQuantityText() public method

public UpdateQuantityText ( ) : void
return void

Property Details

UNSET_ITEM_COLOR_BG public_oe static_oe property

public static Color, UNSET_ITEM_COLOR_BG
return Color,

UNSET_ITEM_COLOR_FG public_oe static_oe property

public static Color, UNSET_ITEM_COLOR_FG
return Color,

backgroundImage public_oe property

public Image backgroundImage
return Image

button public_oe property

public Button button
return Button

itemImage public_oe property

public Image itemImage
return Image

itemQuantityText public_oe property

public Text itemQuantityText
return Text

panelScript public_oe property

public InventoryPanel panelScript
return InventoryPanel

uiBehavior public_oe property

public UIBehavior uiBehavior
return UIBehavior