public void LoadConfig() { config = Configuration.Deserialize(configPath); if (config == null) { config = new Configuration(); SaveConfig(); } if (console != null) { console.rect = config.consoleRect; console.visible = config.consoleVisible; } watches.rect = config.watchesRect; watches.visible = config.watchesVisible; sceneExplorer.rect = config.sceneExplorerRect; sceneExplorer.visible = config.sceneExplorerVisible; if (sceneExplorer.visible) { sceneExplorer.Refresh(); } scriptEditor.ReloadProjectWorkspace(); }
public void LoadConfig() { config = Configuration.Deserialize(configPath); if (config == null) { config = new Configuration(); SaveConfig(); } logExceptionsToConsole = config.logExceptionsToConsole; extendGamePanels = config.extendGamePanels; useModToolsConsole = config.useModToolsConsole; if (console != null) { console.rect = config.consoleRect; console.visible = config.consoleVisible; } watches.rect = config.watchesRect; watches.visible = config.watchesVisible; sceneExplorer.rect = config.sceneExplorerRect; sceneExplorer.visible = config.sceneExplorerVisible; if (sceneExplorer.visible) { sceneExplorer.Refresh(); } }