Add a "Stop A/V" context menu item that shows when A/V capture is in progress
This commit is contained in:
parent
27cc689176
commit
de68fd6025
|
@ -346,6 +346,7 @@
|
|||
this.ClearSRAMContextMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.ShowMenuContextMenuSeparator = new System.Windows.Forms.ToolStripSeparator();
|
||||
this.ShowMenuContextMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.StopAVContextMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.MainformMenu.SuspendLayout();
|
||||
this.MainStatusBar.SuspendLayout();
|
||||
this.MainFormContextMenu.SuspendLayout();
|
||||
|
@ -407,7 +408,7 @@
|
|||
//
|
||||
this.OpenRomMenuItem.Image = global::BizHawk.Client.EmuHawk.Properties.Resources.OpenFile;
|
||||
this.OpenRomMenuItem.Name = "OpenRomMenuItem";
|
||||
this.OpenRomMenuItem.Size = new System.Drawing.Size(140, 22);
|
||||
this.OpenRomMenuItem.Size = new System.Drawing.Size(152, 22);
|
||||
this.OpenRomMenuItem.Text = "Open ROM";
|
||||
this.OpenRomMenuItem.Click += new System.EventHandler(this.OpenRomMenuItem_Click);
|
||||
//
|
||||
|
@ -417,7 +418,7 @@
|
|||
this.toolStripSeparator3});
|
||||
this.RecentRomSubMenu.Image = global::BizHawk.Client.EmuHawk.Properties.Resources.Recent;
|
||||
this.RecentRomSubMenu.Name = "RecentRomSubMenu";
|
||||
this.RecentRomSubMenu.Size = new System.Drawing.Size(140, 22);
|
||||
this.RecentRomSubMenu.Size = new System.Drawing.Size(152, 22);
|
||||
this.RecentRomSubMenu.Text = "Recent ROM";
|
||||
this.RecentRomSubMenu.DropDownOpened += new System.EventHandler(this.RecentRomMenuItem_DropDownOpened);
|
||||
//
|
||||
|
@ -430,14 +431,14 @@
|
|||
//
|
||||
this.CloseRomMenuItem.Image = global::BizHawk.Client.EmuHawk.Properties.Resources.Close;
|
||||
this.CloseRomMenuItem.Name = "CloseRomMenuItem";
|
||||
this.CloseRomMenuItem.Size = new System.Drawing.Size(140, 22);
|
||||
this.CloseRomMenuItem.Size = new System.Drawing.Size(152, 22);
|
||||
this.CloseRomMenuItem.Text = "&Close ROM";
|
||||
this.CloseRomMenuItem.Click += new System.EventHandler(this.CloseRomMenuItem_Click);
|
||||
//
|
||||
// toolStripMenuItem1
|
||||
//
|
||||
this.toolStripMenuItem1.Name = "toolStripMenuItem1";
|
||||
this.toolStripMenuItem1.Size = new System.Drawing.Size(137, 6);
|
||||
this.toolStripMenuItem1.Size = new System.Drawing.Size(149, 6);
|
||||
//
|
||||
// SaveStateSubMenu
|
||||
//
|
||||
|
@ -455,7 +456,7 @@
|
|||
this.toolStripSeparator6,
|
||||
this.SaveNamedStateMenuItem});
|
||||
this.SaveStateSubMenu.Name = "SaveStateSubMenu";
|
||||
this.SaveStateSubMenu.Size = new System.Drawing.Size(140, 22);
|
||||
this.SaveStateSubMenu.Size = new System.Drawing.Size(152, 22);
|
||||
this.SaveStateSubMenu.Text = "Save State";
|
||||
this.SaveStateSubMenu.DropDownOpened += new System.EventHandler(this.SaveStateSubMenu_DropDownOpened);
|
||||
//
|
||||
|
@ -559,7 +560,7 @@
|
|||
this.toolStripSeparator21,
|
||||
this.AutoloadLastSlotMenuItem});
|
||||
this.LoadStateSubMenu.Name = "LoadStateSubMenu";
|
||||
this.LoadStateSubMenu.Size = new System.Drawing.Size(140, 22);
|
||||
this.LoadStateSubMenu.Size = new System.Drawing.Size(152, 22);
|
||||
this.LoadStateSubMenu.Text = "Load State";
|
||||
this.LoadStateSubMenu.DropDownOpened += new System.EventHandler(this.LoadStateSubMenu_DropDownOpened);
|
||||
//
|
||||
|
@ -676,7 +677,7 @@
|
|||
this.SaveToCurrentSlotMenuItem,
|
||||
this.LoadCurrentSlotMenuItem});
|
||||
this.SaveSlotSubMenu.Name = "SaveSlotSubMenu";
|
||||
this.SaveSlotSubMenu.Size = new System.Drawing.Size(140, 22);
|
||||
this.SaveSlotSubMenu.Size = new System.Drawing.Size(152, 22);
|
||||
this.SaveSlotSubMenu.Text = "SaveSlot";
|
||||
this.SaveSlotSubMenu.DropDownOpened += new System.EventHandler(this.SaveSlotSubMenu_DropDownOpened);
|
||||
//
|
||||
|
@ -788,7 +789,7 @@
|
|||
// toolStripMenuItem2
|
||||
//
|
||||
this.toolStripMenuItem2.Name = "toolStripMenuItem2";
|
||||
this.toolStripMenuItem2.Size = new System.Drawing.Size(137, 6);
|
||||
this.toolStripMenuItem2.Size = new System.Drawing.Size(149, 6);
|
||||
//
|
||||
// MovieSubMenu
|
||||
//
|
||||
|
@ -808,7 +809,7 @@
|
|||
this.AutomaticallyBackupMoviesMenuItem,
|
||||
this.FullMovieLoadstatesMenuItem});
|
||||
this.MovieSubMenu.Name = "MovieSubMenu";
|
||||
this.MovieSubMenu.Size = new System.Drawing.Size(140, 22);
|
||||
this.MovieSubMenu.Size = new System.Drawing.Size(152, 22);
|
||||
this.MovieSubMenu.Text = "Movie";
|
||||
this.MovieSubMenu.DropDownOpened += new System.EventHandler(this.MovieSubMenu_DropDownOpened);
|
||||
//
|
||||
|
@ -930,7 +931,7 @@
|
|||
this.toolStripSeparator19,
|
||||
this.CaptureOSDMenuItem});
|
||||
this.AVSubMenu.Name = "AVSubMenu";
|
||||
this.AVSubMenu.Size = new System.Drawing.Size(140, 22);
|
||||
this.AVSubMenu.Size = new System.Drawing.Size(152, 22);
|
||||
this.AVSubMenu.Text = "AVI/WAV";
|
||||
this.AVSubMenu.DropDownOpened += new System.EventHandler(this.AVSubMenu_DropDownOpened);
|
||||
//
|
||||
|
@ -971,7 +972,7 @@
|
|||
this.toolStripSeparator20,
|
||||
this.ScreenshotCaptureOSDMenuItem1});
|
||||
this.ScreenshotSubMenu.Name = "ScreenshotSubMenu";
|
||||
this.ScreenshotSubMenu.Size = new System.Drawing.Size(140, 22);
|
||||
this.ScreenshotSubMenu.Size = new System.Drawing.Size(152, 22);
|
||||
this.ScreenshotSubMenu.Text = "Screenshot";
|
||||
this.ScreenshotSubMenu.DropDownOpening += new System.EventHandler(this.ScreenshotSubMenu_DropDownOpening);
|
||||
//
|
||||
|
@ -1013,13 +1014,13 @@
|
|||
// toolStripSeparator4
|
||||
//
|
||||
this.toolStripSeparator4.Name = "toolStripSeparator4";
|
||||
this.toolStripSeparator4.Size = new System.Drawing.Size(137, 6);
|
||||
this.toolStripSeparator4.Size = new System.Drawing.Size(149, 6);
|
||||
//
|
||||
// ExitMenuItem
|
||||
//
|
||||
this.ExitMenuItem.Name = "ExitMenuItem";
|
||||
this.ExitMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Alt | System.Windows.Forms.Keys.F4)));
|
||||
this.ExitMenuItem.Size = new System.Drawing.Size(140, 22);
|
||||
this.ExitMenuItem.Size = new System.Drawing.Size(152, 22);
|
||||
this.ExitMenuItem.Text = "Exit";
|
||||
this.ExitMenuItem.Click += new System.EventHandler(this.ExitMenuItem_Click);
|
||||
//
|
||||
|
@ -2729,6 +2730,7 @@
|
|||
this.MainFormContextMenu.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
||||
this.OpenRomContextMenuItem,
|
||||
this.LoadLastRomContextMenuItem,
|
||||
this.StopAVContextMenuItem,
|
||||
this.ContextSeparator_AfterROM,
|
||||
this.RecordMovieContextMenuItem,
|
||||
this.PlayMovieContextMenuItem,
|
||||
|
@ -2751,7 +2753,7 @@
|
|||
this.ShowMenuContextMenuSeparator,
|
||||
this.ShowMenuContextMenuItem});
|
||||
this.MainFormContextMenu.Name = "contextMenuStrip1";
|
||||
this.MainFormContextMenu.Size = new System.Drawing.Size(217, 446);
|
||||
this.MainFormContextMenu.Size = new System.Drawing.Size(217, 490);
|
||||
this.MainFormContextMenu.Closing += new System.Windows.Forms.ToolStripDropDownClosingEventHandler(this.MainFormContextMenu_Closing);
|
||||
this.MainFormContextMenu.Opening += new System.ComponentModel.CancelEventHandler(this.MainFormContextMenu_Opening);
|
||||
//
|
||||
|
@ -3014,6 +3016,14 @@
|
|||
this.ShowMenuContextMenuItem.Text = "Show Menu";
|
||||
this.ShowMenuContextMenuItem.Click += new System.EventHandler(this.ShowMenuContextMenuItem_Click);
|
||||
//
|
||||
// StopAVContextMenuItem
|
||||
//
|
||||
this.StopAVContextMenuItem.Image = global::BizHawk.Client.EmuHawk.Properties.Resources.Stop;
|
||||
this.StopAVContextMenuItem.Name = "StopAVContextMenuItem";
|
||||
this.StopAVContextMenuItem.Size = new System.Drawing.Size(216, 22);
|
||||
this.StopAVContextMenuItem.Text = "Stop AVI/WAV";
|
||||
this.StopAVContextMenuItem.Click += new System.EventHandler(this.StopAVMenuItem_Click);
|
||||
//
|
||||
// MainForm
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 14F);
|
||||
|
@ -3371,6 +3381,7 @@
|
|||
private System.Windows.Forms.ToolStripSeparator toolStripSeparator30;
|
||||
private System.Windows.Forms.ToolStripMenuItem toolStripMenuItem6;
|
||||
private System.Windows.Forms.ToolStripMenuItem toolStripMenuItem7;
|
||||
private System.Windows.Forms.ToolStripMenuItem StopAVContextMenuItem;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -1792,7 +1792,9 @@ namespace BizHawk.Client.EmuHawk
|
|||
|
||||
LoadLastRomContextMenuItem.Visible =
|
||||
(Global.Emulator is NullEmulator);
|
||||
|
||||
|
||||
StopAVContextMenuItem.Visible = CurrAviWriter != null;
|
||||
|
||||
ContextSeparator_AfterMovie.Visible =
|
||||
ContextSeparator_AfterUndo.Visible =
|
||||
ScreenshotContextMenuItem.Visible =
|
||||
|
|
Loading…
Reference in New Issue