C# Class NativeUI.UIMenuListItem

Inheritance: UIMenuItem
Afficher le fichier Open project: Guad/NativeUI Class Usage Examples

Protected Properties

Свойство Type Description
_arrowLeft Sprite
_arrowRight Sprite
_index int
_itemText NativeUI.UIResText
_items List

Méthodes publiques

Méthode Description
Draw ( ) : void

Draw item.

IndexToItem ( int index ) : dynamic

Find an item by it's index and return the item.

ItemToIndex ( dynamic item ) : int

Find an item in the list and return it's index.

Position ( int y ) : void

Change item's position.

SetRightBadge ( BadgeStyle badge ) : void
SetRightLabel ( string text ) : void
UIMenuListItem ( string text, List items, int index ) : System

List item, with left/right arrows.

UIMenuListItem ( string text, List items, int index, string description ) : System

List item, with left/right arrows.

Private Methods

Méthode Description
ListChangedTrigger ( int newindex ) : void

Method Details

Draw() public méthode

Draw item.
public Draw ( ) : void
Résultat void

IndexToItem() public méthode

Find an item by it's index and return the item.
public IndexToItem ( int index ) : dynamic
index int Item's index.
Résultat dynamic

ItemToIndex() public méthode

Find an item in the list and return it's index.
public ItemToIndex ( dynamic item ) : int
item dynamic Item to search for.
Résultat int

Position() public méthode

Change item's position.
public Position ( int y ) : void
y int New Y position.
Résultat void

SetRightBadge() public méthode

public SetRightBadge ( BadgeStyle badge ) : void
badge BadgeStyle
Résultat void

SetRightLabel() public méthode

public SetRightLabel ( string text ) : void
text string
Résultat void

UIMenuListItem() public méthode

List item, with left/right arrows.
public UIMenuListItem ( string text, List items, int index ) : System
text string Item label.
items List List that contains your items.
index int Index in the list. If unsure user 0.
Résultat System

UIMenuListItem() public méthode

List item, with left/right arrows.
public UIMenuListItem ( string text, List items, int index, string description ) : System
text string Item label.
items List List that contains your items.
index int Index in the list. If unsure user 0.
description string Description for this item.
Résultat System

Property Details

_arrowLeft protected_oe property

protected Sprite,NativeUI _arrowLeft
Résultat Sprite

_arrowRight protected_oe property

protected Sprite,NativeUI _arrowRight
Résultat Sprite

_index protected_oe property

protected int _index
Résultat int

_itemText protected_oe property

protected UIResText,NativeUI _itemText
Résultat NativeUI.UIResText

_items protected_oe property

protected List _items
Résultat List