Add Sms Vdp Viewer to toolbox

This commit is contained in:
adelikat 2014-04-13 19:51:38 +00:00
parent d3b84c6c5c
commit 66d64f816c
2 changed files with 30 additions and 10 deletions

View File

@ -47,10 +47,11 @@
this.GGGameGenieToolbarItem = new System.Windows.Forms.ToolStripButton();
this.GbGpuViewerToolBarItem = new System.Windows.Forms.ToolStripButton();
this.GBGameGenieToolbarItem = new System.Windows.Forms.ToolStripButton();
this.PceCdlToolbarItem = new System.Windows.Forms.ToolStripButton();
this.PceBgViewerToolbarItem = new System.Windows.Forms.ToolStripButton();
this.GbaGpuViewerToolBarItem = new System.Windows.Forms.ToolStripButton();
this.GenesisGameGenieToolBarItem = new System.Windows.Forms.ToolStripButton();
this.PceCdlToolbarItem = new System.Windows.Forms.ToolStripButton();
this.SmsVdpToolbarItem = new System.Windows.Forms.ToolStripButton();
this.ToolBoxStrip.SuspendLayout();
this.SuspendLayout();
//
@ -85,7 +86,8 @@
this.PceCdlToolbarItem,
this.PceBgViewerToolbarItem,
this.GbaGpuViewerToolBarItem,
this.GenesisGameGenieToolBarItem});
this.GenesisGameGenieToolBarItem,
this.SmsVdpToolbarItem});
this.ToolBoxStrip.LayoutStyle = System.Windows.Forms.ToolStripLayoutStyle.Flow;
this.ToolBoxStrip.Location = new System.Drawing.Point(2, 2);
this.ToolBoxStrip.Name = "ToolBoxStrip";
@ -257,6 +259,16 @@
this.GBGameGenieToolbarItem.ToolTipText = "Gameboy Game Genie Encoder/Decoder";
this.GBGameGenieToolbarItem.Click += new System.EventHandler(this.GBGameGenieToolbarItem_Click);
//
// PceCdlToolbarItem
//
this.PceCdlToolbarItem.Image = global::BizHawk.Client.EmuHawk.Properties.Resources.pcejin1;
this.PceCdlToolbarItem.ImageTransparentColor = System.Drawing.Color.Magenta;
this.PceCdlToolbarItem.Name = "PceCdlToolbarItem";
this.PceCdlToolbarItem.Size = new System.Drawing.Size(45, 20);
this.PceCdlToolbarItem.Text = "Cdl";
this.PceCdlToolbarItem.ToolTipText = "PC Engine Code Data Logger";
this.PceCdlToolbarItem.Click += new System.EventHandler(this.PceCdlToolbarItem_Click);
//
// PceBgViewerToolbarItem
//
this.PceBgViewerToolbarItem.Image = global::BizHawk.Client.EmuHawk.Properties.Resources.pcejin1;
@ -287,15 +299,14 @@
this.GenesisGameGenieToolBarItem.ToolTipText = "Genesis Game Genie Encoder/Decoder";
this.GenesisGameGenieToolBarItem.Click += new System.EventHandler(this.GenesisGameGenieToolBarItem_Click);
//
// PceCdlToolbarItem
// SmsVdpToolbarItem
//
this.PceCdlToolbarItem.Image = global::BizHawk.Client.EmuHawk.Properties.Resources.pcejin1;
this.PceCdlToolbarItem.ImageTransparentColor = System.Drawing.Color.Magenta;
this.PceCdlToolbarItem.Name = "PceCdlToolbarItem";
this.PceCdlToolbarItem.Size = new System.Drawing.Size(45, 20);
this.PceCdlToolbarItem.Text = "Cdl";
this.PceCdlToolbarItem.ToolTipText = "PC Engine Code Data Logger";
this.PceCdlToolbarItem.Click += new System.EventHandler(this.PceCdlToolbarItem_Click);
this.SmsVdpToolbarItem.Image = global::BizHawk.Client.EmuHawk.Properties.Resources.sms_icon;
this.SmsVdpToolbarItem.ImageTransparentColor = System.Drawing.Color.Magenta;
this.SmsVdpToolbarItem.Name = "SmsVdpToolbarItem";
this.SmsVdpToolbarItem.Size = new System.Drawing.Size(49, 20);
this.SmsVdpToolbarItem.Text = "VDP";
this.SmsVdpToolbarItem.Click += new System.EventHandler(this.SmsVdpToolbarItem_Click);
//
// ToolBox
//
@ -339,6 +350,7 @@
private System.Windows.Forms.ToolStripButton GbaGpuViewerToolBarItem;
private System.Windows.Forms.ToolStripButton GenesisGameGenieToolBarItem;
private System.Windows.Forms.ToolStripButton PceCdlToolbarItem;
private System.Windows.Forms.ToolStripButton SmsVdpToolbarItem;
}
}

View File

@ -10,6 +10,7 @@ using BizHawk.Emulation.Cores.Nintendo.GBA;
using BizHawk.Emulation.Cores.Nintendo.NES;
using BizHawk.Emulation.Cores.Nintendo.SNES;
using BizHawk.Emulation.Cores.PCEngine;
using BizHawk.Emulation.Cores.Sega.MasterSystem;
namespace BizHawk.Client.EmuHawk
{
@ -73,6 +74,8 @@ namespace BizHawk.Client.EmuHawk
GenesisGameGenieToolBarItem.Visible = Global.Emulator.SystemId == "GEN" && VersionInfo.INTERIM;
SmsVdpToolbarItem.Visible = Global.Emulator is SMS;
foreach (var button in ToolBoxItems)
{
if (button.Visible)
@ -220,6 +223,11 @@ namespace BizHawk.Client.EmuHawk
GlobalWin.Tools.Load<GenGameGenie>();
}
private void SmsVdpToolbarItem_Click(object sender, EventArgs e)
{
GlobalWin.Tools.Load<SmsVDPViewer>();
}
#endregion
}
}