@@ -25,10 +25,11 @@ public static class ConfigManager
25
25
public static ConfigElement < string > Default_Output_Path ;
26
26
public static ConfigElement < string > DnSpy_Path ;
27
27
public static ConfigElement < bool > Log_Unity_Debug ;
28
- public static ConfigElement < string > Reflection_Signature_Blacklist ;
29
28
public static ConfigElement < UIManager . VerticalAnchor > Main_Navbar_Anchor ;
30
29
public static ConfigElement < KeyCode > World_MouseInspect_Keybind ;
31
30
public static ConfigElement < KeyCode > UI_MouseInspect_Keybind ;
31
+ public static ConfigElement < string > CSConsole_Assembly_Blacklist ;
32
+ public static ConfigElement < string > Reflection_Signature_Blacklist ;
32
33
33
34
// internal configs
34
35
internal static InternalConfigHandler InternalHandler { get ; private set ; }
@@ -57,8 +58,6 @@ public static void Init(ConfigHandler configHandler)
57
58
#if STANDALONE
58
59
Loader . Standalone . ExplorerEditorBehaviour . Instance ? . LoadConfigs ( ) ;
59
60
#endif
60
-
61
- //InitConsoleCallback();
62
61
}
63
62
64
63
internal static void RegisterConfigElement < T > ( ConfigElement < T > configElement )
@@ -77,50 +76,50 @@ internal static void RegisterConfigElement<T>(ConfigElement<T> configElement)
77
76
78
77
private static void CreateConfigElements ( )
79
78
{
80
- Master_Toggle = new ConfigElement < KeyCode > ( "UnityExplorer Toggle" ,
79
+ Master_Toggle = new ( "UnityExplorer Toggle" ,
81
80
"The key to enable or disable UnityExplorer's menu and features." ,
82
81
KeyCode . F7 ) ;
83
82
84
- Hide_On_Startup = new ConfigElement < bool > ( "Hide On Startup" ,
83
+ Hide_On_Startup = new ( "Hide On Startup" ,
85
84
"Should UnityExplorer be hidden on startup?" ,
86
85
false ) ;
87
86
88
- Startup_Delay_Time = new ConfigElement < float > ( "Startup Delay Time" ,
87
+ Startup_Delay_Time = new ( "Startup Delay Time" ,
89
88
"The delay on startup before the UI is created." ,
90
89
1f ) ;
91
90
92
- Target_Display = new ConfigElement < int > ( "Target Display" ,
91
+ Target_Display = new ( "Target Display" ,
93
92
"The monitor index for UnityExplorer to use, if you have multiple. 0 is the default display, 1 is secondary, etc. " +
94
93
"Restart recommended when changing this setting. Make sure your extra monitors are the same resolution as your primary monitor." ,
95
94
0 ) ;
96
95
97
- Force_Unlock_Mouse = new ConfigElement < bool > ( "Force Unlock Mouse" ,
96
+ Force_Unlock_Mouse = new ( "Force Unlock Mouse" ,
98
97
"Force the Cursor to be unlocked (visible) when the UnityExplorer menu is open." ,
99
98
true ) ;
100
99
Force_Unlock_Mouse . OnValueChanged += ( bool value ) => UniverseLib . Config . ConfigManager . Force_Unlock_Mouse = value ;
101
100
102
- Force_Unlock_Toggle = new ConfigElement < KeyCode > ( "Force Unlock Toggle Key" ,
101
+ Force_Unlock_Toggle = new ( "Force Unlock Toggle Key" ,
103
102
"The keybind to toggle the 'Force Unlock Mouse' setting. Only usable when UnityExplorer is open." ,
104
103
KeyCode . None ) ;
105
104
106
- Disable_EventSystem_Override = new ConfigElement < bool > ( "Disable EventSystem override" ,
105
+ Disable_EventSystem_Override = new ( "Disable EventSystem override" ,
107
106
"If enabled, UnityExplorer will not override the EventSystem from the game.\n <b>May require restart to take effect.</b>" ,
108
107
false ) ;
109
108
Disable_EventSystem_Override . OnValueChanged += ( bool value ) => UniverseLib . Config . ConfigManager . Disable_EventSystem_Override = value ;
110
109
111
- Default_Output_Path = new ConfigElement < string > ( "Default Output Path" ,
110
+ Default_Output_Path = new ( "Default Output Path" ,
112
111
"The default output path when exporting things from UnityExplorer." ,
113
112
Path . Combine ( ExplorerCore . ExplorerFolder , "Output" ) ) ;
114
113
115
- DnSpy_Path = new ConfigElement < string > ( "dnSpy Path" ,
114
+ DnSpy_Path = new ( "dnSpy Path" ,
116
115
"The full path to dnSpy.exe (64-bit)." ,
117
116
@"C:/Program Files/dnspy/dnSpy.exe" ) ;
118
117
119
- Main_Navbar_Anchor = new ConfigElement < UIManager . VerticalAnchor > ( "Main Navbar Anchor" ,
118
+ Main_Navbar_Anchor = new ( "Main Navbar Anchor" ,
120
119
"The vertical anchor of the main UnityExplorer Navbar, in case you want to move it." ,
121
120
UIManager . VerticalAnchor . Top ) ;
122
121
123
- Log_Unity_Debug = new ConfigElement < bool > ( "Log Unity Debug" ,
122
+ Log_Unity_Debug = new ( "Log Unity Debug" ,
124
123
"Should UnityEngine.Debug.Log messages be printed to UnityExplorer's log?" ,
125
124
false ) ;
126
125
@@ -132,7 +131,13 @@ private static void CreateConfigElements()
132
131
"Optional keybind to begin a UI-mode Mouse Inspect." ,
133
132
KeyCode . None ) ;
134
133
135
- Reflection_Signature_Blacklist = new ConfigElement < string > ( "Member Signature Blacklist" ,
134
+ CSConsole_Assembly_Blacklist = new ( "CSharp Console Assembly Blacklist" ,
135
+ "Use this to blacklist Assembly names from being referenced by the C# Console. Requires a Reset of the C# Console.\n " +
136
+ "Separate each Assembly with a semicolon ';'." +
137
+ "For example, to blacklist Assembly-CSharp, you would add 'Assembly-CSharp;'" ,
138
+ "" ) ;
139
+
140
+ Reflection_Signature_Blacklist = new ( "Member Signature Blacklist" ,
136
141
"Use this to blacklist certain member signatures if they are known to cause a crash or other issues.\r \n " +
137
142
"Seperate signatures with a semicolon ';'.\r \n " +
138
143
"For example, to blacklist Camera.main, you would add 'UnityEngine.Camera.main;'" ,
0 commit comments