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 bool IsBoolParamSet(string BoolParam) { IgorJobConfig Inst = GetConfig(); if (Inst != null) { return(IgorRuntimeUtils.IsBoolParamSet(Inst.Persistent.JobCommandLineParams, BoolParam)); } return(false); }
public override bool ShouldDrawInspectorForParams(string CurrentParams) { bool bBuilding = IgorRuntimeUtils.IsBoolParamSet(CurrentParams, IgorBuildCommon.BuildFlag); bool bRecognizedPlatform = false; if (bBuilding) { string Platform = IgorRuntimeUtils.GetStringParam(CurrentParams, IgorBuildCommon.PlatformFlag); if (Platform == "iOS") { bRecognizedPlatform = true; } } return(bBuilding && bRecognizedPlatform); }
public override bool ShouldDrawInspectorForParams(string CurrentParams) { bool bBuilding = IgorRuntimeUtils.IsBoolParamSet(CurrentParams, IgorBuildCommon.BuildFlag); bool bRecognizedPlatform = false; if (bBuilding) { string Platform = IgorRuntimeUtils.GetStringParam(CurrentParams, IgorBuildCommon.PlatformFlag); if (Platform == "OSX32") { bRecognizedPlatform = true; } else if (Platform == "OSX64") { bRecognizedPlatform = true; } else if (Platform == "OSXUniversal") { bRecognizedPlatform = true; } else if (Platform == "Windows32") { bRecognizedPlatform = true; } else if (Platform == "Windows64") { bRecognizedPlatform = true; } else if (Platform == "Linux32") { bRecognizedPlatform = true; } else if (Platform == "Linux64") { bRecognizedPlatform = true; } else if (Platform == "LinuxUniversal") { bRecognizedPlatform = true; } } return(bBuilding && bRecognizedPlatform); }
public override bool ShouldDrawInspectorForParams(string CurrentParams) { bool bBuilding = IgorRuntimeUtils.IsBoolParamSet(CurrentParams, IgorBuildCommon.BuildFlag); bool bRecognizedPlatform = false; if (bBuilding) { bool bWindows = false; bool bOSX = false; bool bLinux = false; IgorBuildDesktop.GetBuildTargetForCurrentJob(out bWindows, out bOSX, out bLinux, CurrentParams); bRecognizedPlatform = bWindows; } return(bBuilding && bRecognizedPlatform); }
public virtual string DrawJobInspectorAndGetEnabledParams(string CurrentParams) { // TODO: We also need to add in platform stuff to the monstertestcore module and to this inspector call // Also probably add in a checkbox to say if we should run in the editor for platforms that allow it...or would it ever make sense to trigger from the editor? string EnabledParams = CurrentParams; bool bIsBuilding = IgorRuntimeUtils.IsBoolParamSet(CurrentParams, IgorBuildCommon.BuildFlag); bool bBuildTestableApp = false; if (bIsBuilding) { bBuildTestableApp = DrawBoolParam(ref EnabledParams, "Built executable should be testable", MonsterTestCore.BuildTestableAppFlag); if (bBuildTestableApp) { DrawBoolParam(ref EnabledParams, "Rebuild Launchers On Build", MonsterTestCore.RebuildLaunchersFlag); if (GUILayout.Button("Rebuild Launcher Executables Now")) { RebuildLaunchers(); } } } if (!bIsBuilding || bBuildTestableApp) { bool bRunTests = DrawBoolParam(ref EnabledParams, "Run tests", MonsterTestCore.RunTestFlag); if (bRunTests) { string CurrentTestName = IgorRuntimeUtils.GetStringParam(EnabledParams, MonsterTestCore.TestNameFlag); CurrentTestName = DrawTestDropdown(CurrentTestName); EnabledParams = IgorRuntimeUtils.SetStringParam(EnabledParams, MonsterTestCore.TestNameFlag, CurrentTestName); DrawStringParam(ref EnabledParams, "Explicit executable path", MonsterTestCore.ExplicitAppPathFlag); } } return(EnabledParams); }