All Classes Namespaces Functions Variables Enumerations Enumerator Properties
plyCommonEditor.plyListSelectWiz Class Reference

Shows a window with a list of items that can be selected from. More...

Inherits EditorWindow.

Static Public Member Functions

static void ShowWiz (string title, List< object > list, bool allowNone, object selected, GeneralCallback callback, object[] args)
 Shows the window. If the user selects and item your callback will be called and you can then check 'selected' to see which item was selected. More...
 

Public Attributes

object selected
 The selected item or null if 'none' was selected. You read this when your callback was called.
 

Detailed Description

Shows a window with a list of items that can be selected from.

Member Function Documentation

static void plyCommonEditor.plyListSelectWiz.ShowWiz ( string  title,
List< object >  list,
bool  allowNone,
object  selected,
GeneralCallback  callback,
object[]  args 
)
static

Shows the window. If the user selects and item your callback will be called and you can then check 'selected' to see which item was selected.

Parameters
titleThe title.
listThe list to show.
allowNoneCan the user select 'none' as an entry? Useful when you want to allow him o clear a previously selected item. The callback will be called and 'selected' will be set to null.
selectedThe currently selected item. This is optional and you can pass in null.
callbackThe callback to call when the user makes a selection. If he cancels or closes the window this callback will not be called.
argsExtra arguments to pass on to the callback.