Example #1
0
 private void btn_create_Click(object sender, EventArgs e)
 {
     ev = new EventData();
     switch (cb_events.SelectedIndex)
     {
         case 1:
             ev.text = String.Format("All players make a {0} test. Count up the number of dice that meet or excede {1}. If it is higher than {2}," +
                 " then it is a success, otherwise a failure.\n\nTarget: {1}\nSuccesses Needed: {2}", tb_skill.Text, num_target.Value, num_successes.Value);
             ActionData a = new ActionData();
             a.event_data = new EventData();
             a.text = "Success";
             ev.actions.Add(a);
             a = new ActionData();
             a.event_data = new EventData();
             a.text = "Failure";
             ev.actions.Add(a);
             break;
         default:
             break;
     }
     this.Close();
 }
Example #2
0
 public NewAction(ActionData ea)
 {
     InitializeComponent();
     action_data = ea;
     SetData(ea);
 }
Example #3
0
 public void SetData(ActionData ea)
 {
     tb_atext.Text = ea.text;
     btn_edit_event.Text = String.Format("Edit {0}", ea.event_data.editor_name);
 }
Example #4
0
 public NewAction()
 {
     InitializeComponent();
     action_data = new ActionData();
 }