Beispiel #1
0
        //if keycode character is selected
        private void KeycodeSelect_Click(object sender, EventArgs e)
        {
            //set player who clicked to keycode character
            if (Form1.P1Character == "unselected")
            {
                Form1.P1Character         = "Keycode";
                P1SelectionLabel.Visible  = true;
                P1SelectionLabel.Location = new Point(437, 154);
                P1PreviewBox.Image        = Properties.Resources.Keycode_passive;
                P1CharNameLabel.Text      = "Keycode";
                Refresh();
            }
            else if (Form1.P2Character == "unselected")
            {
                Form1.P2Character         = "Keycode";
                P2SelectionLabel.Visible  = true;
                P2SelectionLabel.Location = new Point(437, 191);
                P2PreviewBox.Image        = Properties.Resources.P2Keycode_passive;
                P2CharNameLabel.Text      = "Keycode";
                Refresh();

                //once player two has selected a character show the fight button
                FightButton.Show();
                FightButton.Focus();
                FightButton.BringToFront();
            }
        }
Beispiel #2
0
        private void booleanSelectButton_Click(object sender, EventArgs e)
        {
            //set the player who clicked to void character
            if (Form1.P1Character == "unselected")
            {
                Form1.P1Character         = "Boolean";
                P1SelectionLabel.Visible  = true;
                P1SelectionLabel.Location = new Point(437, 274);
                P1PreviewBox.Image        = Properties.Resources.Boolean_Passive;
                P1CharNameLabel.Text      = "Boolean";
                Refresh();
            }
            else if (Form1.P2Character == "unselected")
            {
                Form1.P2Character         = "Boolean";
                P2SelectionLabel.Visible  = true;
                P2SelectionLabel.Location = new Point(437, 310);
                P2PreviewBox.Image        = Properties.Resources.Boolean_Passive__2_;
                P2CharNameLabel.Text      = "Boolean";
                Refresh();

                //once player two has selected a character show the fight button
                FightButton.Show();
                FightButton.Focus();
                FightButton.BringToFront();
            }
        }