C# Class RAGENativeUI.Elements.UIMenuItem

Simple item with a label.
显示文件 Open project: alexguirre/RAGENativeUI Class Usage Examples

Protected Properties

Property Type Description
_badgeLeft Sprite
_badgeRight Sprite
_labelText RAGENativeUI.Elements.ResText
_rectangle RAGENativeUI.Elements.ResRectangle
_selectedSprite Sprite
_text RAGENativeUI.Elements.ResText

Public Methods

Method Description
Draw ( ) : void

Draw this item.

Position ( int y ) : void

Set item's position.

SetLeftBadge ( BadgeStyle badge ) : void

Set the left badge. Set it to None to remove the badge.

SetRightBadge ( BadgeStyle badge ) : void

Set the right badge. Set it to None to remove the badge.

SetRightLabel ( string text ) : void

Set the right label.

UIMenuItem ( string text ) : System

Basic menu button.

UIMenuItem ( string text, string description ) : System

Basic menu button.

Protected Methods

Method Description
BadgeToColor ( BadgeStyle badge, bool selected ) : Color
BadgeToSpriteLib ( BadgeStyle badge ) : string
BadgeToSpriteName ( BadgeStyle badge, bool selected ) : string

Private Methods

Method Description
ItemActivate ( UIMenu sender ) : void

Method Details

BadgeToColor() protected method

protected BadgeToColor ( BadgeStyle badge, bool selected ) : Color
badge BadgeStyle
selected bool
return Color

BadgeToSpriteLib() protected method

protected BadgeToSpriteLib ( BadgeStyle badge ) : string
badge BadgeStyle
return string

BadgeToSpriteName() protected method

protected BadgeToSpriteName ( BadgeStyle badge, bool selected ) : string
badge BadgeStyle
selected bool
return string

Draw() public method

Draw this item.
public Draw ( ) : void
return void

Position() public method

Set item's position.
public Position ( int y ) : void
y int
return void

SetLeftBadge() public method

Set the left badge. Set it to None to remove the badge.
public SetLeftBadge ( BadgeStyle badge ) : void
badge BadgeStyle
return void

SetRightBadge() public method

Set the right badge. Set it to None to remove the badge.
public SetRightBadge ( BadgeStyle badge ) : void
badge BadgeStyle
return void

SetRightLabel() public method

Set the right label.
public SetRightLabel ( string text ) : void
text string Text as label. Set it to "" to remove the label.
return void

UIMenuItem() public method

Basic menu button.
public UIMenuItem ( string text ) : System
text string Button label.
return System

UIMenuItem() public method

Basic menu button.
public UIMenuItem ( string text, string description ) : System
text string Button label.
description string Description.
return System

Property Details

_badgeLeft protected_oe property

protected Sprite,RAGENativeUI.Elements _badgeLeft
return Sprite

_badgeRight protected_oe property

protected Sprite,RAGENativeUI.Elements _badgeRight
return Sprite

_labelText protected_oe property

protected ResText,RAGENativeUI.Elements _labelText
return RAGENativeUI.Elements.ResText

_rectangle protected_oe property

protected ResRectangle,RAGENativeUI.Elements _rectangle
return RAGENativeUI.Elements.ResRectangle

_selectedSprite protected_oe property

protected Sprite,RAGENativeUI.Elements _selectedSprite
return Sprite

_text protected_oe property

protected ResText,RAGENativeUI.Elements _text
return RAGENativeUI.Elements.ResText