BadScript 2
Loading...
Searching...
No Matches
BadLoggerSettings.cs
Go to the documentation of this file.
3
5
9public class BadLoggerSettings : BadSettingsProvider<BadLoggerSettings>
10{
13
14
17
20
21
24
25
28
29
32
33 public BadLoggerSettings() : base("Logging") { }
34
35 public ConsoleColor LogForegroundColor
36 {
37 get => BadEnum.Parse<ConsoleColor>(m_LogForegroundColor.GetValue()!, true);
38 set => m_LogForegroundColor.Set(value.ToString());
39 }
40
41 public ConsoleColor LogBackgroundColor
42 {
43 get => BadEnum.Parse<ConsoleColor>(m_LogBackgroundColor.GetValue()!, true);
44 set => m_LogBackgroundColor.Set(value.ToString());
45 }
46
47 public ConsoleColor WarnForegroundColor
48 {
49 get => BadEnum.Parse<ConsoleColor>(m_WarnForegroundColor.GetValue()!, true);
50 set => m_WarnForegroundColor.Set(value.ToString());
51 }
52
53 public ConsoleColor WarnBackgroundColor
54 {
55 get => BadEnum.Parse<ConsoleColor>(m_WarnBackgroundColor.GetValue()!, true);
56 set => m_WarnBackgroundColor.Set(value.ToString());
57 }
58
59 public ConsoleColor ErrorForegroundColor
60 {
61 get => BadEnum.Parse<ConsoleColor>(m_ErrorForegroundColor.GetValue()!, true);
62 set => m_ErrorForegroundColor.Set(value.ToString());
63 }
64
65 public ConsoleColor ErrorBackgroundColor
66 {
67 get => BadEnum.Parse<ConsoleColor>(m_ErrorBackgroundColor.GetValue()!, true);
68 set => m_ErrorBackgroundColor.Set(value.ToString());
69 }
70}
readonly BadEditableSetting< BadLoggerSettings, string > m_ErrorBackgroundColor
readonly BadEditableSetting< BadLoggerSettings, string > m_WarnForegroundColor
readonly BadEditableSetting< BadLoggerSettings, string > m_ErrorForegroundColor
readonly BadEditableSetting< BadLoggerSettings, string > m_LogForegroundColor
readonly BadEditableSetting< BadLoggerSettings, string > m_WarnBackgroundColor
readonly BadEditableSetting< BadLoggerSettings, string > m_LogBackgroundColor
Implements an Editable Setting.
Helper class that can be used to automatically load a settings object from a file.
Implements Enum functions that are missing in .NET Standard 2.0.
Definition BadEnum.cs:11
Contains Logging system for the BadScript Runtime.
Definition BadLog.cs:6
Contains the Settings Implementation.
Contains Utility Functions and Classes.
Definition BadEnum.cs:5