Beispiel #1
0
 public void BoolCheckbox(ref JSONStorableBool output, string name, bool start,
                          JSONStorableBool.SetBoolCallback callback = null, bool right = false)
 {
     output = new JSONStorableBool(name, start, callback);
     script.RegisterBool(output);
     script.CreateToggle(output, right);
 }
Beispiel #2
0
 private void BoolCheckbox(ref JSONStorableBool output, string name, bool start, JSONStorableBool.SetBoolCallback callback, bool rhs)
 {
     output = new JSONStorableBool(name, start, callback);
     RegisterBool(output);
     CreateToggle(output, rhs);
 }
Beispiel #3
0
        public JSONStorableBool CreateToggle(string paramName, string label, bool startingValue, JSONStorableBool.SetBoolCallback callback, bool rightSide = false)
        {
            var storable = new JSONStorableBool(paramName, startingValue, callback);
            var toggle   = Plugin.CreateToggle(storable, rightSide);

            toggle.label = label;
            return(storable);
        }
Beispiel #4
0
 public JSONStorableBool CreateToggle(string paramName, string label, bool startingValue, JSONStorableBool.SetBoolCallback callback, bool rightSide = false)
 {
     var storable = _builder.CreateToggle(paramName, label, startingValue, callback, rightSide);
     _objects.Add(storable);
     return storable;
 }