private void ctrlBtnSetVerbosityAll_Click(object sender, RoutedEventArgs e) { UE4LogVerbosity Verbosity = UE4LogVerbosity.Log; if (sender == ctrlBtnSetVerbosityAll) { Verbosity = UE4LogVerbosity.All; } else if (sender == ctrlBtnSetVerbosityVerbose) { Verbosity = UE4LogVerbosity.Verbose; } else if (sender == ctrlBtnSetVerbosityLog) { Verbosity = UE4LogVerbosity.Log; } else if (sender == ctrlBtnSetVerbosityDisplay) { Verbosity = UE4LogVerbosity.Display; } else if (sender == ctrlBtnSetVerbosityWarning) { Verbosity = UE4LogVerbosity.Warning; } else if (sender == ctrlBtnSetVerbosityError) { Verbosity = UE4LogVerbosity.Error; } else if (sender == ctrlBtnSetVerbosityFatal) { Verbosity = UE4LogVerbosity.Fatal; } else { return; } TheLauncher.SelectedVerbocityPlugin = Verbosity; TheLauncher.SelectedVerbocityEngine = Verbosity; TheLauncher.SelectedVerbocityConfig = Verbosity; TheLauncher.SelectedVerbocityCluster = Verbosity; TheLauncher.SelectedVerbocityGame = Verbosity; TheLauncher.SelectedVerbocityGameMode = Verbosity; TheLauncher.SelectedVerbocityInput = Verbosity; TheLauncher.SelectedVerbocityVrpn = Verbosity; TheLauncher.SelectedVerbocityNetwork = Verbosity; TheLauncher.SelectedVerbocityNetworkMsg = Verbosity; TheLauncher.SelectedVerbocityRender = Verbosity; TheLauncher.SelectedVerbocityRenderSync = Verbosity; TheLauncher.SelectedVerbocityBlueprint = Verbosity; }
public static UE4LogVerbosity UE4LogVerbosity_FromString(string From, UE4LogVerbosity Default) { if (string.IsNullOrEmpty(From)) { return(Default); } From = From.Trim(); if (string.Compare(From, "All", true) == 0) { return(UE4LogVerbosity.All); } else if (string.Compare(From, "Verbose", true) == 0) { return(UE4LogVerbosity.Verbose); } else if (string.Compare(From, "Log", true) == 0) { return(UE4LogVerbosity.Log); } else if (string.Compare(From, "Display", true) == 0) { return(UE4LogVerbosity.Display); } else if (string.Compare(From, "Warning", true) == 0) { return(UE4LogVerbosity.Warning); } else if (string.Compare(From, "Error", true) == 0) { return(UE4LogVerbosity.Error); } else if (string.Compare(From, "Fatal", true) == 0) { return(UE4LogVerbosity.Fatal); } return(Default); }
private void InitializeTabLog() { try { IsCustomLogsUsed = RegistrySaver.ReadBoolValue(RegistrySaver.RegCategoryLogParams, RegistrySaver.RegLogParamsUseCustomLogs); SelectedVerbocityPlugin = UE4LogVerbosity_FromString(RegistrySaver.ReadStringValue(RegistrySaver.RegCategoryLogParams, RegistrySaver.RegLogParamsVerbosityPlugin), UE4LogVerbosity.Log); SelectedVerbocityEngine = UE4LogVerbosity_FromString(RegistrySaver.ReadStringValue(RegistrySaver.RegCategoryLogParams, RegistrySaver.RegLogParamsVerbosityEngine), UE4LogVerbosity.Log); SelectedVerbocityConfig = UE4LogVerbosity_FromString(RegistrySaver.ReadStringValue(RegistrySaver.RegCategoryLogParams, RegistrySaver.RegLogParamsVerbosityConfig), UE4LogVerbosity.Log); SelectedVerbocityCluster = UE4LogVerbosity_FromString(RegistrySaver.ReadStringValue(RegistrySaver.RegCategoryLogParams, RegistrySaver.RegLogParamsVerbosityCluster), UE4LogVerbosity.Log); SelectedVerbocityGame = UE4LogVerbosity_FromString(RegistrySaver.ReadStringValue(RegistrySaver.RegCategoryLogParams, RegistrySaver.RegLogParamsVerbosityGame), UE4LogVerbosity.Log); SelectedVerbocityGameMode = UE4LogVerbosity_FromString(RegistrySaver.ReadStringValue(RegistrySaver.RegCategoryLogParams, RegistrySaver.RegLogParamsVerbosityGameMode), UE4LogVerbosity.Log); SelectedVerbocityInput = UE4LogVerbosity_FromString(RegistrySaver.ReadStringValue(RegistrySaver.RegCategoryLogParams, RegistrySaver.RegLogParamsVerbosityInput), UE4LogVerbosity.Log); SelectedVerbocityVrpn = UE4LogVerbosity_FromString(RegistrySaver.ReadStringValue(RegistrySaver.RegCategoryLogParams, RegistrySaver.RegLogParamsVerbosityInputVrpn), UE4LogVerbosity.Log); SelectedVerbocityNetwork = UE4LogVerbosity_FromString(RegistrySaver.ReadStringValue(RegistrySaver.RegCategoryLogParams, RegistrySaver.RegLogParamsVerbosityNetwork), UE4LogVerbosity.Log); SelectedVerbocityNetworkMsg = UE4LogVerbosity_FromString(RegistrySaver.ReadStringValue(RegistrySaver.RegCategoryLogParams, RegistrySaver.RegLogParamsVerbosityNetworkMsg), UE4LogVerbosity.Log); SelectedVerbocityBlueprint = UE4LogVerbosity_FromString(RegistrySaver.ReadStringValue(RegistrySaver.RegCategoryLogParams, RegistrySaver.RegLogParamsVerbosityBlueprint), UE4LogVerbosity.Log); SelectedVerbocityRender = UE4LogVerbosity_FromString(RegistrySaver.ReadStringValue(RegistrySaver.RegCategoryLogParams, RegistrySaver.RegLogParamsVerbosityRender), UE4LogVerbosity.Log); } catch (Exception ex) { AppLogger.Log(ex.Message); } }