Esempio n. 1
0
        private void btnDone_Click(object sender, EventArgs e)
        {
            // load data into actor

            cmd = Game.ExitCommand.Done;
            this.Close();
        }
Esempio n. 2
0
        private void btn_Done_Click(object sender, EventArgs e)
        {
            if (m_currentPointsLeft > 0)
            {
                DialogResult dr = MessageBox.Show("You have points left to spend, are you sure you are done?", "", MessageBoxButtons.YesNo);
                if (dr != DialogResult.Yes)
                {
                    return;
                }
            }

            RPGCalc calc = new RPGCalc();

            ThisActor.HPBaseMax = calc.GetBaseHP(ThisActor);
            ThisActor.MPBaseMax = calc.GetBaseMP(ThisActor);

            this.ThisActor.ResetStats();

            cmd = Game.ExitCommand.Done;
            this.Close();
        }
Esempio n. 3
0
        private void btn_Done_Click(object sender, EventArgs e)
        {
            // set values to new character

            // check name
            if (tbName.Text.Length < 1)
            {
                MessageBox.Show("Please type in your character's name.");
                return;
            }
            else
            {
                ThisActor.Name = tbName.Text;
            }

            if (cbGender.SelectedText == null)
            {
                MessageBox.Show("Please select your character's gender.");
                return;
            }
            else
            {
                ThisActor.GenderAsString = cbGender.SelectedText;
            }

            if (cbAlignment.SelectedText == null)
            {
                MessageBox.Show("Please select your character's alignment.");
                return;
            }
            else
            {
                ThisActor.SetAlignment(
                    Int32.Parse(((CBItem)(cbAlignment.SelectedItem)).ID));
            }
            cmd = Game.ExitCommand.Done;
            this.Close();
        }
Esempio n. 4
0
 private void btnCancel_Click(object sender, EventArgs e)
 {
     cmd = Game.ExitCommand.Cancel;
     this.Close();
 }
Esempio n. 5
0
 private void btnDone_Click(object sender, EventArgs e)
 {
     cmd = Game.ExitCommand.Done;
     this.Close();
 }
Esempio n. 6
0
 private void btnOptions_Click(object sender, EventArgs e)
 {
     cmd = Game.ExitCommand.Options;
     this.Close();
 }
Esempio n. 7
0
 private void btnDone_Click(object sender, EventArgs e)
 {
     MessageBox.Show("Settings saved.");
     cmd = Game.ExitCommand.Done;
     this.Close();
 }
Esempio n. 8
0
 private void btnUsePremadeCharacter_Click(object sender, EventArgs e)
 {
     cmd = Game.ExitCommand.UsePremadeCharacter;
     this.Close();
 }
Esempio n. 9
0
 private void btnNewCharacter_Click(object sender, EventArgs e)
 {
     cmd = Game.ExitCommand.CreateCharacter;
     this.Close();
 }