Toolbox - some code cleanup
This commit is contained in:
parent
3a1933b1a6
commit
720a19c2ad
|
@ -28,246 +28,246 @@
|
|||
/// </summary>
|
||||
private void InitializeComponent()
|
||||
{
|
||||
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(ToolBox));
|
||||
this.toolStrip1 = new ToolStripEx();
|
||||
this.toolStripButton1 = new System.Windows.Forms.ToolStripButton();
|
||||
this.toolStripButton2 = new System.Windows.Forms.ToolStripButton();
|
||||
this.toolStripButton3 = new System.Windows.Forms.ToolStripButton();
|
||||
this.HexEditor = new System.Windows.Forms.ToolStripButton();
|
||||
this.toolStripButton5 = new System.Windows.Forms.ToolStripButton();
|
||||
this.toolStripButton6 = new System.Windows.Forms.ToolStripButton();
|
||||
this.TAStudioButton = new System.Windows.Forms.ToolStripButton();
|
||||
this.NESDebugger = new System.Windows.Forms.ToolStripButton();
|
||||
this.NESPPU = new System.Windows.Forms.ToolStripButton();
|
||||
this.NESNameTable = new System.Windows.Forms.ToolStripButton();
|
||||
this.NESGameGenie = new System.Windows.Forms.ToolStripButton();
|
||||
this.KeypadTool = new System.Windows.Forms.ToolStripButton();
|
||||
this.SNESGraphicsDebuggerButton = new System.Windows.Forms.ToolStripButton();
|
||||
this.SNESGameGenie = new System.Windows.Forms.ToolStripButton();
|
||||
this.GGGameGenie = new System.Windows.Forms.ToolStripButton();
|
||||
this.GBGameGenie = new System.Windows.Forms.ToolStripButton();
|
||||
this.GameboyDebuggerTool = new System.Windows.Forms.ToolStripButton();
|
||||
this.toolStrip1.SuspendLayout();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// toolStrip1
|
||||
//
|
||||
this.toolStrip1.BackColor = System.Drawing.SystemColors.Control;
|
||||
this.toolStrip1.ClickThrough = true;
|
||||
this.toolStrip1.Dock = System.Windows.Forms.DockStyle.None;
|
||||
this.toolStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
||||
this.toolStripButton1,
|
||||
this.toolStripButton2,
|
||||
this.toolStripButton3,
|
||||
this.HexEditor,
|
||||
this.toolStripButton5,
|
||||
this.toolStripButton6,
|
||||
this.TAStudioButton,
|
||||
this.NESDebugger,
|
||||
this.NESPPU,
|
||||
this.NESNameTable,
|
||||
this.NESGameGenie,
|
||||
this.KeypadTool,
|
||||
this.SNESGraphicsDebuggerButton,
|
||||
this.SNESGameGenie,
|
||||
this.GGGameGenie,
|
||||
this.GBGameGenie,
|
||||
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(ToolBox));
|
||||
this.ToolBoxStrip = new ToolStripEx();
|
||||
this.CheatsToolBarItem = new System.Windows.Forms.ToolStripButton();
|
||||
this.RamWatchToolbarItem = new System.Windows.Forms.ToolStripButton();
|
||||
this.RamSearchToolbarItem = new System.Windows.Forms.ToolStripButton();
|
||||
this.HexEditorToolbarItem = new System.Windows.Forms.ToolStripButton();
|
||||
this.LuaConsoleToolbarItem = new System.Windows.Forms.ToolStripButton();
|
||||
this.TAStudioToolbarItem = new System.Windows.Forms.ToolStripButton();
|
||||
this.VirtualpadToolbarItem = new System.Windows.Forms.ToolStripButton();
|
||||
this.NesDebuggerToolbarItem = new System.Windows.Forms.ToolStripButton();
|
||||
this.NesPPUToolbarItem = new System.Windows.Forms.ToolStripButton();
|
||||
this.NesNameTableToolbarItem = new System.Windows.Forms.ToolStripButton();
|
||||
this.NesGameGenieToolbarItem = new System.Windows.Forms.ToolStripButton();
|
||||
this.TI83KeypadToolbarItem = new System.Windows.Forms.ToolStripButton();
|
||||
this.SNESGraphicsDebuggerToolbarItem = new System.Windows.Forms.ToolStripButton();
|
||||
this.SNESGameGenieToolbarItem = new System.Windows.Forms.ToolStripButton();
|
||||
this.GGGameGenieToolbarItem = new System.Windows.Forms.ToolStripButton();
|
||||
this.GBGameGenieToolbarItem = new System.Windows.Forms.ToolStripButton();
|
||||
this.GameboyDebuggerTool = new System.Windows.Forms.ToolStripButton();
|
||||
this.ToolBoxStrip.SuspendLayout();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// ToolBoxStrip
|
||||
//
|
||||
this.ToolBoxStrip.BackColor = System.Drawing.SystemColors.Control;
|
||||
this.ToolBoxStrip.ClickThrough = true;
|
||||
this.ToolBoxStrip.Dock = System.Windows.Forms.DockStyle.None;
|
||||
this.ToolBoxStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
||||
this.CheatsToolBarItem,
|
||||
this.RamWatchToolbarItem,
|
||||
this.RamSearchToolbarItem,
|
||||
this.HexEditorToolbarItem,
|
||||
this.LuaConsoleToolbarItem,
|
||||
this.TAStudioToolbarItem,
|
||||
this.VirtualpadToolbarItem,
|
||||
this.NesDebuggerToolbarItem,
|
||||
this.NesPPUToolbarItem,
|
||||
this.NesNameTableToolbarItem,
|
||||
this.NesGameGenieToolbarItem,
|
||||
this.TI83KeypadToolbarItem,
|
||||
this.SNESGraphicsDebuggerToolbarItem,
|
||||
this.SNESGameGenieToolbarItem,
|
||||
this.GGGameGenieToolbarItem,
|
||||
this.GBGameGenieToolbarItem,
|
||||
this.GameboyDebuggerTool});
|
||||
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(100, 375);
|
||||
this.toolStrip1.TabIndex = 0;
|
||||
this.toolStrip1.TabStop = true;
|
||||
//
|
||||
// toolStripButton1
|
||||
//
|
||||
this.toolStripButton1.Image = global::BizHawk.Client.EmuHawk.Properties.Resources.Freeze;
|
||||
this.toolStripButton1.ImageTransparentColor = System.Drawing.Color.Magenta;
|
||||
this.toolStripButton1.Name = "toolStripButton1";
|
||||
this.toolStripButton1.Size = new System.Drawing.Size(63, 20);
|
||||
this.toolStripButton1.Text = "Cheats";
|
||||
this.toolStripButton1.Click += new System.EventHandler(this.toolStripButton1_Click);
|
||||
//
|
||||
// toolStripButton2
|
||||
//
|
||||
this.toolStripButton2.Image = global::BizHawk.Client.EmuHawk.Properties.Resources.FindHS;
|
||||
this.toolStripButton2.ImageTransparentColor = System.Drawing.Color.Magenta;
|
||||
this.toolStripButton2.Name = "toolStripButton2";
|
||||
this.toolStripButton2.Size = new System.Drawing.Size(88, 20);
|
||||
this.toolStripButton2.Text = "Ram Watch";
|
||||
this.toolStripButton2.Click += new System.EventHandler(this.toolStripButton2_Click);
|
||||
//
|
||||
// toolStripButton3
|
||||
//
|
||||
this.toolStripButton3.Image = global::BizHawk.Client.EmuHawk.Properties.Resources.search;
|
||||
this.toolStripButton3.ImageTransparentColor = System.Drawing.Color.Magenta;
|
||||
this.toolStripButton3.Name = "toolStripButton3";
|
||||
this.toolStripButton3.Size = new System.Drawing.Size(89, 20);
|
||||
this.toolStripButton3.Text = "Ram Search";
|
||||
this.toolStripButton3.Click += new System.EventHandler(this.toolStripButton3_Click);
|
||||
//
|
||||
// HexEditor
|
||||
//
|
||||
this.HexEditor.Image = global::BizHawk.Client.EmuHawk.Properties.Resources.poke;
|
||||
this.HexEditor.ImageTransparentColor = System.Drawing.Color.Magenta;
|
||||
this.HexEditor.Name = "HexEditor";
|
||||
this.HexEditor.Size = new System.Drawing.Size(81, 20);
|
||||
this.HexEditor.Text = "Hex Editor";
|
||||
this.HexEditor.Click += new System.EventHandler(this.HexEditor_Click);
|
||||
//
|
||||
// toolStripButton5
|
||||
//
|
||||
this.toolStripButton5.Image = global::BizHawk.Client.EmuHawk.Properties.Resources.textdoc;
|
||||
this.toolStripButton5.ImageTransparentColor = System.Drawing.Color.Magenta;
|
||||
this.toolStripButton5.Name = "toolStripButton5";
|
||||
this.toolStripButton5.Size = new System.Drawing.Size(92, 20);
|
||||
this.toolStripButton5.Text = "Lua Console";
|
||||
this.toolStripButton5.Click += new System.EventHandler(this.toolStripButton5_Click);
|
||||
//
|
||||
// toolStripButton6
|
||||
//
|
||||
this.toolStripButton6.Image = global::BizHawk.Client.EmuHawk.Properties.Resources.TAStudio;
|
||||
this.toolStripButton6.ImageTransparentColor = System.Drawing.Color.Magenta;
|
||||
this.toolStripButton6.Name = "toolStripButton6";
|
||||
this.toolStripButton6.Size = new System.Drawing.Size(76, 20);
|
||||
this.toolStripButton6.Text = "TAStudio";
|
||||
this.toolStripButton6.Click += new System.EventHandler(this.TAStudioButton_Click);
|
||||
//
|
||||
// TAStudioButton
|
||||
//
|
||||
this.TAStudioButton.Image = global::BizHawk.Client.EmuHawk.Properties.Resources.GameController;
|
||||
this.TAStudioButton.ImageTransparentColor = System.Drawing.Color.Magenta;
|
||||
this.TAStudioButton.Name = "TAStudioButton";
|
||||
this.TAStudioButton.Size = new System.Drawing.Size(86, 20);
|
||||
this.TAStudioButton.Text = "VirtualPads";
|
||||
this.TAStudioButton.Click += new System.EventHandler(this.VirtualPadButton_Click);
|
||||
//
|
||||
// NESDebugger
|
||||
//
|
||||
this.NESDebugger.Image = global::BizHawk.Client.EmuHawk.Properties.Resources.NESControllerIcon;
|
||||
this.NESDebugger.ImageTransparentColor = System.Drawing.Color.Magenta;
|
||||
this.NESDebugger.Name = "NESDebugger";
|
||||
this.NESDebugger.Size = new System.Drawing.Size(79, 20);
|
||||
this.NESDebugger.Text = "Debugger";
|
||||
this.NESDebugger.Click += new System.EventHandler(this.NESDebugger_Click);
|
||||
//
|
||||
// NESPPU
|
||||
//
|
||||
this.NESPPU.Image = global::BizHawk.Client.EmuHawk.Properties.Resources.NESControllerIcon;
|
||||
this.NESPPU.ImageTransparentColor = System.Drawing.Color.Magenta;
|
||||
this.NESPPU.Name = "NESPPU";
|
||||
this.NESPPU.Size = new System.Drawing.Size(49, 20);
|
||||
this.NESPPU.Text = "PPU";
|
||||
this.NESPPU.Click += new System.EventHandler(this.NESPPU_Click);
|
||||
//
|
||||
// NESNameTable
|
||||
//
|
||||
this.NESNameTable.Image = global::BizHawk.Client.EmuHawk.Properties.Resources.NESControllerIcon;
|
||||
this.NESNameTable.ImageTransparentColor = System.Drawing.Color.Magenta;
|
||||
this.NESNameTable.Name = "NESNameTable";
|
||||
this.NESNameTable.Size = new System.Drawing.Size(85, 20);
|
||||
this.NESNameTable.Text = "Nametable";
|
||||
this.NESNameTable.Click += new System.EventHandler(this.NESNameTable_Click);
|
||||
//
|
||||
// NESGameGenie
|
||||
//
|
||||
this.NESGameGenie.Image = global::BizHawk.Client.EmuHawk.Properties.Resources.NESControllerIcon;
|
||||
this.NESGameGenie.ImageTransparentColor = System.Drawing.Color.Magenta;
|
||||
this.NESGameGenie.Name = "NESGameGenie";
|
||||
this.NESGameGenie.Size = new System.Drawing.Size(91, 20);
|
||||
this.NESGameGenie.Text = "Game Genie";
|
||||
this.NESGameGenie.Click += new System.EventHandler(this.NESGameGenie_Click);
|
||||
//
|
||||
// KeypadTool
|
||||
//
|
||||
this.KeypadTool.Image = global::BizHawk.Client.EmuHawk.Properties.Resources.calculator;
|
||||
this.KeypadTool.ImageTransparentColor = System.Drawing.Color.Magenta;
|
||||
this.KeypadTool.Name = "KeypadTool";
|
||||
this.KeypadTool.Size = new System.Drawing.Size(66, 20);
|
||||
this.KeypadTool.Text = "Keypad";
|
||||
this.KeypadTool.Click += new System.EventHandler(this.KeyPadTool_Click);
|
||||
//
|
||||
// SNESGraphicsDebuggerButton
|
||||
//
|
||||
this.SNESGraphicsDebuggerButton.Image = global::BizHawk.Client.EmuHawk.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);
|
||||
//
|
||||
// SNESGameGenie
|
||||
//
|
||||
this.SNESGameGenie.Image = global::BizHawk.Client.EmuHawk.Properties.Resources.SNESControllerIcon;
|
||||
this.SNESGameGenie.ImageTransparentColor = System.Drawing.Color.Magenta;
|
||||
this.SNESGameGenie.Name = "SNESGameGenie";
|
||||
this.SNESGameGenie.Size = new System.Drawing.Size(91, 20);
|
||||
this.SNESGameGenie.Text = "Game Genie";
|
||||
this.SNESGameGenie.Click += new System.EventHandler(this.SNESGameGenie_Click);
|
||||
//
|
||||
// GGGameGenie
|
||||
//
|
||||
this.GGGameGenie.Image = ((System.Drawing.Image)(resources.GetObject("GGGameGenie.Image")));
|
||||
this.GGGameGenie.ImageTransparentColor = System.Drawing.Color.Magenta;
|
||||
this.GGGameGenie.Name = "GGGameGenie";
|
||||
this.GGGameGenie.Size = new System.Drawing.Size(91, 20);
|
||||
this.GGGameGenie.Text = "Game Genie";
|
||||
this.GGGameGenie.Click += new System.EventHandler(this.GGGameGenie_Click);
|
||||
//
|
||||
// GBGameGenie
|
||||
//
|
||||
this.GBGameGenie.Image = ((System.Drawing.Image)(resources.GetObject("GBGameGenie.Image")));
|
||||
this.GBGameGenie.ImageTransparentColor = System.Drawing.Color.Magenta;
|
||||
this.GBGameGenie.Name = "GBGameGenie";
|
||||
this.GBGameGenie.Size = new System.Drawing.Size(91, 20);
|
||||
this.GBGameGenie.Text = "Game Genie";
|
||||
this.GBGameGenie.Click += new System.EventHandler(this.GBGameGenie_Click);
|
||||
//
|
||||
// GameboyDebuggerTool
|
||||
//
|
||||
this.GameboyDebuggerTool.Name = "GameboyDebuggerTool";
|
||||
this.GameboyDebuggerTool.Size = new System.Drawing.Size(23, 4);
|
||||
//
|
||||
// ToolBox
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(160, 449);
|
||||
this.Controls.Add(this.toolStrip1);
|
||||
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
|
||||
this.MinimumSize = new System.Drawing.Size(129, 62);
|
||||
this.Name = "ToolBox";
|
||||
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
|
||||
this.Text = "Tool Box";
|
||||
this.Load += new System.EventHandler(this.ToolBox_Load);
|
||||
this.toolStrip1.ResumeLayout(false);
|
||||
this.toolStrip1.PerformLayout();
|
||||
this.ResumeLayout(false);
|
||||
this.PerformLayout();
|
||||
this.ToolBoxStrip.LayoutStyle = System.Windows.Forms.ToolStripLayoutStyle.Table;
|
||||
this.ToolBoxStrip.Location = new System.Drawing.Point(9, 11);
|
||||
this.ToolBoxStrip.Name = "ToolBoxStrip";
|
||||
this.ToolBoxStrip.Size = new System.Drawing.Size(100, 394);
|
||||
this.ToolBoxStrip.TabIndex = 0;
|
||||
this.ToolBoxStrip.TabStop = true;
|
||||
//
|
||||
// CheatsToolBarItem
|
||||
//
|
||||
this.CheatsToolBarItem.Image = global::BizHawk.Client.EmuHawk.Properties.Resources.Freeze;
|
||||
this.CheatsToolBarItem.ImageTransparentColor = System.Drawing.Color.Magenta;
|
||||
this.CheatsToolBarItem.Name = "CheatsToolBarItem";
|
||||
this.CheatsToolBarItem.Size = new System.Drawing.Size(63, 20);
|
||||
this.CheatsToolBarItem.Text = "Cheats";
|
||||
this.CheatsToolBarItem.Click += new System.EventHandler(this.CheatsToolBarItem_Click);
|
||||
//
|
||||
// RamWatchToolbarItem
|
||||
//
|
||||
this.RamWatchToolbarItem.Image = global::BizHawk.Client.EmuHawk.Properties.Resources.FindHS;
|
||||
this.RamWatchToolbarItem.ImageTransparentColor = System.Drawing.Color.Magenta;
|
||||
this.RamWatchToolbarItem.Name = "RamWatchToolbarItem";
|
||||
this.RamWatchToolbarItem.Size = new System.Drawing.Size(88, 20);
|
||||
this.RamWatchToolbarItem.Text = "Ram Watch";
|
||||
this.RamWatchToolbarItem.Click += new System.EventHandler(this.RamWatchToolbarItem_Click);
|
||||
//
|
||||
// RamSearchToolbarItem
|
||||
//
|
||||
this.RamSearchToolbarItem.Image = global::BizHawk.Client.EmuHawk.Properties.Resources.search;
|
||||
this.RamSearchToolbarItem.ImageTransparentColor = System.Drawing.Color.Magenta;
|
||||
this.RamSearchToolbarItem.Name = "RamSearchToolbarItem";
|
||||
this.RamSearchToolbarItem.Size = new System.Drawing.Size(89, 20);
|
||||
this.RamSearchToolbarItem.Text = "Ram Search";
|
||||
this.RamSearchToolbarItem.Click += new System.EventHandler(this.RamSearchToolbarItem_Click);
|
||||
//
|
||||
// HexEditorToolbarItem
|
||||
//
|
||||
this.HexEditorToolbarItem.Image = global::BizHawk.Client.EmuHawk.Properties.Resources.poke;
|
||||
this.HexEditorToolbarItem.ImageTransparentColor = System.Drawing.Color.Magenta;
|
||||
this.HexEditorToolbarItem.Name = "HexEditorToolbarItem";
|
||||
this.HexEditorToolbarItem.Size = new System.Drawing.Size(81, 20);
|
||||
this.HexEditorToolbarItem.Text = "Hex Editor";
|
||||
this.HexEditorToolbarItem.Click += new System.EventHandler(this.HexEditorToolbarItem_Click);
|
||||
//
|
||||
// LuaConsoleToolbarItem
|
||||
//
|
||||
this.LuaConsoleToolbarItem.Image = global::BizHawk.Client.EmuHawk.Properties.Resources.textdoc;
|
||||
this.LuaConsoleToolbarItem.ImageTransparentColor = System.Drawing.Color.Magenta;
|
||||
this.LuaConsoleToolbarItem.Name = "LuaConsoleToolbarItem";
|
||||
this.LuaConsoleToolbarItem.Size = new System.Drawing.Size(92, 20);
|
||||
this.LuaConsoleToolbarItem.Text = "Lua Console";
|
||||
this.LuaConsoleToolbarItem.Click += new System.EventHandler(this.LuaConsoleToolbarItem_Click);
|
||||
//
|
||||
// TAStudioToolbarItem
|
||||
//
|
||||
this.TAStudioToolbarItem.Image = global::BizHawk.Client.EmuHawk.Properties.Resources.TAStudio;
|
||||
this.TAStudioToolbarItem.ImageTransparentColor = System.Drawing.Color.Magenta;
|
||||
this.TAStudioToolbarItem.Name = "TAStudioToolbarItem";
|
||||
this.TAStudioToolbarItem.Size = new System.Drawing.Size(76, 20);
|
||||
this.TAStudioToolbarItem.Text = "TAStudio";
|
||||
this.TAStudioToolbarItem.Click += new System.EventHandler(this.TAStudioToolbarItem_Click);
|
||||
//
|
||||
// VirtualpadToolbarItem
|
||||
//
|
||||
this.VirtualpadToolbarItem.Image = global::BizHawk.Client.EmuHawk.Properties.Resources.GameController;
|
||||
this.VirtualpadToolbarItem.ImageTransparentColor = System.Drawing.Color.Magenta;
|
||||
this.VirtualpadToolbarItem.Name = "VirtualpadToolbarItem";
|
||||
this.VirtualpadToolbarItem.Size = new System.Drawing.Size(86, 20);
|
||||
this.VirtualpadToolbarItem.Text = "VirtualPads";
|
||||
this.VirtualpadToolbarItem.Click += new System.EventHandler(this.VirtualpadToolbarItem_Click);
|
||||
//
|
||||
// NesDebuggerToolbarItem
|
||||
//
|
||||
this.NesDebuggerToolbarItem.Image = global::BizHawk.Client.EmuHawk.Properties.Resources.NESControllerIcon;
|
||||
this.NesDebuggerToolbarItem.ImageTransparentColor = System.Drawing.Color.Magenta;
|
||||
this.NesDebuggerToolbarItem.Name = "NesDebuggerToolbarItem";
|
||||
this.NesDebuggerToolbarItem.Size = new System.Drawing.Size(79, 20);
|
||||
this.NesDebuggerToolbarItem.Text = "Debugger";
|
||||
this.NesDebuggerToolbarItem.Click += new System.EventHandler(this.NesDebuggerToolbarItem_Click);
|
||||
//
|
||||
// NesPPUToolbarItem
|
||||
//
|
||||
this.NesPPUToolbarItem.Image = global::BizHawk.Client.EmuHawk.Properties.Resources.NESControllerIcon;
|
||||
this.NesPPUToolbarItem.ImageTransparentColor = System.Drawing.Color.Magenta;
|
||||
this.NesPPUToolbarItem.Name = "NesPPUToolbarItem";
|
||||
this.NesPPUToolbarItem.Size = new System.Drawing.Size(49, 20);
|
||||
this.NesPPUToolbarItem.Text = "PPU";
|
||||
this.NesPPUToolbarItem.Click += new System.EventHandler(this.NesPPUToolbarItem_Click);
|
||||
//
|
||||
// NesNameTableToolbarItem
|
||||
//
|
||||
this.NesNameTableToolbarItem.Image = global::BizHawk.Client.EmuHawk.Properties.Resources.NESControllerIcon;
|
||||
this.NesNameTableToolbarItem.ImageTransparentColor = System.Drawing.Color.Magenta;
|
||||
this.NesNameTableToolbarItem.Name = "NesNameTableToolbarItem";
|
||||
this.NesNameTableToolbarItem.Size = new System.Drawing.Size(85, 20);
|
||||
this.NesNameTableToolbarItem.Text = "Nametable";
|
||||
this.NesNameTableToolbarItem.Click += new System.EventHandler(this.NesNameTableToolbarItem_Click);
|
||||
//
|
||||
// NesGameGenieToolbarItem
|
||||
//
|
||||
this.NesGameGenieToolbarItem.Image = global::BizHawk.Client.EmuHawk.Properties.Resources.NESControllerIcon;
|
||||
this.NesGameGenieToolbarItem.ImageTransparentColor = System.Drawing.Color.Magenta;
|
||||
this.NesGameGenieToolbarItem.Name = "NesGameGenieToolbarItem";
|
||||
this.NesGameGenieToolbarItem.Size = new System.Drawing.Size(91, 20);
|
||||
this.NesGameGenieToolbarItem.Text = "Game Genie";
|
||||
this.NesGameGenieToolbarItem.Click += new System.EventHandler(this.NesGameGenieToolbarItem_Click);
|
||||
//
|
||||
// TI83KeypadToolbarItem
|
||||
//
|
||||
this.TI83KeypadToolbarItem.Image = global::BizHawk.Client.EmuHawk.Properties.Resources.calculator;
|
||||
this.TI83KeypadToolbarItem.ImageTransparentColor = System.Drawing.Color.Magenta;
|
||||
this.TI83KeypadToolbarItem.Name = "TI83KeypadToolbarItem";
|
||||
this.TI83KeypadToolbarItem.Size = new System.Drawing.Size(66, 20);
|
||||
this.TI83KeypadToolbarItem.Text = "Keypad";
|
||||
this.TI83KeypadToolbarItem.Click += new System.EventHandler(this.TI83KeypadToolbarItem_Click);
|
||||
//
|
||||
// SNESGraphicsDebuggerToolbarItem
|
||||
//
|
||||
this.SNESGraphicsDebuggerToolbarItem.Image = global::BizHawk.Client.EmuHawk.Properties.Resources.SNESControllerIcon;
|
||||
this.SNESGraphicsDebuggerToolbarItem.ImageTransparentColor = System.Drawing.Color.Magenta;
|
||||
this.SNESGraphicsDebuggerToolbarItem.Name = "SNESGraphicsDebuggerToolbarItem";
|
||||
this.SNESGraphicsDebuggerToolbarItem.Size = new System.Drawing.Size(99, 20);
|
||||
this.SNESGraphicsDebuggerToolbarItem.Text = "Gfx Debugger";
|
||||
this.SNESGraphicsDebuggerToolbarItem.Click += new System.EventHandler(this.SNESGraphicsDebuggerToolbarItem_Click);
|
||||
//
|
||||
// SNESGameGenieToolbarItem
|
||||
//
|
||||
this.SNESGameGenieToolbarItem.Image = global::BizHawk.Client.EmuHawk.Properties.Resources.SNESControllerIcon;
|
||||
this.SNESGameGenieToolbarItem.ImageTransparentColor = System.Drawing.Color.Magenta;
|
||||
this.SNESGameGenieToolbarItem.Name = "SNESGameGenieToolbarItem";
|
||||
this.SNESGameGenieToolbarItem.Size = new System.Drawing.Size(91, 20);
|
||||
this.SNESGameGenieToolbarItem.Text = "Game Genie";
|
||||
this.SNESGameGenieToolbarItem.Click += new System.EventHandler(this.SNESGameGenieToolbarItem_Click);
|
||||
//
|
||||
// GGGameGenieToolbarItem
|
||||
//
|
||||
this.GGGameGenieToolbarItem.Image = ((System.Drawing.Image)(resources.GetObject("GGGameGenieToolbarItem.Image")));
|
||||
this.GGGameGenieToolbarItem.ImageTransparentColor = System.Drawing.Color.Magenta;
|
||||
this.GGGameGenieToolbarItem.Name = "GGGameGenieToolbarItem";
|
||||
this.GGGameGenieToolbarItem.Size = new System.Drawing.Size(91, 20);
|
||||
this.GGGameGenieToolbarItem.Text = "Game Genie";
|
||||
this.GGGameGenieToolbarItem.Click += new System.EventHandler(this.GGGameGenieToolbarItem_Click);
|
||||
//
|
||||
// GBGameGenieToolbarItem
|
||||
//
|
||||
this.GBGameGenieToolbarItem.Image = ((System.Drawing.Image)(resources.GetObject("GBGameGenieToolbarItem.Image")));
|
||||
this.GBGameGenieToolbarItem.ImageTransparentColor = System.Drawing.Color.Magenta;
|
||||
this.GBGameGenieToolbarItem.Name = "GBGameGenieToolbarItem";
|
||||
this.GBGameGenieToolbarItem.Size = new System.Drawing.Size(91, 20);
|
||||
this.GBGameGenieToolbarItem.Text = "Game Genie";
|
||||
this.GBGameGenieToolbarItem.Click += new System.EventHandler(this.GBGameGenieToolbarItem_Click);
|
||||
//
|
||||
// GameboyDebuggerTool
|
||||
//
|
||||
this.GameboyDebuggerTool.Name = "GameboyDebuggerTool";
|
||||
this.GameboyDebuggerTool.Size = new System.Drawing.Size(23, 4);
|
||||
//
|
||||
// ToolBox
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(171, 449);
|
||||
this.Controls.Add(this.ToolBoxStrip);
|
||||
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
|
||||
this.MinimumSize = new System.Drawing.Size(129, 62);
|
||||
this.Name = "ToolBox";
|
||||
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
|
||||
this.Text = "Tool Box";
|
||||
this.Load += new System.EventHandler(this.ToolBox_Load);
|
||||
this.ToolBoxStrip.ResumeLayout(false);
|
||||
this.ToolBoxStrip.PerformLayout();
|
||||
this.ResumeLayout(false);
|
||||
this.PerformLayout();
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private ToolStripEx toolStrip1;
|
||||
private System.Windows.Forms.ToolStripButton toolStripButton1;
|
||||
private System.Windows.Forms.ToolStripButton toolStripButton2;
|
||||
private System.Windows.Forms.ToolStripButton toolStripButton3;
|
||||
private System.Windows.Forms.ToolStripButton HexEditor;
|
||||
private System.Windows.Forms.ToolStripButton toolStripButton5;
|
||||
private System.Windows.Forms.ToolStripButton NESPPU;
|
||||
private System.Windows.Forms.ToolStripButton NESDebugger;
|
||||
private System.Windows.Forms.ToolStripButton NESGameGenie;
|
||||
private System.Windows.Forms.ToolStripButton NESNameTable;
|
||||
private System.Windows.Forms.ToolStripButton KeypadTool;
|
||||
private System.Windows.Forms.ToolStripButton TAStudioButton;
|
||||
private ToolStripEx ToolBoxStrip;
|
||||
private System.Windows.Forms.ToolStripButton CheatsToolBarItem;
|
||||
private System.Windows.Forms.ToolStripButton RamWatchToolbarItem;
|
||||
private System.Windows.Forms.ToolStripButton RamSearchToolbarItem;
|
||||
private System.Windows.Forms.ToolStripButton HexEditorToolbarItem;
|
||||
private System.Windows.Forms.ToolStripButton LuaConsoleToolbarItem;
|
||||
private System.Windows.Forms.ToolStripButton NesPPUToolbarItem;
|
||||
private System.Windows.Forms.ToolStripButton NesDebuggerToolbarItem;
|
||||
private System.Windows.Forms.ToolStripButton NesGameGenieToolbarItem;
|
||||
private System.Windows.Forms.ToolStripButton NesNameTableToolbarItem;
|
||||
private System.Windows.Forms.ToolStripButton TI83KeypadToolbarItem;
|
||||
private System.Windows.Forms.ToolStripButton VirtualpadToolbarItem;
|
||||
private System.Windows.Forms.ToolStripButton GameboyDebuggerTool;
|
||||
private System.Windows.Forms.ToolStripButton SNESGraphicsDebuggerButton;
|
||||
private System.Windows.Forms.ToolStripButton SNESGameGenie;
|
||||
private System.Windows.Forms.ToolStripButton toolStripButton6;
|
||||
private System.Windows.Forms.ToolStripButton GGGameGenie;
|
||||
private System.Windows.Forms.ToolStripButton GBGameGenie;
|
||||
private System.Windows.Forms.ToolStripButton SNESGraphicsDebuggerToolbarItem;
|
||||
private System.Windows.Forms.ToolStripButton SNESGameGenieToolbarItem;
|
||||
private System.Windows.Forms.ToolStripButton TAStudioToolbarItem;
|
||||
private System.Windows.Forms.ToolStripButton GGGameGenieToolbarItem;
|
||||
private System.Windows.Forms.ToolStripButton GBGameGenieToolbarItem;
|
||||
|
||||
}
|
||||
}
|
|
@ -18,15 +18,18 @@ namespace BizHawk.Client.EmuHawk
|
|||
|
||||
private void ToolBox_Load(object sender, EventArgs e)
|
||||
{
|
||||
int x = GlobalWin.MainForm.Location.X + GlobalWin.MainForm.Size.Width;
|
||||
int y = GlobalWin.MainForm.Location.Y;
|
||||
Location = new Point(x, y);
|
||||
Location = new Point(
|
||||
GlobalWin.MainForm.Location.X + GlobalWin.MainForm.Size.Width,
|
||||
GlobalWin.MainForm.Location.Y
|
||||
);
|
||||
|
||||
HideShowIcons();
|
||||
}
|
||||
|
||||
public bool AskSave() { return true; }
|
||||
public bool UpdateBefore { get { return false; } }
|
||||
public void UpdateValues() { }
|
||||
|
||||
public void Restart()
|
||||
{
|
||||
HideShowIcons();
|
||||
|
@ -34,106 +37,72 @@ namespace BizHawk.Client.EmuHawk
|
|||
|
||||
private void HideShowIcons()
|
||||
{
|
||||
if (Global.Emulator is NES)
|
||||
{
|
||||
NESPPU.Visible = true;
|
||||
NESDebugger.Visible = true;
|
||||
NESGameGenie.Visible = true;
|
||||
NESNameTable.Visible = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
NESPPU.Visible = false;
|
||||
NESDebugger.Visible = false;
|
||||
NESGameGenie.Visible = false;
|
||||
NESNameTable.Visible = false;
|
||||
}
|
||||
NesPPUToolbarItem.Visible =
|
||||
NesDebuggerToolbarItem.Visible =
|
||||
NesGameGenieToolbarItem.Visible =
|
||||
NesNameTableToolbarItem.Visible =
|
||||
Global.Emulator is NES;
|
||||
|
||||
if (Global.Emulator is TI83)
|
||||
{
|
||||
KeypadTool.Visible = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
KeypadTool.Visible = false;
|
||||
}
|
||||
TI83KeypadToolbarItem.Visible = Global.Emulator is TI83;
|
||||
|
||||
if (Global.Emulator is LibsnesCore)
|
||||
{
|
||||
SNESGraphicsDebuggerButton.Visible = true;
|
||||
SNESGameGenie.Visible = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
SNESGraphicsDebuggerButton.Visible = false;
|
||||
SNESGameGenie.Visible = false;
|
||||
}
|
||||
if (Global.Game.System == "GG")
|
||||
{
|
||||
GGGameGenie.Visible = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
GGGameGenie.Visible = false;
|
||||
}
|
||||
if (Global.Game.System == "GB")
|
||||
{
|
||||
GBGameGenie.Visible = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
GBGameGenie.Visible = false;
|
||||
}
|
||||
SNESGraphicsDebuggerToolbarItem.Visible =
|
||||
SNESGameGenieToolbarItem.Visible =
|
||||
Global.Emulator is LibsnesCore;
|
||||
|
||||
Size = new Size(Size.Width, toolStrip1.Size.Height + 50);
|
||||
GGGameGenieToolbarItem.Visible =
|
||||
Global.Game.System == "GG";
|
||||
|
||||
GBGameGenieToolbarItem.Visible = Global.Game.System == "GB";
|
||||
|
||||
Size = new Size(Size.Width, ToolBoxStrip.Size.Height + 50);
|
||||
}
|
||||
|
||||
private void toolStripButton1_Click(object sender, EventArgs e)
|
||||
private void CheatsToolBarItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
GlobalWin.Tools.Load<Cheats>();
|
||||
}
|
||||
|
||||
private void toolStripButton2_Click(object sender, EventArgs e)
|
||||
private void RamWatchToolbarItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
GlobalWin.Tools.LoadRamWatch(true);
|
||||
}
|
||||
|
||||
private void toolStripButton3_Click(object sender, EventArgs e)
|
||||
private void RamSearchToolbarItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
GlobalWin.Tools.Load<RamSearch>();
|
||||
}
|
||||
|
||||
private void HexEditor_Click(object sender, EventArgs e)
|
||||
private void HexEditorToolbarItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
GlobalWin.Tools.Load<HexEditor>();
|
||||
}
|
||||
|
||||
private void toolStripButton5_Click(object sender, EventArgs e)
|
||||
private void LuaConsoleToolbarItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
GlobalWin.MainForm.OpenLuaConsole();
|
||||
}
|
||||
|
||||
private void NESPPU_Click(object sender, EventArgs e)
|
||||
private void NesPPUToolbarItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
GlobalWin.Tools.Load<NESPPU>();
|
||||
}
|
||||
|
||||
private void NESDebugger_Click(object sender, EventArgs e)
|
||||
private void NesDebuggerToolbarItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
GlobalWin.Tools.Load<NESDebugger>();
|
||||
}
|
||||
|
||||
private void NESGameGenie_Click(object sender, EventArgs e)
|
||||
private void NesGameGenieToolbarItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
GlobalWin.MainForm.LoadGameGenieEc();
|
||||
}
|
||||
|
||||
private void NESNameTable_Click(object sender, EventArgs e)
|
||||
private void NesNameTableToolbarItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
GlobalWin.Tools.Load<NESNameTableViewer>();
|
||||
}
|
||||
|
||||
private void KeyPadTool_Click(object sender, EventArgs e)
|
||||
private void TI83KeypadToolbarItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (Global.Emulator is TI83)
|
||||
{
|
||||
|
@ -141,12 +110,12 @@ namespace BizHawk.Client.EmuHawk
|
|||
}
|
||||
}
|
||||
|
||||
private void TAStudioButton_Click(object sender, EventArgs e)
|
||||
private void TAStudioToolbarItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
GlobalWin.MainForm.LoadTAStudio();
|
||||
}
|
||||
|
||||
private void SNESGraphicsDebuggerButton_Click(object sender, EventArgs e)
|
||||
private void SNESGraphicsDebuggerToolbarItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (Global.Emulator is LibsnesCore)
|
||||
{
|
||||
|
@ -154,26 +123,24 @@ namespace BizHawk.Client.EmuHawk
|
|||
}
|
||||
}
|
||||
|
||||
private void VirtualPadButton_Click(object sender, EventArgs e)
|
||||
private void VirtualpadToolbarItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
GlobalWin.Tools.Load<VirtualPadForm>();
|
||||
}
|
||||
|
||||
private void SNESGameGenie_Click(object sender, EventArgs e)
|
||||
private void SNESGameGenieToolbarItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
GlobalWin.MainForm.LoadGameGenieEc();
|
||||
}
|
||||
|
||||
private void GGGameGenie_Click(object sender, EventArgs e)
|
||||
private void GGGameGenieToolbarItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
GlobalWin.MainForm.LoadGameGenieEc();
|
||||
}
|
||||
|
||||
private void GBGameGenie_Click(object sender, EventArgs e)
|
||||
private void GBGameGenieToolbarItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
GlobalWin.MainForm.LoadGameGenieEc();
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
@ -117,11 +117,11 @@
|
|||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<metadata name="toolStrip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<metadata name="ToolBoxStrip.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>17, 17</value>
|
||||
</metadata>
|
||||
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
|
||||
<data name="GGGameGenie.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<data name="GGGameGenieToolbarItem.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>
|
||||
iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
|
||||
YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAJTSURBVFhH7VQ9a1RBFB1YMIXY6uIPSAo7LbJpAhEhYKNg
|
||||
|
@ -137,7 +137,7 @@
|
|||
WXFLks3nAXUgWBS2qRsoo4wyTDj3B3uOB2ePDD1gAAAAAElFTkSuQmCC
|
||||
</value>
|
||||
</data>
|
||||
<data name="GBGameGenie.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<data name="GBGameGenieToolbarItem.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>
|
||||
iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
|
||||
YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAEQSURBVFhH7ZXRDYMwDEQzC7OwArMwS2dhBXZKdQ4XOZAQ
|
||||
|
|
Loading…
Reference in New Issue