Exemple #1
0
        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);
        }
Exemple #2
0
        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);
            }
        }