Пример #1
0
 public Option(string name, int indice, OnChangeOption f = null)
 {
     this.name = name;
     type      = "button";
     min       = 0;
     max       = 0;
     idx       = indice;
     on_change = f;
 }
Пример #2
0
 public Option(string name, int indice, int v, int minv, int maxv, OnChangeOption f = null)
 {
     this.name    = name;
     type         = "spin";
     min          = minv;
     max          = maxv;
     idx          = indice;
     on_change    = f;
     defaultValue = currentValue = v.ToString();
 }
Пример #3
0
 public Option(string name, int indice, string v, OnChangeOption f = null)
 {
     this.name    = name;
     type         = "string";
     min          = 0;
     max          = 0;
     idx          = indice;
     on_change    = f;
     defaultValue = currentValue = v;
 }
Пример #4
0
 public Option(string name, int indice, bool v, OnChangeOption f = null)
 {
     this.name    = name;
     type         = "check";
     min          = 0;
     max          = 0;
     idx          = indice;
     on_change    = f;
     defaultValue = currentValue = (v ? "true" : "false");
 }