Add GBA Gpu Viewer to toolbox, and add snazzy gba icon

This commit is contained in:
adelikat 2013-12-22 15:39:11 +00:00
parent edd9e65e9e
commit 5fff62d52b
9 changed files with 6088 additions and 161 deletions

View File

@ -1288,6 +1288,7 @@
<Content Include="config\ControllerImages\SaturnController.jpg" /> <Content Include="config\ControllerImages\SaturnController.jpg" />
<None Include="images\addWatch.ico" /> <None Include="images\addWatch.ico" />
<None Include="images\alt_about_image.gif" /> <None Include="images\alt_about_image.gif" />
<None Include="images\gba-icon.png" />
<Content Include="images\logo.ico" /> <Content Include="images\logo.ico" />
<None Include="images\Paste.png" /> <None Include="images\Paste.png" />
<None Include="images\reboot.png" /> <None Include="images\reboot.png" />

View File

@ -470,6 +470,16 @@ namespace BizHawk.Client.EmuHawk.Properties {
} }
} }
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
internal static System.Drawing.Bitmap gba_icon {
get {
object obj = ResourceManager.GetObject("gba_icon", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary> /// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap. /// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary> /// </summary>

View File

@ -885,4 +885,7 @@
<data name="pcejin1" type="System.Resources.ResXFileRef, System.Windows.Forms"> <data name="pcejin1" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\images\pcejin1.bmp;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> <value>..\images\pcejin1.bmp;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data> </data>
<data name="gba_icon" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\images\gba-icon.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
</root> </root>

Binary file not shown.

After

Width:  |  Height:  |  Size: 345 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

View File

@ -28,168 +28,169 @@
/// </summary> /// </summary>
private void InitializeComponent() private void InitializeComponent()
{ {
this.components = new System.ComponentModel.Container(); this.components = new System.ComponentModel.Container();
this.listBoxWidgets = new System.Windows.Forms.ListBox(); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(GBAGPUView));
this.panel1 = new System.Windows.Forms.Panel(); this.listBoxWidgets = new System.Windows.Forms.ListBox();
this.label1 = new System.Windows.Forms.Label(); this.panel1 = new System.Windows.Forms.Panel();
this.buttonShowWidget = new System.Windows.Forms.Button(); this.label1 = new System.Windows.Forms.Label();
this.groupBox1 = new System.Windows.Forms.GroupBox(); this.buttonShowWidget = new System.Windows.Forms.Button();
this.buttonRefresh = new System.Windows.Forms.Button(); this.groupBox1 = new System.Windows.Forms.GroupBox();
this.hScrollBar1 = new System.Windows.Forms.HScrollBar(); this.buttonRefresh = new System.Windows.Forms.Button();
this.radioButtonManual = new System.Windows.Forms.RadioButton(); this.hScrollBar1 = new System.Windows.Forms.HScrollBar();
this.radioButtonScanline = new System.Windows.Forms.RadioButton(); this.radioButtonManual = new System.Windows.Forms.RadioButton();
this.radioButtonFrame = new System.Windows.Forms.RadioButton(); this.radioButtonScanline = new System.Windows.Forms.RadioButton();
this.labelClipboard = new System.Windows.Forms.Label(); this.radioButtonFrame = new System.Windows.Forms.RadioButton();
this.timerMessage = new System.Windows.Forms.Timer(this.components); this.labelClipboard = new System.Windows.Forms.Label();
this.groupBox1.SuspendLayout(); this.timerMessage = new System.Windows.Forms.Timer(this.components);
this.SuspendLayout(); this.groupBox1.SuspendLayout();
// this.SuspendLayout();
// listBoxWidgets //
// // listBoxWidgets
this.listBoxWidgets.Location = new System.Drawing.Point(12, 25); //
this.listBoxWidgets.Name = "listBoxWidgets"; this.listBoxWidgets.Location = new System.Drawing.Point(12, 25);
this.listBoxWidgets.Size = new System.Drawing.Size(137, 160); this.listBoxWidgets.Name = "listBoxWidgets";
this.listBoxWidgets.TabIndex = 0; this.listBoxWidgets.Size = new System.Drawing.Size(137, 160);
this.listBoxWidgets.DoubleClick += new System.EventHandler(this.listBoxWidgets_DoubleClick); this.listBoxWidgets.TabIndex = 0;
// this.listBoxWidgets.DoubleClick += new System.EventHandler(this.listBoxWidgets_DoubleClick);
// panel1 //
// // panel1
this.panel1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) //
this.panel1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right))); | System.Windows.Forms.AnchorStyles.Right)));
this.panel1.AutoScroll = true; this.panel1.AutoScroll = true;
this.panel1.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; this.panel1.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
this.panel1.Location = new System.Drawing.Point(155, 0); this.panel1.Location = new System.Drawing.Point(155, 0);
this.panel1.Name = "panel1"; this.panel1.Name = "panel1";
this.panel1.Size = new System.Drawing.Size(481, 405); this.panel1.Size = new System.Drawing.Size(481, 405);
this.panel1.TabIndex = 1; this.panel1.TabIndex = 1;
// //
// label1 // label1
// //
this.label1.AutoSize = true; this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(12, 9); this.label1.Location = new System.Drawing.Point(12, 9);
this.label1.Name = "label1"; this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(92, 13); this.label1.Size = new System.Drawing.Size(92, 13);
this.label1.TabIndex = 2; this.label1.TabIndex = 2;
this.label1.Text = "Available widgets:"; this.label1.Text = "Available widgets:";
// //
// buttonShowWidget // buttonShowWidget
// //
this.buttonShowWidget.Location = new System.Drawing.Point(29, 191); this.buttonShowWidget.Location = new System.Drawing.Point(29, 191);
this.buttonShowWidget.Name = "buttonShowWidget"; this.buttonShowWidget.Name = "buttonShowWidget";
this.buttonShowWidget.Size = new System.Drawing.Size(75, 23); this.buttonShowWidget.Size = new System.Drawing.Size(75, 23);
this.buttonShowWidget.TabIndex = 3; this.buttonShowWidget.TabIndex = 3;
this.buttonShowWidget.Text = "Show >>"; this.buttonShowWidget.Text = "Show >>";
this.buttonShowWidget.UseVisualStyleBackColor = true; this.buttonShowWidget.UseVisualStyleBackColor = true;
this.buttonShowWidget.Click += new System.EventHandler(this.buttonShowWidget_Click); this.buttonShowWidget.Click += new System.EventHandler(this.buttonShowWidget_Click);
// //
// groupBox1 // groupBox1
// //
this.groupBox1.Controls.Add(this.buttonRefresh); this.groupBox1.Controls.Add(this.buttonRefresh);
this.groupBox1.Controls.Add(this.hScrollBar1); this.groupBox1.Controls.Add(this.hScrollBar1);
this.groupBox1.Controls.Add(this.radioButtonManual); this.groupBox1.Controls.Add(this.radioButtonManual);
this.groupBox1.Controls.Add(this.radioButtonScanline); this.groupBox1.Controls.Add(this.radioButtonScanline);
this.groupBox1.Controls.Add(this.radioButtonFrame); this.groupBox1.Controls.Add(this.radioButtonFrame);
this.groupBox1.Location = new System.Drawing.Point(15, 220); this.groupBox1.Location = new System.Drawing.Point(15, 220);
this.groupBox1.Name = "groupBox1"; this.groupBox1.Name = "groupBox1";
this.groupBox1.Size = new System.Drawing.Size(134, 133); this.groupBox1.Size = new System.Drawing.Size(134, 133);
this.groupBox1.TabIndex = 4; this.groupBox1.TabIndex = 4;
this.groupBox1.TabStop = false; this.groupBox1.TabStop = false;
this.groupBox1.Text = "Refresh"; this.groupBox1.Text = "Refresh";
// //
// buttonRefresh // buttonRefresh
// //
this.buttonRefresh.Location = new System.Drawing.Point(6, 104); this.buttonRefresh.Location = new System.Drawing.Point(6, 104);
this.buttonRefresh.Name = "buttonRefresh"; this.buttonRefresh.Name = "buttonRefresh";
this.buttonRefresh.Size = new System.Drawing.Size(75, 23); this.buttonRefresh.Size = new System.Drawing.Size(75, 23);
this.buttonRefresh.TabIndex = 4; this.buttonRefresh.TabIndex = 4;
this.buttonRefresh.Text = "Refresh"; this.buttonRefresh.Text = "Refresh";
this.buttonRefresh.UseVisualStyleBackColor = true; this.buttonRefresh.UseVisualStyleBackColor = true;
this.buttonRefresh.Click += new System.EventHandler(this.buttonRefresh_Click); this.buttonRefresh.Click += new System.EventHandler(this.buttonRefresh_Click);
// //
// hScrollBar1 // hScrollBar1
// //
this.hScrollBar1.LargeChange = 20; this.hScrollBar1.LargeChange = 20;
this.hScrollBar1.Location = new System.Drawing.Point(3, 62); this.hScrollBar1.Location = new System.Drawing.Point(3, 62);
this.hScrollBar1.Maximum = 246; this.hScrollBar1.Maximum = 246;
this.hScrollBar1.Name = "hScrollBar1"; this.hScrollBar1.Name = "hScrollBar1";
this.hScrollBar1.Size = new System.Drawing.Size(128, 16); this.hScrollBar1.Size = new System.Drawing.Size(128, 16);
this.hScrollBar1.TabIndex = 3; this.hScrollBar1.TabIndex = 3;
this.hScrollBar1.ValueChanged += new System.EventHandler(this.hScrollBar1_ValueChanged); this.hScrollBar1.ValueChanged += new System.EventHandler(this.hScrollBar1_ValueChanged);
// //
// radioButtonManual // radioButtonManual
// //
this.radioButtonManual.AutoSize = true; this.radioButtonManual.AutoSize = true;
this.radioButtonManual.Location = new System.Drawing.Point(6, 81); this.radioButtonManual.Location = new System.Drawing.Point(6, 81);
this.radioButtonManual.Name = "radioButtonManual"; this.radioButtonManual.Name = "radioButtonManual";
this.radioButtonManual.Size = new System.Drawing.Size(60, 17); this.radioButtonManual.Size = new System.Drawing.Size(60, 17);
this.radioButtonManual.TabIndex = 2; this.radioButtonManual.TabIndex = 2;
this.radioButtonManual.TabStop = true; this.radioButtonManual.TabStop = true;
this.radioButtonManual.Text = "Manual"; this.radioButtonManual.Text = "Manual";
this.radioButtonManual.UseVisualStyleBackColor = true; this.radioButtonManual.UseVisualStyleBackColor = true;
this.radioButtonManual.CheckedChanged += new System.EventHandler(this.radioButtonManual_CheckedChanged); this.radioButtonManual.CheckedChanged += new System.EventHandler(this.radioButtonManual_CheckedChanged);
// //
// radioButtonScanline // radioButtonScanline
// //
this.radioButtonScanline.AutoSize = true; this.radioButtonScanline.AutoSize = true;
this.radioButtonScanline.Location = new System.Drawing.Point(6, 42); this.radioButtonScanline.Location = new System.Drawing.Point(6, 42);
this.radioButtonScanline.Name = "radioButtonScanline"; this.radioButtonScanline.Name = "radioButtonScanline";
this.radioButtonScanline.Size = new System.Drawing.Size(66, 17); this.radioButtonScanline.Size = new System.Drawing.Size(66, 17);
this.radioButtonScanline.TabIndex = 1; this.radioButtonScanline.TabIndex = 1;
this.radioButtonScanline.Text = "Scanline"; this.radioButtonScanline.Text = "Scanline";
this.radioButtonScanline.UseVisualStyleBackColor = true; this.radioButtonScanline.UseVisualStyleBackColor = true;
this.radioButtonScanline.CheckedChanged += new System.EventHandler(this.radioButtonScanline_CheckedChanged); this.radioButtonScanline.CheckedChanged += new System.EventHandler(this.radioButtonScanline_CheckedChanged);
// //
// radioButtonFrame // radioButtonFrame
// //
this.radioButtonFrame.AutoSize = true; this.radioButtonFrame.AutoSize = true;
this.radioButtonFrame.Location = new System.Drawing.Point(6, 19); this.radioButtonFrame.Location = new System.Drawing.Point(6, 19);
this.radioButtonFrame.Name = "radioButtonFrame"; this.radioButtonFrame.Name = "radioButtonFrame";
this.radioButtonFrame.Size = new System.Drawing.Size(54, 17); this.radioButtonFrame.Size = new System.Drawing.Size(54, 17);
this.radioButtonFrame.TabIndex = 0; this.radioButtonFrame.TabIndex = 0;
this.radioButtonFrame.Text = "Frame"; this.radioButtonFrame.Text = "Frame";
this.radioButtonFrame.UseVisualStyleBackColor = true; this.radioButtonFrame.UseVisualStyleBackColor = true;
this.radioButtonFrame.CheckedChanged += new System.EventHandler(this.radioButtonFrame_CheckedChanged); this.radioButtonFrame.CheckedChanged += new System.EventHandler(this.radioButtonFrame_CheckedChanged);
// //
// labelClipboard // labelClipboard
// //
this.labelClipboard.AutoSize = true; this.labelClipboard.AutoSize = true;
this.labelClipboard.Location = new System.Drawing.Point(9, 356); this.labelClipboard.Location = new System.Drawing.Point(9, 356);
this.labelClipboard.MaximumSize = new System.Drawing.Size(145, 0); this.labelClipboard.MaximumSize = new System.Drawing.Size(145, 0);
this.labelClipboard.Name = "labelClipboard"; this.labelClipboard.Name = "labelClipboard";
this.labelClipboard.Size = new System.Drawing.Size(117, 26); this.labelClipboard.Size = new System.Drawing.Size(117, 26);
this.labelClipboard.TabIndex = 5; this.labelClipboard.TabIndex = 5;
this.labelClipboard.Text = "CTRL + C: Copy under mouse to clipboard."; this.labelClipboard.Text = "CTRL + C: Copy under mouse to clipboard.";
// //
// timerMessage // timerMessage
// //
this.timerMessage.Interval = 5000; this.timerMessage.Interval = 5000;
this.timerMessage.Tick += new System.EventHandler(this.timerMessage_Tick); this.timerMessage.Tick += new System.EventHandler(this.timerMessage_Tick);
// //
// GBAGPUView // GBAGPUView
// //
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(636, 405); this.ClientSize = new System.Drawing.Size(636, 405);
this.Controls.Add(this.labelClipboard); this.Controls.Add(this.labelClipboard);
this.Controls.Add(this.groupBox1); this.Controls.Add(this.groupBox1);
this.Controls.Add(this.buttonShowWidget); this.Controls.Add(this.buttonShowWidget);
this.Controls.Add(this.label1); this.Controls.Add(this.label1);
this.Controls.Add(this.panel1); this.Controls.Add(this.panel1);
this.Controls.Add(this.listBoxWidgets); this.Controls.Add(this.listBoxWidgets);
this.KeyPreview = true; this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.Name = "GBAGPUView"; this.KeyPreview = true;
this.ShowIcon = false; this.Name = "GBAGPUView";
this.SizeGripStyle = System.Windows.Forms.SizeGripStyle.Show; this.SizeGripStyle = System.Windows.Forms.SizeGripStyle.Show;
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
this.Text = "GBA GPU Viewer"; this.Text = "GBA GPU Viewer";
this.FormClosed += new System.Windows.Forms.FormClosedEventHandler(this.GBAGPUView_FormClosed); this.FormClosed += new System.Windows.Forms.FormClosedEventHandler(this.GBAGPUView_FormClosed);
this.Load += new System.EventHandler(this.GBAGPUView_Load); this.Load += new System.EventHandler(this.GBAGPUView_Load);
this.KeyDown += new System.Windows.Forms.KeyEventHandler(this.GBAGPUView_KeyDown); this.KeyDown += new System.Windows.Forms.KeyEventHandler(this.GBAGPUView_KeyDown);
this.groupBox1.ResumeLayout(false); this.groupBox1.ResumeLayout(false);
this.groupBox1.PerformLayout(); this.groupBox1.PerformLayout();
this.ResumeLayout(false); this.ResumeLayout(false);
this.PerformLayout(); this.PerformLayout();
} }

File diff suppressed because it is too large Load Diff

View File

@ -48,6 +48,7 @@
this.GbGpuViewerToolBarItem = new System.Windows.Forms.ToolStripButton(); this.GbGpuViewerToolBarItem = new System.Windows.Forms.ToolStripButton();
this.GBGameGenieToolbarItem = new System.Windows.Forms.ToolStripButton(); this.GBGameGenieToolbarItem = new System.Windows.Forms.ToolStripButton();
this.PceBgViewerToolbarItem = new System.Windows.Forms.ToolStripButton(); this.PceBgViewerToolbarItem = new System.Windows.Forms.ToolStripButton();
this.GbaGpuViewerToolBarItem = new System.Windows.Forms.ToolStripButton();
this.ToolBoxStrip.SuspendLayout(); this.ToolBoxStrip.SuspendLayout();
this.SuspendLayout(); this.SuspendLayout();
// //
@ -79,7 +80,8 @@
this.GGGameGenieToolbarItem, this.GGGameGenieToolbarItem,
this.GbGpuViewerToolBarItem, this.GbGpuViewerToolBarItem,
this.GBGameGenieToolbarItem, this.GBGameGenieToolbarItem,
this.PceBgViewerToolbarItem}); this.PceBgViewerToolbarItem,
this.GbaGpuViewerToolBarItem});
this.ToolBoxStrip.LayoutStyle = System.Windows.Forms.ToolStripLayoutStyle.Flow; this.ToolBoxStrip.LayoutStyle = System.Windows.Forms.ToolStripLayoutStyle.Flow;
this.ToolBoxStrip.Location = new System.Drawing.Point(2, 2); this.ToolBoxStrip.Location = new System.Drawing.Point(2, 2);
this.ToolBoxStrip.Name = "ToolBoxStrip"; this.ToolBoxStrip.Name = "ToolBoxStrip";
@ -261,6 +263,16 @@
this.PceBgViewerToolbarItem.ToolTipText = "PC Engine Background Viewer"; this.PceBgViewerToolbarItem.ToolTipText = "PC Engine Background Viewer";
this.PceBgViewerToolbarItem.Click += new System.EventHandler(this.PceBgViewerToolbarItem_Click); this.PceBgViewerToolbarItem.Click += new System.EventHandler(this.PceBgViewerToolbarItem_Click);
// //
// GbaGpuViewerToolBarItem
//
this.GbaGpuViewerToolBarItem.Image = global::BizHawk.Client.EmuHawk.Properties.Resources.gba_icon;
this.GbaGpuViewerToolBarItem.ImageTransparentColor = System.Drawing.Color.Magenta;
this.GbaGpuViewerToolBarItem.Name = "GbaGpuViewerToolBarItem";
this.GbaGpuViewerToolBarItem.Size = new System.Drawing.Size(49, 20);
this.GbaGpuViewerToolBarItem.Text = "Gpu";
this.GbaGpuViewerToolBarItem.ToolTipText = "Gameboy Advance Gpu Viewer";
this.GbaGpuViewerToolBarItem.Click += new System.EventHandler(this.GbaGpuViewerToolBarItem_Click);
//
// ToolBox // ToolBox
// //
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
@ -300,6 +312,7 @@
private System.Windows.Forms.ToolStripButton PceBgViewerToolbarItem; private System.Windows.Forms.ToolStripButton PceBgViewerToolbarItem;
private System.Windows.Forms.ToolStripButton GBGameGenieToolbarItem; private System.Windows.Forms.ToolStripButton GBGameGenieToolbarItem;
private System.Windows.Forms.ToolStripButton GbGpuViewerToolBarItem; private System.Windows.Forms.ToolStripButton GbGpuViewerToolBarItem;
private System.Windows.Forms.ToolStripButton GbaGpuViewerToolBarItem;
} }
} }

View File

@ -8,6 +8,7 @@ using BizHawk.Client.Common;
using BizHawk.Emulation.Cores.Calculators; using BizHawk.Emulation.Cores.Calculators;
using BizHawk.Emulation.Cores.Nintendo.NES; using BizHawk.Emulation.Cores.Nintendo.NES;
using BizHawk.Emulation.Cores.Nintendo.SNES; using BizHawk.Emulation.Cores.Nintendo.SNES;
using BizHawk.Emulation.Cores.Nintendo.GBA;
using BizHawk.Emulation.Cores.PCEngine; using BizHawk.Emulation.Cores.PCEngine;
namespace BizHawk.Client.EmuHawk namespace BizHawk.Client.EmuHawk
@ -65,6 +66,8 @@ namespace BizHawk.Client.EmuHawk
GbGpuViewerToolBarItem.Visible = GbGpuViewerToolBarItem.Visible =
Global.Game.System == "GB"; Global.Game.System == "GB";
GbaGpuViewerToolBarItem.Visible = Global.Emulator is GBA;
foreach (var button in ToolBoxItems) foreach (var button in ToolBoxItems)
{ {
if (button.Visible) if (button.Visible)
@ -199,6 +202,11 @@ namespace BizHawk.Client.EmuHawk
GlobalWin.Tools.Load<PCEBGViewer>(); GlobalWin.Tools.Load<PCEBGViewer>();
} }
private void GbaGpuViewerToolBarItem_Click(object sender, EventArgs e)
{
GlobalWin.Tools.Load<GBAGPUView>();
}
#endregion #endregion
} }
} }