public int SetCurrentProfile(int new_profile_no)
        {
            int currentProfileNo = current_profile_no;

            current_profile_no = new_profile_no;
            MugenWindow.MainObj().ResizeToProfile(this.GetCurrentProfile());
            return(currentProfileNo);
        }
示例#2
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();
 }
示例#3
0
 private void selectAllStripMenuItem_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("Selects all the text in the battle history window", (IWin32Window)this.logContextMenuStrip, this.selectAllStripMenuItem.Width / 2, this.selectAllStripMenuItem.Height / 2);
     }
     else
     {
         this.logText.SelectAll();
         MugenWindow.MainObj().Activate();
     }
 }
示例#4
0
 private void copyStripMenuItem_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("Copies the selected text to the clipboard.", (IWin32Window)this.logContextMenuStrip, this.copyStripMenuItem.Width / 2, this.copyStripMenuItem.Height * 3 / 2);
     }
     else
     {
         if (this.logText.SelectedText != null && this.logText.SelectedText != "")
         {
             Clipboard.SetText(this.logText.SelectedText);
         }
         MugenWindow.MainObj().Activate();
     }
 }
示例#5
0
 private void resetStripMenuItem_Click(object sender, EventArgs e)
 {
     if (this.logContextMenuStrip.Cursor == Cursors.Help)
     {
         this.logContextMenuStrip.Show();
         string text = "Resets the current battle history." + Environment.NewLine + "(A new dialog to confirm the selection will appear.)" + Environment.NewLine;
         this.toolTip1.Hide((IWin32Window)this);
         this.toolTip1.IsBalloon = false;
         this.toolTip1.IsBalloon = true;
         this.toolTip1.SetToolTip((Control)this.logContextMenuStrip, " ");
         this.toolTip1.Show(text, (IWin32Window)this.logContextMenuStrip, this.copyStripMenuItem.Width / 2, this.copyStripMenuItem.Height * 12 / 2);
     }
     else
     {
         if (MessageBox.Show("Are you sure you wish to reset the battle history log?", "Swiss Army Knife", MessageBoxButtons.OKCancel) == DialogResult.OK)
         {
             this.ResetPlayers();
         }
         MugenWindow.MainObj().Activate();
     }
 }