Exemplo n.º 1
0
        public void SaveConfig()
        {
            if (config != null)
            {
                if (console != null)
                {
                    config.consoleRect    = console.rect;
                    config.consoleVisible = console.visible;
                }

                config.watchesRect    = watches.rect;
                config.watchesVisible = watches.visible;

                config.sceneExplorerRect    = sceneExplorer.rect;
                config.sceneExplorerVisible = sceneExplorer.visible;

                Configuration.Serialize(configPath, config);
            }
        }
Exemplo n.º 2
0
        public void SaveConfig()
        {
            if (config != null)
            {
                config.logExceptionsToConsole = logExceptionsToConsole;
                config.extendGamePanels       = extendGamePanels;
                config.useModToolsConsole     = useModToolsConsole;

                if (console != null)
                {
                    config.consoleRect    = console.rect;
                    config.consoleVisible = console.visible;
                }

                config.watchesRect    = watches.rect;
                config.watchesVisible = watches.visible;

                config.sceneExplorerRect    = sceneExplorer.rect;
                config.sceneExplorerVisible = sceneExplorer.visible;

                Configuration.Serialize(configPath, config);
            }
        }