C# Class Invert.Core.GraphDesigner.SelectionMenu

Afficher le fichier Open project: InvertGames/uFrame.Editor Class Usage Examples

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode Description
FindItem ( IEnumerable items, string name, bool recursive = true ) : IItem
FindItem ( string name ) : IItem

Method Details

AddItem() public méthode

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
Résultat void

ConvertAndAdd() public méthode

public ConvertAndAdd ( IEnumerable regularItems, Action itemAction, bool categoriesByGroups = true ) : void
regularItems IEnumerable
itemAction Action
categoriesByGroups bool
Résultat void

CreateCategoryIfNotExist() public méthode

public CreateCategoryIfNotExist ( ) : SelectionMenuCategory
Résultat SelectionMenuCategory

FindItem() protected méthode

protected FindItem ( IEnumerable items, string name, bool recursive = true ) : IItem
items IEnumerable
name string
recursive bool
Résultat IItem

FindItem() protected méthode

protected FindItem ( string name ) : IItem
name string
Résultat IItem