@@ -17,18 +17,18 @@ public static class ConfigManager
17
17
// See the UnityExplorer.Loader namespace for the implementations.
18
18
public static ConfigHandler Handler { get ; private set ; }
19
19
20
- public static ConfigElement < KeyCode > Main_Menu_Toggle ;
21
- public static ConfigElement < bool > Force_Unlock_Mouse ;
22
- public static ConfigElement < int > Default_Page_Limit ;
23
- public static ConfigElement < string > Default_Output_Path ;
24
- public static ConfigElement < bool > Log_Unity_Debug ;
25
- public static ConfigElement < bool > Hide_On_Startup ;
26
-
27
- public static ConfigElement < string > Last_Window_Anchors ;
28
- public static ConfigElement < string > Last_Window_Position ;
29
- public static ConfigElement < int > Last_Active_Tab ;
30
- public static ConfigElement < bool > Last_DebugConsole_State ;
31
- public static ConfigElement < bool > Last_SceneExplorer_State ;
20
+ public static ConfigElement < KeyCode > Main_Menu_Toggle ;
21
+ public static ConfigElement < bool > Force_Unlock_Mouse ;
22
+ public static ConfigElement < MenuPages > Default_Tab ;
23
+ public static ConfigElement < int > Default_Page_Limit ;
24
+ public static ConfigElement < string > Default_Output_Path ;
25
+ public static ConfigElement < bool > Log_Unity_Debug ;
26
+ public static ConfigElement < bool > Hide_On_Startup ;
27
+
28
+ public static ConfigElement < string > Last_Window_Anchors ;
29
+ public static ConfigElement < string > Last_Window_Position ;
30
+ public static ConfigElement < bool > Last_DebugConsole_State ;
31
+ public static ConfigElement < bool > Last_SceneExplorer_State ;
32
32
33
33
internal static readonly Dictionary < string , IConfigElement > ConfigElements = new Dictionary < string , IConfigElement > ( ) ;
34
34
@@ -44,7 +44,6 @@ public static void Init(ConfigHandler configHandler)
44
44
SceneExplorer . OnToggleShow += SceneExplorer_OnToggleShow ;
45
45
PanelDragger . OnFinishResize += PanelDragger_OnFinishResize ;
46
46
PanelDragger . OnFinishDrag += PanelDragger_OnFinishDrag ;
47
- MainMenu . OnActiveTabChanged += MainMenu_OnActiveTabChanged ;
48
47
DebugConsole . OnToggleShow += DebugConsole_OnToggleShow ;
49
48
50
49
InitConsoleCallback ( ) ;
@@ -66,6 +65,10 @@ private static void CreateConfigElements()
66
65
"Should UnityExplorer be hidden on startup?" ,
67
66
false ) ;
68
67
68
+ Default_Tab = new ConfigElement < MenuPages > ( "Default Tab" ,
69
+ "The default menu page when starting the game." ,
70
+ MenuPages . Home ) ;
71
+
69
72
Log_Unity_Debug = new ConfigElement < bool > ( "Log Unity Debug" ,
70
73
"Should UnityEngine.Debug.Log messages be printed to UnityExplorer's log?" ,
71
74
false ) ;
@@ -94,11 +97,6 @@ private static void CreateConfigElements()
94
97
DEFAULT_WINDOW_POSITION ,
95
98
true ) ;
96
99
97
- Last_Active_Tab = new ConfigElement < int > ( "Last_Active_Tab" ,
98
- "For internal use, the last active tab index." ,
99
- 0 ,
100
- true ) ;
101
-
102
100
Last_DebugConsole_State = new ConfigElement < bool > ( "Last_DebugConsole_State" ,
103
101
"For internal use, the collapsed state of the Debug Console." ,
104
102
true ,
@@ -115,18 +113,14 @@ private static void CreateConfigElements()
115
113
private static void PanelDragger_OnFinishResize ( RectTransform rect )
116
114
{
117
115
Last_Window_Anchors . Value = rect . RectAnchorsToString ( ) ;
116
+ PanelDragger_OnFinishDrag ( rect ) ;
118
117
}
119
118
120
119
private static void PanelDragger_OnFinishDrag ( RectTransform rect )
121
120
{
122
121
Last_Window_Position . Value = rect . RectPositionToString ( ) ;
123
122
}
124
123
125
- private static void MainMenu_OnActiveTabChanged ( int page )
126
- {
127
- Last_Active_Tab . Value = page ;
128
- }
129
-
130
124
private static void DebugConsole_OnToggleShow ( bool showing )
131
125
{
132
126
Last_DebugConsole_State . Value = showing ;
0 commit comments