예제 #1
0
        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();
        }
예제 #2
0
        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();
            }
        }