Exemplo n.º 1
0
        //if there is a keydown event on fight button
        private void FightButton_KeyDown(object sender, KeyEventArgs e)
        {
            //if the key pressed is m
            if (e.KeyCode == Keys.M)
            {
                //go back to character selection start and hide the fight button
                Form1.P1Character = "unselected";
                Form1.P2Character = "unselected";
                FightButton.Hide();
                HitboxSelect.Focus();

                //reset the previews to be empty
                P1CharNameLabel.ResetText();
                P2CharNameLabel.ResetText();
                P1PreviewBox.Image = null;
                P2PreviewBox.Image = null;

                P1SelectionLabel.Hide();
                P2SelectionLabel.Hide();

                //reload the screen
                Refresh();
            }
        }
Exemplo n.º 2
0
 private void characterSelectScreen_Load(object sender, EventArgs e)
 {
     HitboxSelect.Focus();
 }