This editor helper class makes it easy to create and show a context menu. It ensures that it's possible to add multiple items with the same name.
More...
|
static void | Clear () |
| Clear the context menu list. More...
|
|
static void | AddItem (string item, bool isChecked, GenericMenu.MenuFunction2 callback, object param) |
| Add a new context menu entry. More...
|
|
static void | AddChild (object obj) |
| Wrapper function called by the menu that in turn calls the correct callback. More...
|
|
static void | AddChildWidget (string item, bool isChecked, AddFunc callback) |
| Add a new context menu entry. More...
|
|
static void | AddSibling (object obj) |
| Wrapper function called by the menu that in turn calls the correct callback. More...
|
|
static void | AddSiblingWidget (string item, bool isChecked, AddFunc callback) |
| Add a new context menu entry. More...
|
|
static void | AddCommonItems (GameObject target) |
| Add commonly NGUI context menu options. More...
|
|
static void | AddHelp (GameObject go, bool addSeparator) |
| Add help options based on the components present on the specified game object. More...
|
|
static void | AddDisabledItem (string item) |
| Add a new disabled context menu entry. More...
|
|
static void | AddSeparator (string path) |
| Add a separator to the menu. More...
|
|
static void | Show () |
| Show the context menu with all the added items. More...
|
|
This editor helper class makes it easy to create and show a context menu. It ensures that it's possible to add multiple items with the same name.
static void NGUIContextMenu.AddChild |
( |
object |
obj | ) |
|
|
static |
Wrapper function called by the menu that in turn calls the correct callback.
static void NGUIContextMenu.AddChildWidget |
( |
string |
item, |
|
|
bool |
isChecked, |
|
|
AddFunc |
callback |
|
) |
| |
|
static |
Add a new context menu entry.
static void NGUIContextMenu.AddCommonItems |
( |
GameObject |
target | ) |
|
|
static |
Add commonly NGUI context menu options.
static void NGUIContextMenu.AddDisabledItem |
( |
string |
item | ) |
|
|
static |
Add a new disabled context menu entry.
delegate UIWidget NGUIContextMenu.AddFunc |
( |
GameObject |
go | ) |
|
static void NGUIContextMenu.AddHelp |
( |
GameObject |
go, |
|
|
bool |
addSeparator |
|
) |
| |
|
static |
Add help options based on the components present on the specified game object.
static void NGUIContextMenu.AddItem |
( |
string |
item, |
|
|
bool |
isChecked, |
|
|
GenericMenu.MenuFunction2 |
callback, |
|
|
object |
param |
|
) |
| |
|
static |
Add a new context menu entry.
static void NGUIContextMenu.AddSeparator |
( |
string |
path | ) |
|
|
static |
Add a separator to the menu.
static void NGUIContextMenu.AddSibling |
( |
object |
obj | ) |
|
|
static |
Wrapper function called by the menu that in turn calls the correct callback.
static void NGUIContextMenu.AddSiblingWidget |
( |
string |
item, |
|
|
bool |
isChecked, |
|
|
AddFunc |
callback |
|
) |
| |
|
static |
Add a new context menu entry.
static void NGUIContextMenu.Clear |
( |
| ) |
|
|
static |
Clear the context menu list.
static void NGUIContextMenu.Show |
( |
| ) |
|
|
static |
Show the context menu with all the added items.
The documentation for this class was generated from the following file: