C# Class JBCustomMenu.MenuItem, unity-JBConsole

Show file Open project: spaceapegames/unity-JBConsole

Public Properties

Property Type Description
Callback Action
Children List
Name string

Public Methods

Method Description
AddChild ( MenuItem, child ) : void
AddPath ( string path, int pathIndex, Action callback ) : void
GetLinkName ( ) : string
GetLinks ( ) : string[]
MenuItem ( string name ) : System
OnChildClicked ( int index ) : MenuItem,
RemovePath ( string path, int pathIndex ) : void
SetCallback ( Action callback ) : void

Private Methods

Method Description
FindChild ( string n ) : MenuItem,
PathIndexHasChild ( string path, int pathIndex ) : bool

Method Details

AddChild() public method

public AddChild ( MenuItem, child ) : void
child MenuItem,
return void

AddPath() public method

public AddPath ( string path, int pathIndex, Action callback ) : void
path string
pathIndex int
callback Action
return void

GetLinkName() public method

public GetLinkName ( ) : string
return string

GetLinks() public method

public GetLinks ( ) : string[]
return string[]

MenuItem() public method

public MenuItem ( string name ) : System
name string
return System

OnChildClicked() public method

public OnChildClicked ( int index ) : MenuItem,
index int
return MenuItem,

RemovePath() public method

public RemovePath ( string path, int pathIndex ) : void
path string
pathIndex int
return void

SetCallback() public method

public SetCallback ( Action callback ) : void
callback Action
return void

Property Details

Callback public property

public Action Callback
return Action

Children public property

public List Children
return List

Name public property

public string Name
return string