Exemple #1
0
        public MenuBattleCHR(Game g)
            : base(g)
        {
            Name = "MenuBattleCHR";
            Location = new Point(640 - 128, 480 - 128);
            BGTextureBox.Texture.Name = "bg_64x64";
            BGTextureBox.Size = new System.Drawing.Size(128, 128);

            BB1 = new ButtonBox(g);
            BB1.Location = new Point(20, 16);
            BB1.WaitTextBox.Text = "攻击";
            BB1.SameAsWait();
            BB1.OnButtonUp += new ButtonBoxEvent(BB1_OnButtonUp);

            BB2 = new ButtonBox(g);
            BB2.Location = new Point(20, 32);
            BB2.WaitTextBox.Text = "道具";
            BB2.SameAsWait();
            BB2.OnButtonUp += new ButtonBoxEvent(BB2_OnButtonUp);

            BB3 = new ButtonBox(g);
            BB3.Location = new Point(20, 48);
            BB3.WaitTextBox.Text = "装备";
            BB3.SameAsWait();
            BB3.OnButtonUp += new ButtonBoxEvent(BB3_OnButtonUp);

            BB4 = new ButtonBox(g);
            BB4.Location = new Point(20, 64);
            BB4.WaitTextBox.Text = "乘降";
            BB4.SameAsWait();
            BB4.OnButtonUp += new ButtonBoxEvent(BB4_OnButtonUp);

            BB5 = new ButtonBox(g);
            BB5.Location = new Point(20, 80);
            BB5.WaitTextBox.Text = "逃跑";
            BB5.SameAsWait();
            BB5.OnButtonUp += new ButtonBoxEvent(BB5_OnButtonUp);

            ControlBoxes.Add(BB1);
            ControlBoxes.Add(BB2);
            ControlBoxes.Add(BB3);
            ControlBoxes.Add(BB4);
            ControlBoxes.Add(BB5);
        }