Example #1
0
 // Use this for initialization
 void Start()
 {
     FadeImage.enabled = false;
     Mainpanel.SetActive(true);
     Panel1.SetActive(false);
     Panel2.SetActive(false);
     Panel3.SetActive(false);
     Panel4.SetActive(false);
     Panel5.SetActive(false);
     Gamepanel.SetActive(false);
     Resultpanel.SetActive(false);
     prevpanel   = Mainpanel;
     PanelNumber = 0;
     gamemode    = false;
     Timer       = false;
 }
Example #2
0
        public void OpenOption(string infoArg)
        {
            StreamWriter sw = new StreamWriter(path + "\\OptionLog.txt", false);

            sw.Write(infoArg);
            sw.Close();

            switch (infoArg)
            {
            case "t1t1":
                option.L1.Text = "低速档驾驶。。。";
                option.L2.Text = "低速档驾驶。。。";
                break;

            case "t1t2":
                option.L1.Text = "依次换挡驾驶。。。";
                option.L2.Text = "依次换挡驾驶。。。";
                break;

            case "t1t3":
                option.L1.Text = "重点难点动作驾驶。。。";
                option.L2.Text = "重点难点动作驾驶。。。";
                break;

            case "t1t4":
                option.L1.Text = "各种速度驾驶。。。";
                option.L2.Text = "各种速度驾驶。。。";
                break;

            case "t2t1":
                option.L1.Text = "坡上驾驶。。。";
                option.L2.Text = "坡上驾驶。。。";
                break;

            case "t3t1":
                option.L1.Text = "直线桩间限制路。。。";
                option.L2.Text = "直线桩间限制路。。。";
                break;

            case "t3t2":
                option.L1.Text = "下坡桩间限制路。。。";
                option.L2.Text = "下坡桩间限制路。。。";
                break;

            case "t3t3":
                option.L1.Text = "“S”型限制路。。。";
                option.L2.Text = "“S”型限制路。。。";
                break;

            case "t3t4":
                option.L1.Text = "车辙桥。。。";
                option.L2.Text = "车辙桥。。。";
                break;

            case "t3t5":
                option.L1.Text = "土岭。。。";
                option.L2.Text = "土岭。。。";
                break;

            case "t3t6":
                option.L1.Text = "弹坑。。。";
                option.L2.Text = "弹坑。。。";
                break;

            case "t3t7":
                option.L1.Text = "弯道限制路。。。";
                option.L2.Text = "弯道限制路。。。";
                break;

            case "t3t8":
                option.L1.Text = "双直角限制路。。。";
                option.L2.Text = "双直角限制路。。。";
                break;

            case "t4t1":
                option.L1.Text = "连续限制路和障碍物驾驶。。。";
                option.L2.Text = "连续限制路和障碍物驾驶。。。";
                break;

            case "t5t1":
                option.L1.Text = "道路驾驶。。。";
                option.L2.Text = "道路驾驶。。。";
                break;

            case "t6t1":
                option.L1.Text = "行军驾驶。。。";
                option.L2.Text = "行军驾驶。。。";
                break;

            default:
                option.L1.Text = "";
                option.L2.Text = "";
                break;
            }

            Gamepanel.BringToFront();
            Gamepanel.Visible = true;
            Gamepanel.Controls.Clear();
            Startbutton.Visible = true;
            option.TopLevel     = false;
            option.Dock         = DockStyle.Fill;
            Gamepanel.Controls.Add(option);
            option.Show();
        }
Example #3
0
        public void OpenOption(string infoArg)
        {
            string       path = Application.StartupPath;
            StreamWriter sw   = new StreamWriter(path + "\\OptionLog.txt", false);

            sw.Write(infoArg);
            sw.Close();

            switch (infoArg)
            {
            case "t1t1":
                option.L1.Text = "描绘信封靶操作。。。";
                option.L2.Text = "描绘信封靶成绩。。。";
                break;

            case "t1t2":
                option.L1.Text = "对不动目标射击操作。。。";
                option.L2.Text = "对不动目标射击成绩。。。";
                break;

            case "t1t3":
                option.L1.Text = "原地射击操作。。。";
                option.L2.Text = "原地射击成绩。。。";
                break;

            case "t1t4":
                option.L1.Text = "行进射击操作。。。";
                option.L2.Text = "行进射击成绩。。。";
                break;

            case "t1t5":
                option.L1.Text = "平稳跟踪操作。。。";
                option.L2.Text = "平稳跟踪成绩。。。";
                break;

            case "t2t1":
                option.L1.Text = "白天稳像工况设计操作。。。";
                option.L2.Text = "白天稳像工况设计成绩。。。";
                break;

            case "t2t2":
                option.L1.Text = "白天装表工况设计操作。。。";
                option.L2.Text = "白天装表工况设计成绩。。。";
                break;

            case "t2t3":
                option.L1.Text = "夜间稳像工况设计操作。。。";
                option.L2.Text = "夜间稳像工况设计成绩。。。";
                break;

            case "t2t4":
                option.L1.Text = "夜间装表工况设计操作。。。";
                option.L2.Text = "夜间装表工况设计成绩。。。";
                break;

            case "t2t5":
                option.L1.Text = "自动跟踪射击操作。。。";
                option.L2.Text = "自动跟踪射击成绩。。。";
                break;

            case "t2t6":
                option.L1.Text = "稳像工况应急射击操作。。。";
                option.L2.Text = "稳像工况应急射击成绩。。。";
                break;

            case "t3t1":
                option.L1.Text = "综合射击训练操作。。。";
                option.L2.Text = "综合射击训练成绩。。。";
                break;

            default:
                option.L1.Text = "";
                option.L2.Text = "";
                break;
            }

            Gamepanel.BringToFront();
            Gamepanel.Visible = true;
            Gamepanel.Controls.Clear();
            Startbutton.Visible = true;
            option.TopLevel     = false;
            option.Dock         = DockStyle.Fill;
            Gamepanel.Controls.Add(option);
            option.Show();
        }