Exemplo n.º 1
0
        private void ApplyCompilePreset(CompilePreset preset = null)
        {
            if (preset == null)
            {
                preset = m_LastPreset;
            }

            if (m_KnownPaths.MapSourceFilePath.Length < 1)
            {
                preset = null;
            }

            if (preset == null)
            {
                csgCmdLine.Text = "";
                bspCmdLine.Text = "";
                visCmdLine.Text = "";
                radCmdLine.Text = "";

                m_LastPreset       = null;
                btnCompile.Enabled = false;
                return;
            }

            csgCmdLine.Text = CompilePreset.GetCommandString(preset.CSGArgs, m_KnownPaths);
            bspCmdLine.Text = CompilePreset.GetCommandString(preset.BSPArgs, m_KnownPaths);
            visCmdLine.Text = CompilePreset.GetCommandString(preset.VISArgs, m_KnownPaths);
            radCmdLine.Text = CompilePreset.GetCommandString(preset.RADArgs, m_KnownPaths);

            m_LastPreset = preset;
            UpdateCompileButtonEnabledState();
        }
Exemplo n.º 2
0
        private void CreateDefaultCompilePreset()
        {
            m_DefaultPreset = new CompilePreset();

            m_DefaultPreset.CSGArgs.Add(new StringCompileToolArgument("-texturedir"));
            m_DefaultPreset.CSGArgs.Add(new KnownPathCompileToolArgument(KnownPath.GameTexturesDirectory));
            m_DefaultPreset.CSGArgs.Add(new KnownPathCompileToolArgument(KnownPath.MapSourceFile));

            m_DefaultPreset.BSPArgs.Add(new KnownPathCompileToolArgument(KnownPath.MapIntermediateFile));

            m_DefaultPreset.VISArgs.Add(new KnownPathCompileToolArgument(KnownPath.MapIntermediateFile));

            m_DefaultPreset.RADArgs.Add(new StringCompileToolArgument("-texturedir"));
            m_DefaultPreset.RADArgs.Add(new KnownPathCompileToolArgument(KnownPath.GameTexturesDirectory));
            m_DefaultPreset.RADArgs.Add(new KnownPathCompileToolArgument(KnownPath.MapIntermediateFile));
        }
Exemplo n.º 3
0
        private void CreateFinalCompilePreset()
        {
            m_FinalPreset = new CompilePreset();

            m_FinalPreset.CSGArgs.Add(new StringCompileToolArgument("-texturedir"));
            m_FinalPreset.CSGArgs.Add(new KnownPathCompileToolArgument(KnownPath.GameTexturesDirectory));
            m_FinalPreset.CSGArgs.Add(new KnownPathCompileToolArgument(KnownPath.MapSourceFile));

            m_FinalPreset.BSPArgs.Add(new KnownPathCompileToolArgument(KnownPath.MapIntermediateFile));

            m_FinalPreset.VISArgs.Add(new StringCompileToolArgument("-full"));
            m_FinalPreset.VISArgs.Add(new KnownPathCompileToolArgument(KnownPath.MapIntermediateFile));

            m_FinalPreset.RADArgs.Add(new StringCompileToolArgument("-extra"));
            m_FinalPreset.RADArgs.Add(new StringCompileToolArgument("-bounce"));
            m_FinalPreset.RADArgs.Add(new StringCompileToolArgument("16"));
            m_FinalPreset.RADArgs.Add(new StringCompileToolArgument("-texturedir"));
            m_FinalPreset.RADArgs.Add(new KnownPathCompileToolArgument(KnownPath.GameTexturesDirectory));
            m_FinalPreset.RADArgs.Add(new KnownPathCompileToolArgument(KnownPath.MapIntermediateFile));
        }