C# Class Invert.Core.GraphDesigner.SelectionMenu

Exibir arquivo Open project: InvertGames/uFrame.Editor Class Usage Examples

Public Methods

Method Description
AddItem ( IItem item, SelectionMenuCategory category = null ) : void

You can pass any IItem here. SelectionMenuItem will invoke it's action when clicked Anything else will do no action when clicked

ConvertAndAdd ( IEnumerable regularItems, Action itemAction, bool categoriesByGroups = true ) : void
CreateCategoryIfNotExist ( ) : SelectionMenuCategory

Protected Methods

Method Description
FindItem ( IEnumerable items, string name, bool recursive = true ) : IItem
FindItem ( string name ) : IItem

Method Details

AddItem() public method

You can pass any IItem here. SelectionMenuItem will invoke it's action when clicked Anything else will do no action when clicked
public AddItem ( IItem item, SelectionMenuCategory category = null ) : void
item IItem
category SelectionMenuCategory
return void

ConvertAndAdd() public method

public ConvertAndAdd ( IEnumerable regularItems, Action itemAction, bool categoriesByGroups = true ) : void
regularItems IEnumerable
itemAction Action
categoriesByGroups bool
return void

CreateCategoryIfNotExist() public method

public CreateCategoryIfNotExist ( ) : SelectionMenuCategory
return SelectionMenuCategory

FindItem() protected method

protected FindItem ( IEnumerable items, string name, bool recursive = true ) : IItem
items IEnumerable
name string
recursive bool
return IItem

FindItem() protected method

protected FindItem ( string name ) : IItem
name string
return IItem