From 92411aae7c1da05709229059d59722452282ec43 Mon Sep 17 00:00:00 2001 From: adelikat Date: Sat, 29 Sep 2012 16:25:28 +0000 Subject: [PATCH] Add SNES Graphics config to the Toolbox dialog --- .../BizHawk.MultiClient.csproj | 2 + .../Properties/Resources.Designer.cs | 14 +++++ BizHawk.MultiClient/Properties/Resources.resx | 6 +++ .../images/AtariControllerIcon.png | Bin 0 -> 735 bytes .../images/GenesisControllerIcon.png | Bin 0 -> 614 bytes .../images/SNESControllerIcon.png | Bin 0 -> 529 bytes BizHawk.MultiClient/tools/ToolBox.Designer.cs | 48 ++++++++++++------ BizHawk.MultiClient/tools/ToolBox.cs | 25 +++++++-- 8 files changed, 76 insertions(+), 19 deletions(-) create mode 100644 BizHawk.MultiClient/images/AtariControllerIcon.png create mode 100644 BizHawk.MultiClient/images/GenesisControllerIcon.png create mode 100644 BizHawk.MultiClient/images/SNESControllerIcon.png diff --git a/BizHawk.MultiClient/BizHawk.MultiClient.csproj b/BizHawk.MultiClient/BizHawk.MultiClient.csproj index f8b4d7d499..25fde931d5 100644 --- a/BizHawk.MultiClient/BizHawk.MultiClient.csproj +++ b/BizHawk.MultiClient/BizHawk.MultiClient.csproj @@ -869,9 +869,11 @@ + + diff --git a/BizHawk.MultiClient/Properties/Resources.Designer.cs b/BizHawk.MultiClient/Properties/Resources.Designer.cs index 8bd61b0e87..6b70b18bc0 100644 --- a/BizHawk.MultiClient/Properties/Resources.Designer.cs +++ b/BizHawk.MultiClient/Properties/Resources.Designer.cs @@ -298,6 +298,13 @@ namespace BizHawk.MultiClient.Properties { } } + internal static System.Drawing.Bitmap GenesisControllerIcon { + get { + object obj = ResourceManager.GetObject("GenesisControllerIcon", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + internal static System.Drawing.Bitmap GreenCheck { get { object obj = ResourceManager.GetObject("GreenCheck", resourceCulture); @@ -605,6 +612,13 @@ namespace BizHawk.MultiClient.Properties { } } + internal static System.Drawing.Bitmap SNESControllerIcon { + get { + object obj = ResourceManager.GetObject("SNESControllerIcon", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + internal static System.Drawing.Bitmap Stop { get { object obj = ResourceManager.GetObject("Stop", resourceCulture); diff --git a/BizHawk.MultiClient/Properties/Resources.resx b/BizHawk.MultiClient/Properties/Resources.resx index b33f1be9c4..d8694a45c5 100644 --- a/BizHawk.MultiClient/Properties/Resources.resx +++ b/BizHawk.MultiClient/Properties/Resources.resx @@ -828,4 +828,10 @@ ..\images\reboot.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\images\GenesisControllerIcon.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\images\SNESControllerIcon.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + \ No newline at end of file diff --git a/BizHawk.MultiClient/images/AtariControllerIcon.png b/BizHawk.MultiClient/images/AtariControllerIcon.png new file mode 100644 index 0000000000000000000000000000000000000000..2d2444e123289809c6e1e40a1cde4ad59ed47e41 GIT binary patch literal 735 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!63?wyl`GXl482bZ!LR^7d1q}m`ppi9@1OjPg zEg-3&2@=Ewn3-9am{~Zuc$Bq`Gz`qNjV$#{tqm>g49snHO{}yGE!6Z(6*UdnIk~4V zTGKpXPF`J4R#nHG>gmesXQp6}!vZtWJ(J$+G1Zdp)FTKkmw6>XFK zf+N(`)wQ*?qf_$=>U+IH<2t7;oH%!RL+`AT+SWPCH^k)CcF$N`-!n5TF{jQwpn1aV z;J8dJZ5<$J?4R8=ebHo(z@WIS)=Bd^rY`86xuk#gvi{jiduA+FR8pS4Xzh$eYdr!Z zBUADtViR2b!a@_WOB;HXRn&}3Ekffm^o`B+O)SC_G82m$3mf|ULm~>3@|D#z&M`17 zmXHZZDh>*Z3{ER+nK-9w+Cu-B^tQ?KtUN-((#vCVYm$l@Gb-BhYP)i4I)O^!3+f}Y zDuYr=%v}P@oV*Q9%!A@GGb=kvnkSUDOw`ji)YR0=2BrkCWq(II(h5YtXrG^r@&6O;pDtqcW?I}<%_?6@2wic+86oX9?_w&PRxdden#At=*T#edW_-2XU8HQts{zDDMFcU3 zpmLzWY*W+B|4u!}^T+O^OU8%@Vh>ygp65CDkL$j;ABO*2?6d&Zd59D^+E++<(%^3Z z2kEvv;ky%>i>}U|4SQve2c|hdtJy%YkZ*j?W#6`&wPygHllsR2H-q8G)5OZ!`RK(M z96S$A*P#z(z%UK)b{>kVB9l%d{b^^vT*%%9@X7)#N8^b%kxN&dmP5ukNTLgVpBEn4 z4VU0VrCLY5*@B{|1nHyO>mm2`i@Klwc!P=ZrPf9MHAJ1+anD z3WrqY8(JL&rR=W4{GpgB1?HHI14L1Tu4!<)CA1H_` z$PAdAq1lCJ-^OArHgwRrp1SJvCmquSgsJHee)F}=<`AL${_m1vTYkXxg0)i z|G=WH;H1tlKR?GFk3H(7NK0ht?)CfO?AI)w%}k-Yy&b`T0k21fBoRoGz&S&5a{*rE z5MD3qi0R*u*DEm`A4yT~nO=UjCq_4i?_q0u3#y{x!HwHcWCi&`0hVo{s}p0O9$Y(0UO3rRuI(@}ou{AChCpl{#`hHed_LesIll0lsj#QTpQ5N>Efff&3Z zgX8`IB+aLAI}=AoD!&`!0>0?>We_Tn1Q{g#*sCpiu`+(;OhfWMZN;{(QW1 zS7Rs`>aP#gH#sJ0RoR00000NkvXXu0mjfuUznI literal 0 HcmV?d00001 diff --git a/BizHawk.MultiClient/tools/ToolBox.Designer.cs b/BizHawk.MultiClient/tools/ToolBox.Designer.cs index 0a5b899530..4c47487009 100644 --- a/BizHawk.MultiClient/tools/ToolBox.Designer.cs +++ b/BizHawk.MultiClient/tools/ToolBox.Designer.cs @@ -43,6 +43,7 @@ this.NESGameGenie = new System.Windows.Forms.ToolStripButton(); this.KeypadTool = new System.Windows.Forms.ToolStripButton(); this.GameboyDebuggerTool = new System.Windows.Forms.ToolStripButton(); + this.SNESGraphicsDebuggerButton = new System.Windows.Forms.ToolStripButton(); this.toolStrip1.SuspendLayout(); this.SuspendLayout(); // @@ -63,11 +64,12 @@ this.NESNameTable, this.NESGameGenie, this.KeypadTool, - this.GameboyDebuggerTool}); + this.GameboyDebuggerTool, + this.SNESGraphicsDebuggerButton}); this.toolStrip1.LayoutStyle = System.Windows.Forms.ToolStripLayoutStyle.Table; this.toolStrip1.Location = new System.Drawing.Point(9, 11); this.toolStrip1.Name = "toolStrip1"; - this.toolStrip1.Size = new System.Drawing.Size(91, 318); + this.toolStrip1.Size = new System.Drawing.Size(100, 306); this.toolStrip1.TabIndex = 0; this.toolStrip1.TabStop = true; // @@ -76,7 +78,7 @@ this.toolStripButton1.Image = global::BizHawk.MultiClient.Properties.Resources.Freeze; this.toolStripButton1.ImageTransparentColor = System.Drawing.Color.Magenta; this.toolStripButton1.Name = "toolStripButton1"; - this.toolStripButton1.Size = new System.Drawing.Size(61, 20); + this.toolStripButton1.Size = new System.Drawing.Size(63, 20); this.toolStripButton1.Text = "Cheats"; this.toolStripButton1.Click += new System.EventHandler(this.toolStripButton1_Click); // @@ -85,7 +87,7 @@ this.toolStripButton2.Image = global::BizHawk.MultiClient.Properties.Resources.FindHS; this.toolStripButton2.ImageTransparentColor = System.Drawing.Color.Magenta; this.toolStripButton2.Name = "toolStripButton2"; - this.toolStripButton2.Size = new System.Drawing.Size(82, 20); + this.toolStripButton2.Size = new System.Drawing.Size(88, 20); this.toolStripButton2.Text = "Ram Watch"; this.toolStripButton2.Click += new System.EventHandler(this.toolStripButton2_Click); // @@ -94,7 +96,7 @@ this.toolStripButton3.Image = global::BizHawk.MultiClient.Properties.Resources.search; this.toolStripButton3.ImageTransparentColor = System.Drawing.Color.Magenta; this.toolStripButton3.Name = "toolStripButton3"; - this.toolStripButton3.Size = new System.Drawing.Size(84, 20); + this.toolStripButton3.Size = new System.Drawing.Size(89, 20); this.toolStripButton3.Text = "Ram Search"; this.toolStripButton3.Click += new System.EventHandler(this.toolStripButton3_Click); // @@ -103,7 +105,7 @@ this.toolStripButton4.Image = global::BizHawk.MultiClient.Properties.Resources.poke; this.toolStripButton4.ImageTransparentColor = System.Drawing.Color.Magenta; this.toolStripButton4.Name = "toolStripButton4"; - this.toolStripButton4.Size = new System.Drawing.Size(74, 20); + this.toolStripButton4.Size = new System.Drawing.Size(80, 20); this.toolStripButton4.Text = "Ram Poke"; this.toolStripButton4.Click += new System.EventHandler(this.toolStripButton4_Click); // @@ -112,7 +114,7 @@ this.HexEditor.Image = global::BizHawk.MultiClient.Properties.Resources.poke; this.HexEditor.ImageTransparentColor = System.Drawing.Color.Magenta; this.HexEditor.Name = "HexEditor"; - this.HexEditor.Size = new System.Drawing.Size(77, 20); + this.HexEditor.Size = new System.Drawing.Size(81, 20); this.HexEditor.Text = "Hex Editor"; this.HexEditor.Click += new System.EventHandler(this.HexEditor_Click); // @@ -121,7 +123,7 @@ this.toolStripButton5.Image = global::BizHawk.MultiClient.Properties.Resources.textdoc; this.toolStripButton5.ImageTransparentColor = System.Drawing.Color.Magenta; this.toolStripButton5.Name = "toolStripButton5"; - this.toolStripButton5.Size = new System.Drawing.Size(85, 20); + this.toolStripButton5.Size = new System.Drawing.Size(92, 20); this.toolStripButton5.Text = "Lua Console"; this.toolStripButton5.Click += new System.EventHandler(this.toolStripButton5_Click); // @@ -130,7 +132,7 @@ this.TAStudioButton.Image = global::BizHawk.MultiClient.Properties.Resources.TAStudio; this.TAStudioButton.ImageTransparentColor = System.Drawing.Color.Magenta; this.TAStudioButton.Name = "TAStudioButton"; - this.TAStudioButton.Size = new System.Drawing.Size(70, 20); + this.TAStudioButton.Size = new System.Drawing.Size(76, 20); this.TAStudioButton.Text = "TAStudio"; this.TAStudioButton.Click += new System.EventHandler(this.TAStudioButton_Click); // @@ -139,7 +141,7 @@ this.NESDebugger.Image = global::BizHawk.MultiClient.Properties.Resources.NESControllerIcon; this.NESDebugger.ImageTransparentColor = System.Drawing.Color.Magenta; this.NESDebugger.Name = "NESDebugger"; - this.NESDebugger.Size = new System.Drawing.Size(74, 20); + this.NESDebugger.Size = new System.Drawing.Size(79, 20); this.NESDebugger.Text = "Debugger"; this.NESDebugger.Click += new System.EventHandler(this.NESDebugger_Click); // @@ -148,7 +150,7 @@ this.NESPPU.Image = global::BizHawk.MultiClient.Properties.Resources.NESControllerIcon; this.NESPPU.ImageTransparentColor = System.Drawing.Color.Magenta; this.NESPPU.Name = "NESPPU"; - this.NESPPU.Size = new System.Drawing.Size(46, 20); + this.NESPPU.Size = new System.Drawing.Size(49, 20); this.NESPPU.Text = "PPU"; this.NESPPU.Click += new System.EventHandler(this.NESPPU_Click); // @@ -157,7 +159,7 @@ this.NESNameTable.Image = global::BizHawk.MultiClient.Properties.Resources.NESControllerIcon; this.NESNameTable.ImageTransparentColor = System.Drawing.Color.Magenta; this.NESNameTable.Name = "NESNameTable"; - this.NESNameTable.Size = new System.Drawing.Size(78, 20); + this.NESNameTable.Size = new System.Drawing.Size(85, 20); this.NESNameTable.Text = "Nametable"; this.NESNameTable.Click += new System.EventHandler(this.NESNameTable_Click); // @@ -166,7 +168,7 @@ this.NESGameGenie.Image = global::BizHawk.MultiClient.Properties.Resources.NESControllerIcon; this.NESGameGenie.ImageTransparentColor = System.Drawing.Color.Magenta; this.NESGameGenie.Name = "NESGameGenie"; - this.NESGameGenie.Size = new System.Drawing.Size(84, 20); + this.NESGameGenie.Size = new System.Drawing.Size(91, 20); this.NESGameGenie.Text = "Game Genie"; this.NESGameGenie.Click += new System.EventHandler(this.NESGameGenie_Click); // @@ -175,16 +177,29 @@ this.KeypadTool.Image = global::BizHawk.MultiClient.Properties.Resources.calculator; this.KeypadTool.ImageTransparentColor = System.Drawing.Color.Magenta; this.KeypadTool.Name = "KeypadTool"; - this.KeypadTool.Size = new System.Drawing.Size(63, 20); + this.KeypadTool.Size = new System.Drawing.Size(66, 20); this.KeypadTool.Text = "Keypad"; this.KeypadTool.Click += new System.EventHandler(this.KeyPadTool_Click); - + // + // GameboyDebuggerTool + // + this.GameboyDebuggerTool.Name = "GameboyDebuggerTool"; + this.GameboyDebuggerTool.Size = new System.Drawing.Size(23, 4); + // + // SNESGraphicsDebuggerButton + // + this.SNESGraphicsDebuggerButton.Image = global::BizHawk.MultiClient.Properties.Resources.SNESControllerIcon; + this.SNESGraphicsDebuggerButton.ImageTransparentColor = System.Drawing.Color.Magenta; + this.SNESGraphicsDebuggerButton.Name = "SNESGraphicsDebuggerButton"; + this.SNESGraphicsDebuggerButton.Size = new System.Drawing.Size(99, 20); + this.SNESGraphicsDebuggerButton.Text = "Gfx Debugger"; + this.SNESGraphicsDebuggerButton.Click += new System.EventHandler(this.SNESGraphicsDebuggerButton_Click); // // ToolBox // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.ClientSize = new System.Drawing.Size(122, 334); + this.ClientSize = new System.Drawing.Size(116, 321); this.Controls.Add(this.toolStrip1); this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); this.MinimumSize = new System.Drawing.Size(130, 64); @@ -214,6 +229,7 @@ private System.Windows.Forms.ToolStripButton KeypadTool; private System.Windows.Forms.ToolStripButton TAStudioButton; private System.Windows.Forms.ToolStripButton GameboyDebuggerTool; + private System.Windows.Forms.ToolStripButton SNESGraphicsDebuggerButton; } } \ No newline at end of file diff --git a/BizHawk.MultiClient/tools/ToolBox.cs b/BizHawk.MultiClient/tools/ToolBox.cs index aad847e237..ec559b8ad9 100644 --- a/BizHawk.MultiClient/tools/ToolBox.cs +++ b/BizHawk.MultiClient/tools/ToolBox.cs @@ -8,6 +8,7 @@ using System.Text; using System.Windows.Forms; using BizHawk.Emulation.Consoles.Nintendo; using BizHawk.Emulation.Consoles.Calculator; +using BizHawk.Emulation.Consoles.Nintendo.SNES; namespace BizHawk.MultiClient { @@ -56,6 +57,15 @@ namespace BizHawk.MultiClient { KeypadTool.Visible = false; } + + if (Global.Emulator is LibsnesCore) + { + SNESGraphicsDebuggerButton.Visible = true; + } + else + { + SNESGraphicsDebuggerButton.Visible = false; + } } private void toolStripButton1_Click(object sender, EventArgs e) @@ -111,14 +121,23 @@ namespace BizHawk.MultiClient private void KeyPadTool_Click(object sender, EventArgs e) { - if (!(Global.Emulator is TI83)) - return; - Global.MainForm.LoadTI83KeyPad(); + if (Global.Emulator is TI83) + { + Global.MainForm.LoadTI83KeyPad(); + } } private void TAStudioButton_Click(object sender, EventArgs e) { Global.MainForm.LoadTAStudio(); } + + private void SNESGraphicsDebuggerButton_Click(object sender, EventArgs e) + { + if (Global.Emulator is LibsnesCore) + { + Global.MainForm.LoadSNESGraphicsDebugger(); + } + } } }