예제 #1
0
        private void LoadDefaults()
        {
            /* Basic settings */
            templateFile          = Program.BasePath + "/examples/template.nut";
            openLastFileOnStartup = true;
            lastFile               = Program.BasePath + "/examples/";
            lastImportedFile       = "";
            lastExportedFile       = "";
            lastImportedTexture    = "";
            lastExportedScreenshot = "";
            lastExportedOutput     = "";
            parameters             = new uint[0];
            defaultFontSize        = 13;
            fontSize               = defaultFontSize;

            searchString  = "";
            replaceString = "";
            searchMode    = StringComparison.OrdinalIgnoreCase;

            autoAcceptCompletion = true;
            autoInsertBrackets   = true;
            openCompletionOnDot  = true;

            exportRescaleMode = false;
            mapDetailLevel    = Main.BitmapDetailLevel.VeryHigh_2048x2048Pixels;

            /* Execution settings */
            actionAfterExec        = Main.ActionAfterExectution.GoTo3DOutput;
            geoGenPath             = Program.BasePath + "/bin/geogen.exe";
            geoGenWorkingDirectory = Program.BasePath + "/temp/studio_maps/temp";
            scriptTempFile         = Program.BasePath + "/studio_temp.nut";
            mainMapOutputFile      = Program.BasePath + "/main.shd";
            maxMapSize             = 6000;
            maxMapCount            = 15;

            /* Output Viewer settings */
            overlayDirectory = Program.BasePath + "/overlays";

            /* Documentation Viewer settings */
            documentationPath = Program.BasePath + "/documentation.html";

            /* 3D view */
            modelDetailLevel       = Main.ModelDetailLevel.Medium_512x512Polygons;
            textureDetailLevel     = Main.BitmapDetailLevel.VeryHigh_2048x2048Pixels;
            enableTerrainUnderZero = false;
            enable3d = true;
            defaultTextureOverlay   = 7;
            backgroundColor3d       = Main.ViewportBackground.Black;
            enableBlackCompensation = true;
            textureScalingAlgorithm = Main.TextureScalingAlgorithm.LinearInterpolation;
        }
예제 #2
0
파일: Config.cs 프로젝트: hamstah/geogen
        private void LoadDefaults() 
        { 
            /* Basic settings */
            templateFile = Program.BasePath + "/examples/template.nut";
            openLastFileOnStartup = true;
            lastFile = Program.BasePath + "/examples/";
            lastImportedFile = "";
            lastExportedFile = "";
            lastImportedTexture = "";
            lastExportedScreenshot = "";
            lastExportedOutput = "";
            parameters = new uint[0];
            defaultFontSize = 13;
            fontSize = defaultFontSize;

            searchString = "";
            replaceString = "";
            searchMode = StringComparison.OrdinalIgnoreCase;

            autoAcceptCompletion = true;
            autoInsertBrackets = true;
            openCompletionOnDot = true;

            exportRescaleMode = false;
            mapDetailLevel = Main.BitmapDetailLevel.VeryHigh_2048x2048Pixels;

            /* Execution settings */
            actionAfterExec = Main.ActionAfterExectution.GoTo3DOutput;
            geoGenPath = Program.BasePath + "/bin/geogen.exe";
            geoGenWorkingDirectory = Program.BasePath + "/temp/studio_maps/temp";
            scriptTempFile = Program.BasePath + "/studio_temp.nut";
            mainMapOutputFile = Program.BasePath + "/main.shd";
            maxMapSize = 6000;
            maxMapCount = 15;

            /* Output Viewer settings */
            overlayDirectory = Program.BasePath + "/overlays";

            /* Documentation Viewer settings */
            documentationPath = Program.BasePath + "/documentation.html";

            /* 3D view */
            modelDetailLevel = Main.ModelDetailLevel.Medium_512x512Polygons;
            textureDetailLevel = Main.BitmapDetailLevel.VeryHigh_2048x2048Pixels;
            enableTerrainUnderZero = false;
            enable3d = true;
            defaultTextureOverlay = 7;
            backgroundColor3d = Main.ViewportBackground.Black;
            enableBlackCompensation = true;
            textureScalingAlgorithm = Main.TextureScalingAlgorithm.LinearInterpolation;
        }