示例#1
0
        static void Main(string[] args)
        {
            FormRunner Form = new FormRunner();

            if (AllocConsole())
            {
                while (true)
                {
                    Console.Out.WriteLine("Type FOV, FPS, RES.");
                    string UserInput = Console.In.ReadLine();

                    switch (UserInput.ToLower())
                    {
                    case "fov":
                        Form.Run("fov");
                        break;

                    case "fps":
                        Form.Run("fps");
                        break;

                    case "res":
                        Form.Run("res");

                        /*
                         * Setting resolution is fine but setting aspect-ratio is not
                         * (it uses 1.777777791[16:9] only so setting it to anything else I.E. 1.6[16:10] f***s it up)
                         */
                        break;

                    case "map":
                        Form.Run("map");
                        break;

                    case "exit":
                        goto Exit;
                    }
                }
Exit:
                FreeConsole();
            }
        }