Exemplo n.º 1
0
 public static Action EnumField <Tenum>(string Label, Tenum value, Action <Tenum> onChange)
 {
     return(() => EditorWidgits.TextField(Label, value.ToString(), textVal => onChange(ParseTextEnum <Tenum>(value, textVal))));
 }
Exemplo n.º 2
0
 public static Action TextField(string Label, string value, Action <string> onChange)
 {
     return(() => EditorWidgits.TextField(Label, value, onChange));
 }
Exemplo n.º 3
0
 public static Action IntField(string Label, int value, Action <int> onChange)
 {
     return(() => EditorWidgits.TextField(Label, value.ToString(), textVal => onChange(ParseText(value, textVal))));
 }