C# Class RAGENativeUI.Elements.UIMenuSwitchMenusItem

List item that holds an UIMenu list and allows to easily switch between those menus.
All the UIMenus must have the same instance of this UIMenuSwitchMenusItem and is recommended to use the property UIMenuSwitchMenusItem.CurrentMenu to make the menu visible without issues.
Inheritance: UIMenuListItem
Exibir arquivo Open project: alexguirre/RAGENativeUI

Public Methods

Method Description
IndexToMenu ( int index ) : UIMenu

Find a menu by it's index and return the menu.

MenuToIndex ( UIMenu menu ) : int

Find a menu in the list and return it's index.

UIMenuSwitchMenusItem ( string text, List menus, List menusNames, int index ) : System

List item, with left/right arrows that switches the current menu depending on the current UIMenu item. The menus list and the menus names list must have the same items count.

UIMenuSwitchMenusItem ( string text, List menus, List menusNames, int index, string description ) : System

List item, with left/right arrows that switches the current menu depending on the current UIMenu item. The menus list and the menus names list must have the same items count.

UIMenuSwitchMenusItem ( string text, List menus, int index ) : System

List item, with left/right arrows that switches the current menu depending on the current UIMenu item. Uses the menus titles as the names in the list.

UIMenuSwitchMenusItem ( string text, List menus, int index, string description ) : System

List item, with left/right arrows that switches the current menu depending on the current UIMenu item. Uses the menus titles as the names in the list.

Method Details

IndexToMenu() public method

Find a menu by it's index and return the menu.
public IndexToMenu ( int index ) : UIMenu
index int Menu's index.
return UIMenu

MenuToIndex() public method

Find a menu in the list and return it's index.
public MenuToIndex ( UIMenu menu ) : int
menu UIMenu Menu to search for.
return int

UIMenuSwitchMenusItem() public method

List item, with left/right arrows that switches the current menu depending on the current UIMenu item. The menus list and the menus names list must have the same items count.
public UIMenuSwitchMenusItem ( string text, List menus, List menusNames, int index ) : System
text string Item label.
menus List List that contains your s.
menusNames List List that contains a name for each in the same order
index int Index in the list. If unsure user 0.
return System

UIMenuSwitchMenusItem() public method

List item, with left/right arrows that switches the current menu depending on the current UIMenu item. The menus list and the menus names list must have the same items count.
public UIMenuSwitchMenusItem ( string text, List menus, List menusNames, int index, string description ) : System
text string Item label.
menus List List that contains your s.
menusNames List List that contains a name for each in the same order
index int Index in the list. If unsure user 0.
description string Description for this item.
return System

UIMenuSwitchMenusItem() public method

List item, with left/right arrows that switches the current menu depending on the current UIMenu item. Uses the menus titles as the names in the list.
public UIMenuSwitchMenusItem ( string text, List menus, int index ) : System
text string Item label.
menus List List that contains your s.
index int Index in the list. If unsure user 0.
return System

UIMenuSwitchMenusItem() public method

List item, with left/right arrows that switches the current menu depending on the current UIMenu item. Uses the menus titles as the names in the list.
public UIMenuSwitchMenusItem ( string text, List menus, int index, string description ) : System
text string Item label.
menus List List that contains your s.
index int Index in the list. If unsure user 0.
description string Description for this item.
return System