C# Class RAGENativeUI.Elements.UIMenuListItem

Inheritance: UIMenuItem
ファイルを表示 Open project: alexguirre/RAGENativeUI Class Usage Examples

Public Properties

Property Type Description
HoldTimeBeforeScroll uint
ScrollingEnabled bool

Protected Properties

Property Type Description
_arrowLeft Sprite
_arrowRight Sprite
_index int
_itemText RAGENativeUI.Elements.ResText
_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

HoldTimeBeforeScroll public_oe property

Hold time in milliseconds before scrolling to the next item on list when holding the key [Default = 200]
public uint HoldTimeBeforeScroll
return uint

ScrollingEnabled public_oe property

Enables or disables scrolling through the list by holding the key
public bool ScrollingEnabled
return bool

_arrowLeft protected_oe property

protected Sprite,RAGENativeUI.Elements _arrowLeft
return Sprite

_arrowRight protected_oe property

protected Sprite,RAGENativeUI.Elements _arrowRight
return Sprite

_index protected_oe property

protected int _index
return int

_itemText protected_oe property

protected ResText,RAGENativeUI.Elements _itemText
return RAGENativeUI.Elements.ResText

_items protected_oe property

protected List _items
return List