Twoorb Plugins  1.0
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties
Twoorb.Utilities.Editor.InputWindow Class Reference

Utility class to show a quick editor window with changeable properties. More...

Inheritance diagram for Twoorb.Utilities.Editor.InputWindow:

Public Member Functions

delegate void Callback< T1 > (T1 arg1)
 Window callback with one argument More...
 
delegate void Callback< T1, T2 > (T1 arg1, T2 arg2)
 Window callback with two arguments More...
 
delegate void Callback< T1, T2, T3 > (T1 arg1, T2 arg2, T3 arg3)
 Window callback with three arguments More...
 
delegate void Callback< T1, T2, T3, T4 > (T1 arg1, T2 arg2, T3 arg3, T4 arg4)
 Window callback with four arguments More...
 
delegate void Callback< T1, T2, T3, T4, T5 > (T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5)
 Window callback with five arguments More...
 
delegate void Callback< T1, T2, T3, T4, T5, T6 > (T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6)
 Window callback with six arguments More...
 

Static Public Member Functions

static void Show (string title, Callback< bool > onDone)
 Show a simple window with an "OK" and "CANCEL" button More...
 
static void Show< T1 > (string title, Callback< bool, T1 > onDone, T1 v1, string l1="")
 Show a simple window with one data field. More...
 
static void Show< T1, T2 > (string title, Callback< bool, T1, T2 > onDone, T1 v1, T2 v2, string l1="", string l2="")
 Show a simple window with two data fields. More...
 
static void Show< T1, T2, T3 > (string title, Callback< bool, T1, T2, T3 > onDone, T1 v1, T2 v2, T3 v3, string l1="", string l2="", string l3="")
 Show a simple window with three data fields. More...
 
static void Show< T1, T2, T3, T4 > (string title, Callback< bool, T1, T2, T3, T4 > onDone, T1 v1, T2 v2, T3 v3, T4 v4, string l1="", string l2="", string l3="", string l4="")
 Show a simple window with four data fields. More...
 
static void Show< T1, T2, T3, T4, T5 > (string title, Callback< bool, T1, T2, T3, T4, T5 > onDone, T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, string l1="", string l2="", string l3="", string l4="", string l5="")
 Show a simple window with five data fields. More...
 
static void SetHelper (string message, MessageType type, bool above=false)
 Sets a helper text above or below the data fields of the window More...
 

Public Attributes

List< object > dataList = new List<object>()
 The list of data for the window More...
 
List< string > dataLabels = new List<string>()
 The labels used to define the data objects More...
 
List< Action< object > > dataCallbacks = new List<Action<object>>()
 The list of callbacks More...
 

Detailed Description

Utility class to show a quick editor window with changeable properties.

Member Function Documentation

delegate void Twoorb.Utilities.Editor.InputWindow.Callback< T1 > ( T1  arg1)

Window callback with one argument

delegate void Twoorb.Utilities.Editor.InputWindow.Callback< T1, T2 > ( T1  arg1,
T2  arg2 
)

Window callback with two arguments

delegate void Twoorb.Utilities.Editor.InputWindow.Callback< T1, T2, T3 > ( T1  arg1,
T2  arg2,
T3  arg3 
)

Window callback with three arguments

delegate void Twoorb.Utilities.Editor.InputWindow.Callback< T1, T2, T3, T4 > ( T1  arg1,
T2  arg2,
T3  arg3,
T4  arg4 
)

Window callback with four arguments

delegate void Twoorb.Utilities.Editor.InputWindow.Callback< T1, T2, T3, T4, T5 > ( T1  arg1,
T2  arg2,
T3  arg3,
T4  arg4,
T5  arg5 
)

Window callback with five arguments

delegate void Twoorb.Utilities.Editor.InputWindow.Callback< T1, T2, T3, T4, T5, T6 > ( T1  arg1,
T2  arg2,
T3  arg3,
T4  arg4,
T5  arg5,
T6  arg6 
)

Window callback with six arguments

static void Twoorb.Utilities.Editor.InputWindow.SetHelper ( string  message,
MessageType  type,
bool  above = false 
)
static

Sets a helper text above or below the data fields of the window

Parameters
messageThe message of the helper text
typeThe type of the message
aboveIf the helper box should be drawn above or below the box
static void Twoorb.Utilities.Editor.InputWindow.Show ( string  title,
Callback< bool >  onDone 
)
static

Show a simple window with an "OK" and "CANCEL" button

Parameters
titleThe title of the window
onDoneCallback returning if the ok button was pressed
static void Twoorb.Utilities.Editor.InputWindow.Show< T1 > ( string  title,
Callback< bool, T1 >  onDone,
T1  v1,
string  l1 = "" 
)
static

Show a simple window with one data field.

Template Parameters
T1The type of the first field
Parameters
titleThe title of the window
onDoneCallback returning if the ok button was pressed along with the changed value(s)
v1The initial value for the first field.
l1The optional label for the first field.
static void Twoorb.Utilities.Editor.InputWindow.Show< T1, T2 > ( string  title,
Callback< bool, T1, T2 >  onDone,
T1  v1,
T2  v2,
string  l1 = "",
string  l2 = "" 
)
static

Show a simple window with two data fields.

Template Parameters
T1The type of the first field
T2The type of the second field
Parameters
titleThe title of the window
onDoneCallback returning if the ok button was pressed along with the changed value(s)
v1The initial value for the first field.
v2The initial value for the second field.
l1The optional label for the first field.
l2The optional label for the second field.
static void Twoorb.Utilities.Editor.InputWindow.Show< T1, T2, T3 > ( string  title,
Callback< bool, T1, T2, T3 >  onDone,
T1  v1,
T2  v2,
T3  v3,
string  l1 = "",
string  l2 = "",
string  l3 = "" 
)
static

Show a simple window with three data fields.

Template Parameters
T1The type of the first field
T2The type of the second field
T3The type of the third field
Parameters
titleThe title of the window
onDoneCallback returning if the ok button was pressed along with the changed value(s)
v1The initial value for the first field.
v2The initial value for the second field.
v3The initial value for the third field.
l1The optional label for the first field.
l2The optional label for the second field.
l3The optional label for the third field.
static void Twoorb.Utilities.Editor.InputWindow.Show< T1, T2, T3, T4 > ( string  title,
Callback< bool, T1, T2, T3, T4 >  onDone,
T1  v1,
T2  v2,
T3  v3,
T4  v4,
string  l1 = "",
string  l2 = "",
string  l3 = "",
string  l4 = "" 
)
static

Show a simple window with four data fields.

Template Parameters
T1The type of the first field
T2The type of the second field
T3The type of the third field
T4The type of the fourth field
Parameters
titleThe title of the window
onDoneCallback returning if the ok button was pressed along with the changed value(s)
v1The initial value for the first field.
v2The initial value for the second field.
v3The initial value for the third field.
v4The initial value for the fourth field.
l1The optional label for the first field.
l2The optional label for the second field.
l3The optional label for the third field.
l4The optional label for the fourth field.
static void Twoorb.Utilities.Editor.InputWindow.Show< T1, T2, T3, T4, T5 > ( string  title,
Callback< bool, T1, T2, T3, T4, T5 >  onDone,
T1  v1,
T2  v2,
T3  v3,
T4  v4,
T5  v5,
string  l1 = "",
string  l2 = "",
string  l3 = "",
string  l4 = "",
string  l5 = "" 
)
static

Show a simple window with five data fields.

Template Parameters
T1The type of the first field
T2The type of the second field
T3The type of the third field
T4The type of the fourth field
T5The type of the fifth field
Parameters
titleThe title of the window
onDoneCallback returning if the ok button was pressed along with the changed value(s)
v1The initial value for the first field.
v2The initial value for the second field.
v3The initial value for the third field.
v4The initial value for the fourth field.
v5The initial value for the fifth field.
l1The optional label for the first field.
l2The optional label for the second field.
l3The optional label for the third field.
l4The optional label for the fourth field.
l5The optional label for the fifth field.

Member Data Documentation

List<Action<object> > Twoorb.Utilities.Editor.InputWindow.dataCallbacks = new List<Action<object>>()

The list of callbacks

List<string> Twoorb.Utilities.Editor.InputWindow.dataLabels = new List<string>()

The labels used to define the data objects

List<object> Twoorb.Utilities.Editor.InputWindow.dataList = new List<object>()

The list of data for the window


The documentation for this class was generated from the following file: