public virtual bool DrawBoolParam(ref string CurrentParams, string BoolLabel, string BoolParam) { bool bIsEnabled = IgorRuntimeUtils.IsBoolParamSet(CurrentParams, BoolParam); bIsEnabled = EditorGUILayout.Toggle(new GUIContent(BoolLabel, BoolLabel), bIsEnabled); CurrentParams = IgorRuntimeUtils.SetBoolParam(CurrentParams, BoolParam, bIsEnabled); return(bIsEnabled); }
public static void SetBoolParam(string BoolParam, bool bTrue) { IgorJobConfig Inst = GetConfig(); if (Inst != null) { Inst.Persistent.JobCommandLineParams = IgorRuntimeUtils.SetBoolParam(Inst.Persistent.JobCommandLineParams, BoolParam, bTrue); Inst.Save(IgorJobConfigPath); } }