public Option(string name, int indice, OnChangeOption f = null) { this.name = name; type = "button"; min = 0; max = 0; idx = indice; on_change = f; }
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(); }
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; }
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"); }