C# Class NativeUI.UIMenuListItem

Inheritance: UIMenuItem
Show file Open project: Guad/NativeUI Class Usage Examples

Protected Properties

Property Type Description
_arrowLeft Sprite
_arrowRight Sprite
_index int
_itemText NativeUI.UIResText
_items List

Public Methods

Method 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

Method Description
ListChangedTrigger ( int newindex ) : void

Method Details

Draw() public method

Draw item.
public Draw ( ) : void
return void

IndexToItem() public method

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

ItemToIndex() public method

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

Position() public method

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

SetRightBadge() public method

public SetRightBadge ( BadgeStyle badge ) : void
badge BadgeStyle
return void

SetRightLabel() public method

public SetRightLabel ( string text ) : void
text string
return void

UIMenuListItem() public method

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.
return System

UIMenuListItem() public method

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.
return System

Property Details

_arrowLeft protected property

protected Sprite,NativeUI _arrowLeft
return Sprite

_arrowRight protected property

protected Sprite,NativeUI _arrowRight
return Sprite

_index protected property

protected int _index
return int

_itemText protected property

protected UIResText,NativeUI _itemText
return NativeUI.UIResText

_items protected property

protected List _items
return List