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); }
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); }
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); }
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; }