Exemple #1
0
 private void OnKomiClick(object sender, EventArgs args)
 {
     if (!Ended)
     {
         var input = new FloatInput()
         {
             Value = 0.5f,
             Step  = 0.5f
         };
         var dialog = new ValueDialog <FloatInput>("Komi value: ", input);
         if (dialog.ShowDialog() == DialogResult.OK)
         {
             gamePlayer.SetKomi(Convert.ToSingle(input.Value));
         }
     }
 }