Пример #1
0
 /// <summary>
 /// Resets the battle history log.
 /// </summary>
 public void ResetPlayers()
 {
     GameLogger.MainObj().DisplayAll(false);
     this.logFile      = MainForm.GetFullPath("logs\\log-" + DateTime.Now.ToString("MM-dd_HH-mm-ss") + ".txt");
     this.logText.Text = "";
     GameLogger.MainObj().ResetCharData();
     this.appendLog("The battle history log has been reset.");
     this.appendLog("");
     MugenWindow.MainObj().ResetNumOfGames();
 }
Пример #2
0
 private void displayStripMenuItem_Click(object sender, EventArgs e)
 {
     if (this.logContextMenuStrip.Cursor == Cursors.Help)
     {
         this.logContextMenuStrip.Show();
         this.toolTip1.Hide((IWin32Window)this);
         this.toolTip1.IsBalloon = false;
         this.toolTip1.IsBalloon = true;
         this.toolTip1.SetToolTip((Control)this.logContextMenuStrip, " ");
         this.toolTip1.Show("Displays the current standings from the battle history.", (IWin32Window)this.logContextMenuStrip, this.copyStripMenuItem.Width / 2, this.copyStripMenuItem.Height * 6 / 2);
     }
     else
     {
         GameLogger.MainObj().DisplayAll(true);
     }
 }
Пример #3
0
 private void saveResultStripMenuItem_Click(object sender, EventArgs e)
 {
     if (this.logContextMenuStrip.Cursor == Cursors.Help)
     {
         this.logContextMenuStrip.Show();
         this.toolTip1.Hide((IWin32Window)this);
         this.toolTip1.IsBalloon = false;
         this.toolTip1.IsBalloon = true;
         this.toolTip1.SetToolTip((Control)this.logContextMenuStrip, " ");
         this.toolTip1.Show("Saves the battle history log to a file", (IWin32Window)this.logContextMenuStrip, this.copyStripMenuItem.Width / 2, this.copyStripMenuItem.Height * 8 / 2);
     }
     else
     {
         this.saveFileDialog1.FileName         = "Battle log_" + DateTime.Now.ToString("MM-dd_HH-mm-ss") + ".txt";
         this.saveFileDialog1.InitialDirectory = Environment.SpecialFolder.DesktopDirectory.ToString();
         if (this.saveFileDialog1.ShowDialog() != DialogResult.OK)
         {
             return;
         }
         GameLogger.MainObj().SaveAll(this.saveFileDialog1.FileName);
     }
 }