New Cheat Form - some progress

This commit is contained in:
adelikat 2013-10-02 15:09:49 +00:00
parent f8d172bc88
commit b87e4b4bca
5 changed files with 381 additions and 226 deletions

View File

@ -342,6 +342,7 @@
this.cmiScreenshotClipboard = new System.Windows.Forms.ToolStripMenuItem(); this.cmiScreenshotClipboard = new System.Windows.Forms.ToolStripMenuItem();
this.cmiCloseRom = new System.Windows.Forms.ToolStripMenuItem(); this.cmiCloseRom = new System.Windows.Forms.ToolStripMenuItem();
this.cmiShowMenu = new System.Windows.Forms.ToolStripMenuItem(); this.cmiShowMenu = new System.Windows.Forms.ToolStripMenuItem();
this.newCheatsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.menuStrip1.SuspendLayout(); this.menuStrip1.SuspendLayout();
this.StatusSlot0.SuspendLayout(); this.StatusSlot0.SuspendLayout();
this.contextMenuStrip1.SuspendLayout(); this.contextMenuStrip1.SuspendLayout();
@ -1808,7 +1809,8 @@
this.luaConsoleToolStripMenuItem, this.luaConsoleToolStripMenuItem,
this.cheatsToolStripMenuItem, this.cheatsToolStripMenuItem,
this.toolStripSeparator29, this.toolStripSeparator29,
this.createDualGBXMLToolStripMenuItem}); this.createDualGBXMLToolStripMenuItem,
this.newCheatsToolStripMenuItem});
this.toolsToolStripMenuItem.Name = "toolsToolStripMenuItem"; this.toolsToolStripMenuItem.Name = "toolsToolStripMenuItem";
this.toolsToolStripMenuItem.Size = new System.Drawing.Size(48, 19); this.toolsToolStripMenuItem.Size = new System.Drawing.Size(48, 19);
this.toolsToolStripMenuItem.Text = "&Tools"; this.toolsToolStripMenuItem.Text = "&Tools";
@ -2977,6 +2979,13 @@
this.cmiShowMenu.Text = "Show Menu"; this.cmiShowMenu.Text = "Show Menu";
this.cmiShowMenu.Click += new System.EventHandler(this.showMenuToolStripMenuItem_Click); this.cmiShowMenu.Click += new System.EventHandler(this.showMenuToolStripMenuItem_Click);
// //
// newCheatsToolStripMenuItem
//
this.newCheatsToolStripMenuItem.Name = "newCheatsToolStripMenuItem";
this.newCheatsToolStripMenuItem.Size = new System.Drawing.Size(189, 22);
this.newCheatsToolStripMenuItem.Text = "New Cheats";
this.newCheatsToolStripMenuItem.Click += new System.EventHandler(this.newCheatsToolStripMenuItem_Click);
//
// MainForm // MainForm
// //
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 14F); this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 14F);
@ -3331,6 +3340,7 @@
private System.Windows.Forms.ToolStripMenuItem rewindToolStripMenuItem; private System.Windows.Forms.ToolStripMenuItem rewindToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem firmwaresToolStripMenuItem; private System.Windows.Forms.ToolStripMenuItem firmwaresToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem loadTIFileToolStripMenuItem; private System.Windows.Forms.ToolStripMenuItem loadTIFileToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem newCheatsToolStripMenuItem;
} }
} }

View File

@ -4177,5 +4177,10 @@ namespace BizHawk.MultiClient
RamWatch1.Focus(); RamWatch1.Focus();
} }
} }
private void newCheatsToolStripMenuItem_Click(object sender, EventArgs e)
{
new NewCheatForm().Show();
}
} }
} }

View File

@ -33,6 +33,16 @@ namespace BizHawk.MultiClient
get { return _cheatList.Count; } get { return _cheatList.Count; }
} }
public int CheatCount
{
get { return _cheatList.Count(x => !x.IsSeparator); }
}
public int ActiveCheatCount
{
get { return _cheatList.Count(x => x.Enabled); }
}
public void Update() public void Update()
{ {
_cheatList.ForEach(x => x.Pulse()); _cheatList.ForEach(x => x.Pulse());
@ -132,7 +142,7 @@ namespace BizHawk.MultiClient
} }
} }
public void Load() public bool Load(string path, bool append)
{ {
throw new NotImplementedException(); throw new NotImplementedException();
} }

View File

@ -1,4 +1,4 @@
namespace BizHawk.MultiClient.tools.Cheats namespace BizHawk.MultiClient
{ {
partial class NewCheatForm partial class NewCheatForm
{ {
@ -38,37 +38,38 @@
this.Domain = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); this.Domain = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
this.CheatsMenu = new MenuStripEx(); this.CheatsMenu = new MenuStripEx();
this.FileSubMenu = new System.Windows.Forms.ToolStripMenuItem(); this.FileSubMenu = new System.Windows.Forms.ToolStripMenuItem();
this.newToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.NewMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.openToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.OpenMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.saveToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.SaveMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.saveAsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.SaveAsMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.appendFileToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.AppendMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.recentToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.RecentSubMenu = new System.Windows.Forms.ToolStripMenuItem();
this.toolStripSeparator4 = new System.Windows.Forms.ToolStripSeparator(); this.toolStripSeparator4 = new System.Windows.Forms.ToolStripSeparator();
this.toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator(); this.toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator();
this.exitToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.ExitMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.CheatsSubMenu = new System.Windows.Forms.ToolStripMenuItem(); this.CheatsSubMenu = new System.Windows.Forms.ToolStripMenuItem();
this.addCheatToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.AddCheatMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.removeCheatToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.RemoveCheatMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.duplicateToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.DuplicateMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.insertSeparatorToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.InsertSeparatorMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.toolStripSeparator3 = new System.Windows.Forms.ToolStripSeparator(); this.toolStripSeparator3 = new System.Windows.Forms.ToolStripSeparator();
this.moveUpToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.MoveUpMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.moveDownToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.MoveDownMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.selectAllToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.SelectAllMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.toolStripSeparator6 = new System.Windows.Forms.ToolStripSeparator(); this.toolStripSeparator6 = new System.Windows.Forms.ToolStripSeparator();
this.disableAllCheatsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.DisableAllCheatsMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.toolStripSeparator7 = new System.Windows.Forms.ToolStripSeparator(); this.toolStripSeparator7 = new System.Windows.Forms.ToolStripSeparator();
this.openGameGenieEncoderDecoderToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.OpenGameGenieEncoderDecoderMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.OptionsSubMenu = new System.Windows.Forms.ToolStripMenuItem(); this.OptionsSubMenu = new System.Windows.Forms.ToolStripMenuItem();
this.LoadCheatFileByGameToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.LoadCheatFileByGameMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.saveCheatsOnCloseToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.SaveCheatsOnCloseMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.CheatsOnOffLoadToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.CheatsOnOffLoadMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.showValuesAsHexToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.ShowValuesAsHexMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.autoloadDialogToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.AutoloadDialogMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.saveWindowPositionToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.SaveWindowPositionMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.toolStripSeparator5 = new System.Windows.Forms.ToolStripSeparator(); this.toolStripSeparator5 = new System.Windows.Forms.ToolStripSeparator();
this.restoreWindowSizeToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.RestoreWindowSizeMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.ColumnsSubMenu = new System.Windows.Forms.ToolStripMenuItem();
this.toolStrip1 = new ToolStripEx(); this.toolStrip1 = new ToolStripEx();
this.newToolStripButton = new System.Windows.Forms.ToolStripButton(); this.newToolStripButton = new System.Windows.Forms.ToolStripButton();
this.openToolStripButton = new System.Windows.Forms.ToolStripButton(); this.openToolStripButton = new System.Windows.Forms.ToolStripButton();
@ -81,8 +82,8 @@
this.toolStripButtonMoveUp = new System.Windows.Forms.ToolStripButton(); this.toolStripButtonMoveUp = new System.Windows.Forms.ToolStripButton();
this.toolStripButtonMoveDown = new System.Windows.Forms.ToolStripButton(); this.toolStripButtonMoveDown = new System.Windows.Forms.ToolStripButton();
this.toolStripButtonLoadGameGenie = new System.Windows.Forms.ToolStripButton(); this.toolStripButtonLoadGameGenie = new System.Windows.Forms.ToolStripButton();
this.NumCheatsLabel = new System.Windows.Forms.Label(); this.TotalLabel = new System.Windows.Forms.Label();
this.ColumnsSubMenu = new System.Windows.Forms.ToolStripMenuItem(); this.MessageLabel = new System.Windows.Forms.Label();
this.CheatsMenu.SuspendLayout(); this.CheatsMenu.SuspendLayout();
this.toolStrip1.SuspendLayout(); this.toolStrip1.SuspendLayout();
this.SuspendLayout(); this.SuspendLayout();
@ -161,70 +162,71 @@
// FileSubMenu // FileSubMenu
// //
this.FileSubMenu.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { this.FileSubMenu.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.newToolStripMenuItem, this.NewMenuItem,
this.openToolStripMenuItem, this.OpenMenuItem,
this.saveToolStripMenuItem, this.SaveMenuItem,
this.saveAsToolStripMenuItem, this.SaveAsMenuItem,
this.appendFileToolStripMenuItem, this.AppendMenuItem,
this.recentToolStripMenuItem, this.RecentSubMenu,
this.toolStripSeparator1, this.toolStripSeparator1,
this.exitToolStripMenuItem}); this.ExitMenuItem});
this.FileSubMenu.Name = "FileSubMenu"; this.FileSubMenu.Name = "FileSubMenu";
this.FileSubMenu.Size = new System.Drawing.Size(37, 20); this.FileSubMenu.Size = new System.Drawing.Size(37, 20);
this.FileSubMenu.Text = "&File"; this.FileSubMenu.Text = "&File";
this.FileSubMenu.DropDownOpened += new System.EventHandler(this.FileSubMenu_DropDownOpened);
// //
// newToolStripMenuItem // NewMenuItem
// //
this.newToolStripMenuItem.Enabled = false; this.NewMenuItem.Enabled = false;
this.newToolStripMenuItem.Image = global::BizHawk.MultiClient.Properties.Resources.NewFile; this.NewMenuItem.Image = global::BizHawk.MultiClient.Properties.Resources.NewFile;
this.newToolStripMenuItem.Name = "newToolStripMenuItem"; this.NewMenuItem.Name = "NewMenuItem";
this.newToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.N))); this.NewMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.N)));
this.newToolStripMenuItem.Size = new System.Drawing.Size(195, 22); this.NewMenuItem.Size = new System.Drawing.Size(195, 22);
this.newToolStripMenuItem.Text = "&New"; this.NewMenuItem.Text = "&New";
// //
// openToolStripMenuItem // OpenMenuItem
// //
this.openToolStripMenuItem.Enabled = false; this.OpenMenuItem.Enabled = false;
this.openToolStripMenuItem.Image = global::BizHawk.MultiClient.Properties.Resources.OpenFile; this.OpenMenuItem.Image = global::BizHawk.MultiClient.Properties.Resources.OpenFile;
this.openToolStripMenuItem.Name = "openToolStripMenuItem"; this.OpenMenuItem.Name = "OpenMenuItem";
this.openToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.O))); this.OpenMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.O)));
this.openToolStripMenuItem.Size = new System.Drawing.Size(195, 22); this.OpenMenuItem.Size = new System.Drawing.Size(195, 22);
this.openToolStripMenuItem.Text = "&Open..."; this.OpenMenuItem.Text = "&Open...";
// //
// saveToolStripMenuItem // SaveMenuItem
// //
this.saveToolStripMenuItem.Enabled = false; this.SaveMenuItem.Enabled = false;
this.saveToolStripMenuItem.Image = global::BizHawk.MultiClient.Properties.Resources.SaveAs; this.SaveMenuItem.Image = global::BizHawk.MultiClient.Properties.Resources.SaveAs;
this.saveToolStripMenuItem.Name = "saveToolStripMenuItem"; this.SaveMenuItem.Name = "SaveMenuItem";
this.saveToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.S))); this.SaveMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.S)));
this.saveToolStripMenuItem.Size = new System.Drawing.Size(195, 22); this.SaveMenuItem.Size = new System.Drawing.Size(195, 22);
this.saveToolStripMenuItem.Text = "&Save"; this.SaveMenuItem.Text = "&Save";
// //
// saveAsToolStripMenuItem // SaveAsMenuItem
// //
this.saveAsToolStripMenuItem.Enabled = false; this.SaveAsMenuItem.Enabled = false;
this.saveAsToolStripMenuItem.Name = "saveAsToolStripMenuItem"; this.SaveAsMenuItem.Name = "SaveAsMenuItem";
this.saveAsToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)(((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.Shift) this.SaveAsMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)(((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.Shift)
| System.Windows.Forms.Keys.S))); | System.Windows.Forms.Keys.S)));
this.saveAsToolStripMenuItem.Size = new System.Drawing.Size(195, 22); this.SaveAsMenuItem.Size = new System.Drawing.Size(195, 22);
this.saveAsToolStripMenuItem.Text = "Save &As..."; this.SaveAsMenuItem.Text = "Save &As...";
// //
// appendFileToolStripMenuItem // AppendMenuItem
// //
this.appendFileToolStripMenuItem.Enabled = false; this.AppendMenuItem.Enabled = false;
this.appendFileToolStripMenuItem.Name = "appendFileToolStripMenuItem"; this.AppendMenuItem.Name = "AppendMenuItem";
this.appendFileToolStripMenuItem.Size = new System.Drawing.Size(195, 22); this.AppendMenuItem.Size = new System.Drawing.Size(195, 22);
this.appendFileToolStripMenuItem.Text = "Append File"; this.AppendMenuItem.Text = "Append File";
// //
// recentToolStripMenuItem // RecentSubMenu
// //
this.recentToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { this.RecentSubMenu.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.toolStripSeparator4}); this.toolStripSeparator4});
this.recentToolStripMenuItem.Enabled = false; this.RecentSubMenu.Image = global::BizHawk.MultiClient.Properties.Resources.Recent;
this.recentToolStripMenuItem.Image = global::BizHawk.MultiClient.Properties.Resources.Recent; this.RecentSubMenu.Name = "RecentSubMenu";
this.recentToolStripMenuItem.Name = "recentToolStripMenuItem"; this.RecentSubMenu.Size = new System.Drawing.Size(195, 22);
this.recentToolStripMenuItem.Size = new System.Drawing.Size(195, 22); this.RecentSubMenu.Text = "Recent";
this.recentToolStripMenuItem.Text = "Recent"; this.RecentSubMenu.DropDownOpened += new System.EventHandler(this.RecentSubMenu_DropDownOpened);
// //
// toolStripSeparator4 // toolStripSeparator4
// //
@ -236,192 +238,201 @@
this.toolStripSeparator1.Name = "toolStripSeparator1"; this.toolStripSeparator1.Name = "toolStripSeparator1";
this.toolStripSeparator1.Size = new System.Drawing.Size(192, 6); this.toolStripSeparator1.Size = new System.Drawing.Size(192, 6);
// //
// exitToolStripMenuItem // ExitMenuItem
// //
this.exitToolStripMenuItem.Enabled = false; this.ExitMenuItem.Name = "ExitMenuItem";
this.exitToolStripMenuItem.Name = "exitToolStripMenuItem"; this.ExitMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Alt | System.Windows.Forms.Keys.F4)));
this.exitToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Alt | System.Windows.Forms.Keys.F4))); this.ExitMenuItem.Size = new System.Drawing.Size(195, 22);
this.exitToolStripMenuItem.Size = new System.Drawing.Size(195, 22); this.ExitMenuItem.Text = "E&xit";
this.exitToolStripMenuItem.Text = "E&xit"; this.ExitMenuItem.Click += new System.EventHandler(this.ExitMenuItem_Click);
// //
// CheatsSubMenu // CheatsSubMenu
// //
this.CheatsSubMenu.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { this.CheatsSubMenu.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.addCheatToolStripMenuItem, this.AddCheatMenuItem,
this.removeCheatToolStripMenuItem, this.RemoveCheatMenuItem,
this.duplicateToolStripMenuItem, this.DuplicateMenuItem,
this.insertSeparatorToolStripMenuItem, this.InsertSeparatorMenuItem,
this.toolStripSeparator3, this.toolStripSeparator3,
this.moveUpToolStripMenuItem, this.MoveUpMenuItem,
this.moveDownToolStripMenuItem, this.MoveDownMenuItem,
this.selectAllToolStripMenuItem, this.SelectAllMenuItem,
this.toolStripSeparator6, this.toolStripSeparator6,
this.disableAllCheatsToolStripMenuItem, this.DisableAllCheatsMenuItem,
this.toolStripSeparator7, this.toolStripSeparator7,
this.openGameGenieEncoderDecoderToolStripMenuItem}); this.OpenGameGenieEncoderDecoderMenuItem});
this.CheatsSubMenu.Name = "CheatsSubMenu"; this.CheatsSubMenu.Name = "CheatsSubMenu";
this.CheatsSubMenu.Size = new System.Drawing.Size(55, 20); this.CheatsSubMenu.Size = new System.Drawing.Size(55, 20);
this.CheatsSubMenu.Text = "&Cheats"; this.CheatsSubMenu.Text = "&Cheats";
this.CheatsSubMenu.DropDownOpened += new System.EventHandler(this.CheatsSubMenu_DropDownOpened);
// //
// addCheatToolStripMenuItem // AddCheatMenuItem
// //
this.addCheatToolStripMenuItem.Enabled = false; this.AddCheatMenuItem.Enabled = false;
this.addCheatToolStripMenuItem.Image = global::BizHawk.MultiClient.Properties.Resources.Freeze; this.AddCheatMenuItem.Image = global::BizHawk.MultiClient.Properties.Resources.Freeze;
this.addCheatToolStripMenuItem.Name = "addCheatToolStripMenuItem"; this.AddCheatMenuItem.Name = "AddCheatMenuItem";
this.addCheatToolStripMenuItem.Size = new System.Drawing.Size(233, 22); this.AddCheatMenuItem.Size = new System.Drawing.Size(233, 22);
this.addCheatToolStripMenuItem.Text = "&Add Cheat"; this.AddCheatMenuItem.Text = "&Add Cheat";
// //
// removeCheatToolStripMenuItem // RemoveCheatMenuItem
// //
this.removeCheatToolStripMenuItem.Enabled = false; this.RemoveCheatMenuItem.Enabled = false;
this.removeCheatToolStripMenuItem.Image = global::BizHawk.MultiClient.Properties.Resources.Delete; this.RemoveCheatMenuItem.Image = global::BizHawk.MultiClient.Properties.Resources.Delete;
this.removeCheatToolStripMenuItem.Name = "removeCheatToolStripMenuItem"; this.RemoveCheatMenuItem.Name = "RemoveCheatMenuItem";
this.removeCheatToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.R))); this.RemoveCheatMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.R)));
this.removeCheatToolStripMenuItem.Size = new System.Drawing.Size(233, 22); this.RemoveCheatMenuItem.Size = new System.Drawing.Size(233, 22);
this.removeCheatToolStripMenuItem.Text = "&Remove Cheat"; this.RemoveCheatMenuItem.Text = "&Remove Cheat";
// //
// duplicateToolStripMenuItem // DuplicateMenuItem
// //
this.duplicateToolStripMenuItem.Enabled = false; this.DuplicateMenuItem.Enabled = false;
this.duplicateToolStripMenuItem.Image = global::BizHawk.MultiClient.Properties.Resources.Duplicate; this.DuplicateMenuItem.Image = global::BizHawk.MultiClient.Properties.Resources.Duplicate;
this.duplicateToolStripMenuItem.Name = "duplicateToolStripMenuItem"; this.DuplicateMenuItem.Name = "DuplicateMenuItem";
this.duplicateToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.D))); this.DuplicateMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.D)));
this.duplicateToolStripMenuItem.Size = new System.Drawing.Size(233, 22); this.DuplicateMenuItem.Size = new System.Drawing.Size(233, 22);
this.duplicateToolStripMenuItem.Text = "&Duplicate"; this.DuplicateMenuItem.Text = "&Duplicate";
// //
// insertSeparatorToolStripMenuItem // InsertSeparatorMenuItem
// //
this.insertSeparatorToolStripMenuItem.Enabled = false; this.InsertSeparatorMenuItem.Enabled = false;
this.insertSeparatorToolStripMenuItem.Image = global::BizHawk.MultiClient.Properties.Resources.InsertSeparator; this.InsertSeparatorMenuItem.Image = global::BizHawk.MultiClient.Properties.Resources.InsertSeparator;
this.insertSeparatorToolStripMenuItem.Name = "insertSeparatorToolStripMenuItem"; this.InsertSeparatorMenuItem.Name = "InsertSeparatorMenuItem";
this.insertSeparatorToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.I))); this.InsertSeparatorMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.I)));
this.insertSeparatorToolStripMenuItem.Size = new System.Drawing.Size(233, 22); this.InsertSeparatorMenuItem.Size = new System.Drawing.Size(233, 22);
this.insertSeparatorToolStripMenuItem.Text = "Insert Separator"; this.InsertSeparatorMenuItem.Text = "Insert Separator";
// //
// toolStripSeparator3 // toolStripSeparator3
// //
this.toolStripSeparator3.Name = "toolStripSeparator3"; this.toolStripSeparator3.Name = "toolStripSeparator3";
this.toolStripSeparator3.Size = new System.Drawing.Size(230, 6); this.toolStripSeparator3.Size = new System.Drawing.Size(230, 6);
// //
// moveUpToolStripMenuItem // MoveUpMenuItem
// //
this.moveUpToolStripMenuItem.Enabled = false; this.MoveUpMenuItem.Enabled = false;
this.moveUpToolStripMenuItem.Image = global::BizHawk.MultiClient.Properties.Resources.MoveUp; this.MoveUpMenuItem.Image = global::BizHawk.MultiClient.Properties.Resources.MoveUp;
this.moveUpToolStripMenuItem.Name = "moveUpToolStripMenuItem"; this.MoveUpMenuItem.Name = "MoveUpMenuItem";
this.moveUpToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.U))); this.MoveUpMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.U)));
this.moveUpToolStripMenuItem.Size = new System.Drawing.Size(233, 22); this.MoveUpMenuItem.Size = new System.Drawing.Size(233, 22);
this.moveUpToolStripMenuItem.Text = "Move &Up"; this.MoveUpMenuItem.Text = "Move &Up";
// //
// moveDownToolStripMenuItem // MoveDownMenuItem
// //
this.moveDownToolStripMenuItem.Enabled = false; this.MoveDownMenuItem.Enabled = false;
this.moveDownToolStripMenuItem.Image = global::BizHawk.MultiClient.Properties.Resources.MoveDown; this.MoveDownMenuItem.Image = global::BizHawk.MultiClient.Properties.Resources.MoveDown;
this.moveDownToolStripMenuItem.Name = "moveDownToolStripMenuItem"; this.MoveDownMenuItem.Name = "MoveDownMenuItem";
this.moveDownToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.D))); this.MoveDownMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.D)));
this.moveDownToolStripMenuItem.Size = new System.Drawing.Size(233, 22); this.MoveDownMenuItem.Size = new System.Drawing.Size(233, 22);
this.moveDownToolStripMenuItem.Text = "Move &Down"; this.MoveDownMenuItem.Text = "Move &Down";
// //
// selectAllToolStripMenuItem // SelectAllMenuItem
// //
this.selectAllToolStripMenuItem.Enabled = false; this.SelectAllMenuItem.Enabled = false;
this.selectAllToolStripMenuItem.Name = "selectAllToolStripMenuItem"; this.SelectAllMenuItem.Name = "SelectAllMenuItem";
this.selectAllToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.A))); this.SelectAllMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.A)));
this.selectAllToolStripMenuItem.Size = new System.Drawing.Size(233, 22); this.SelectAllMenuItem.Size = new System.Drawing.Size(233, 22);
this.selectAllToolStripMenuItem.Text = "Select &All"; this.SelectAllMenuItem.Text = "Select &All";
// //
// toolStripSeparator6 // toolStripSeparator6
// //
this.toolStripSeparator6.Name = "toolStripSeparator6"; this.toolStripSeparator6.Name = "toolStripSeparator6";
this.toolStripSeparator6.Size = new System.Drawing.Size(230, 6); this.toolStripSeparator6.Size = new System.Drawing.Size(230, 6);
// //
// disableAllCheatsToolStripMenuItem // DisableAllCheatsMenuItem
// //
this.disableAllCheatsToolStripMenuItem.Enabled = false; this.DisableAllCheatsMenuItem.Enabled = false;
this.disableAllCheatsToolStripMenuItem.Image = global::BizHawk.MultiClient.Properties.Resources.Stop; this.DisableAllCheatsMenuItem.Image = global::BizHawk.MultiClient.Properties.Resources.Stop;
this.disableAllCheatsToolStripMenuItem.Name = "disableAllCheatsToolStripMenuItem"; this.DisableAllCheatsMenuItem.Name = "DisableAllCheatsMenuItem";
this.disableAllCheatsToolStripMenuItem.Size = new System.Drawing.Size(233, 22); this.DisableAllCheatsMenuItem.Size = new System.Drawing.Size(233, 22);
this.disableAllCheatsToolStripMenuItem.Text = "Disable all Cheats"; this.DisableAllCheatsMenuItem.Text = "Disable all Cheats";
// //
// toolStripSeparator7 // toolStripSeparator7
// //
this.toolStripSeparator7.Name = "toolStripSeparator7"; this.toolStripSeparator7.Name = "toolStripSeparator7";
this.toolStripSeparator7.Size = new System.Drawing.Size(230, 6); this.toolStripSeparator7.Size = new System.Drawing.Size(230, 6);
// //
// openGameGenieEncoderDecoderToolStripMenuItem // OpenGameGenieEncoderDecoderMenuItem
// //
this.openGameGenieEncoderDecoderToolStripMenuItem.Enabled = false; this.OpenGameGenieEncoderDecoderMenuItem.Enabled = false;
this.openGameGenieEncoderDecoderToolStripMenuItem.Name = "openGameGenieEncoderDecoderToolStripMenuItem"; this.OpenGameGenieEncoderDecoderMenuItem.Name = "OpenGameGenieEncoderDecoderMenuItem";
this.openGameGenieEncoderDecoderToolStripMenuItem.Size = new System.Drawing.Size(233, 22); this.OpenGameGenieEncoderDecoderMenuItem.Size = new System.Drawing.Size(233, 22);
this.openGameGenieEncoderDecoderToolStripMenuItem.Text = "Game Genie Encoder/Decoder"; this.OpenGameGenieEncoderDecoderMenuItem.Text = "Game Genie Encoder/Decoder";
// //
// OptionsSubMenu // OptionsSubMenu
// //
this.OptionsSubMenu.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { this.OptionsSubMenu.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.LoadCheatFileByGameToolStripMenuItem, this.LoadCheatFileByGameMenuItem,
this.saveCheatsOnCloseToolStripMenuItem, this.SaveCheatsOnCloseMenuItem,
this.CheatsOnOffLoadToolStripMenuItem, this.CheatsOnOffLoadMenuItem,
this.showValuesAsHexToolStripMenuItem, this.ShowValuesAsHexMenuItem,
this.autoloadDialogToolStripMenuItem, this.AutoloadDialogMenuItem,
this.saveWindowPositionToolStripMenuItem, this.SaveWindowPositionMenuItem,
this.toolStripSeparator5, this.toolStripSeparator5,
this.restoreWindowSizeToolStripMenuItem}); this.RestoreWindowSizeMenuItem});
this.OptionsSubMenu.Name = "OptionsSubMenu"; this.OptionsSubMenu.Name = "OptionsSubMenu";
this.OptionsSubMenu.Size = new System.Drawing.Size(61, 20); this.OptionsSubMenu.Size = new System.Drawing.Size(61, 20);
this.OptionsSubMenu.Text = "&Options"; this.OptionsSubMenu.Text = "&Options";
this.OptionsSubMenu.DropDownOpened += new System.EventHandler(this.OptionsSubMenu_DropDownOpened);
// //
// LoadCheatFileByGameToolStripMenuItem // LoadCheatFileByGameMenuItem
// //
this.LoadCheatFileByGameToolStripMenuItem.Enabled = false; this.LoadCheatFileByGameMenuItem.Enabled = false;
this.LoadCheatFileByGameToolStripMenuItem.Name = "LoadCheatFileByGameToolStripMenuItem"; this.LoadCheatFileByGameMenuItem.Name = "LoadCheatFileByGameMenuItem";
this.LoadCheatFileByGameToolStripMenuItem.Size = new System.Drawing.Size(205, 22); this.LoadCheatFileByGameMenuItem.Size = new System.Drawing.Size(205, 22);
this.LoadCheatFileByGameToolStripMenuItem.Text = "Load Cheat File by Game"; this.LoadCheatFileByGameMenuItem.Text = "Load Cheat File by Game";
// //
// saveCheatsOnCloseToolStripMenuItem // SaveCheatsOnCloseMenuItem
// //
this.saveCheatsOnCloseToolStripMenuItem.Enabled = false; this.SaveCheatsOnCloseMenuItem.Enabled = false;
this.saveCheatsOnCloseToolStripMenuItem.Name = "saveCheatsOnCloseToolStripMenuItem"; this.SaveCheatsOnCloseMenuItem.Name = "SaveCheatsOnCloseMenuItem";
this.saveCheatsOnCloseToolStripMenuItem.Size = new System.Drawing.Size(205, 22); this.SaveCheatsOnCloseMenuItem.Size = new System.Drawing.Size(205, 22);
this.saveCheatsOnCloseToolStripMenuItem.Text = "Save Cheats on Close"; this.SaveCheatsOnCloseMenuItem.Text = "Save Cheats on Close";
// //
// CheatsOnOffLoadToolStripMenuItem // CheatsOnOffLoadMenuItem
// //
this.CheatsOnOffLoadToolStripMenuItem.Enabled = false; this.CheatsOnOffLoadMenuItem.Enabled = false;
this.CheatsOnOffLoadToolStripMenuItem.Name = "CheatsOnOffLoadToolStripMenuItem"; this.CheatsOnOffLoadMenuItem.Name = "CheatsOnOffLoadMenuItem";
this.CheatsOnOffLoadToolStripMenuItem.Size = new System.Drawing.Size(205, 22); this.CheatsOnOffLoadMenuItem.Size = new System.Drawing.Size(205, 22);
this.CheatsOnOffLoadToolStripMenuItem.Text = "Disable Cheats on Load"; this.CheatsOnOffLoadMenuItem.Text = "Disable Cheats on Load";
// //
// showValuesAsHexToolStripMenuItem // ShowValuesAsHexMenuItem
// //
this.showValuesAsHexToolStripMenuItem.Enabled = false; this.ShowValuesAsHexMenuItem.Enabled = false;
this.showValuesAsHexToolStripMenuItem.Name = "showValuesAsHexToolStripMenuItem"; this.ShowValuesAsHexMenuItem.Name = "ShowValuesAsHexMenuItem";
this.showValuesAsHexToolStripMenuItem.Size = new System.Drawing.Size(205, 22); this.ShowValuesAsHexMenuItem.Size = new System.Drawing.Size(205, 22);
this.showValuesAsHexToolStripMenuItem.Text = "Show Values as Hex"; this.ShowValuesAsHexMenuItem.Text = "Show Values as Hex";
// //
// autoloadDialogToolStripMenuItem // AutoloadDialogMenuItem
// //
this.autoloadDialogToolStripMenuItem.Enabled = false; this.AutoloadDialogMenuItem.Enabled = false;
this.autoloadDialogToolStripMenuItem.Name = "autoloadDialogToolStripMenuItem"; this.AutoloadDialogMenuItem.Name = "AutoloadDialogMenuItem";
this.autoloadDialogToolStripMenuItem.Size = new System.Drawing.Size(205, 22); this.AutoloadDialogMenuItem.Size = new System.Drawing.Size(205, 22);
this.autoloadDialogToolStripMenuItem.Text = "Auto-load Dialog"; this.AutoloadDialogMenuItem.Text = "Auto-load Dialog";
// //
// saveWindowPositionToolStripMenuItem // SaveWindowPositionMenuItem
// //
this.saveWindowPositionToolStripMenuItem.Enabled = false; this.SaveWindowPositionMenuItem.Enabled = false;
this.saveWindowPositionToolStripMenuItem.Name = "saveWindowPositionToolStripMenuItem"; this.SaveWindowPositionMenuItem.Name = "SaveWindowPositionMenuItem";
this.saveWindowPositionToolStripMenuItem.Size = new System.Drawing.Size(205, 22); this.SaveWindowPositionMenuItem.Size = new System.Drawing.Size(205, 22);
this.saveWindowPositionToolStripMenuItem.Text = "Save Window Position"; this.SaveWindowPositionMenuItem.Text = "Save Window Position";
// //
// toolStripSeparator5 // toolStripSeparator5
// //
this.toolStripSeparator5.Name = "toolStripSeparator5"; this.toolStripSeparator5.Name = "toolStripSeparator5";
this.toolStripSeparator5.Size = new System.Drawing.Size(202, 6); this.toolStripSeparator5.Size = new System.Drawing.Size(202, 6);
// //
// restoreWindowSizeToolStripMenuItem // RestoreWindowSizeMenuItem
// //
this.restoreWindowSizeToolStripMenuItem.Enabled = false; this.RestoreWindowSizeMenuItem.Enabled = false;
this.restoreWindowSizeToolStripMenuItem.Name = "restoreWindowSizeToolStripMenuItem"; this.RestoreWindowSizeMenuItem.Name = "RestoreWindowSizeMenuItem";
this.restoreWindowSizeToolStripMenuItem.Size = new System.Drawing.Size(205, 22); this.RestoreWindowSizeMenuItem.Size = new System.Drawing.Size(205, 22);
this.restoreWindowSizeToolStripMenuItem.Text = "Restore Default Settings"; this.RestoreWindowSizeMenuItem.Text = "Restore Default Settings";
//
// ColumnsSubMenu
//
this.ColumnsSubMenu.Name = "ColumnsSubMenu";
this.ColumnsSubMenu.Size = new System.Drawing.Size(67, 20);
this.ColumnsSubMenu.Text = "&Columns";
this.ColumnsSubMenu.DropDownOpened += new System.EventHandler(this.ColumnsSubMenu_DropDownOpened);
// //
// toolStrip1 // toolStrip1
// //
@ -545,27 +556,32 @@
this.toolStripButtonLoadGameGenie.Text = "Game Genie"; this.toolStripButtonLoadGameGenie.Text = "Game Genie";
this.toolStripButtonLoadGameGenie.ToolTipText = "Open the Game Genie Encoder/Decoder"; this.toolStripButtonLoadGameGenie.ToolTipText = "Open the Game Genie Encoder/Decoder";
// //
// NumCheatsLabel // TotalLabel
// //
this.NumCheatsLabel.AutoSize = true; this.TotalLabel.AutoSize = true;
this.NumCheatsLabel.Location = new System.Drawing.Point(9, 52); this.TotalLabel.Location = new System.Drawing.Point(9, 52);
this.NumCheatsLabel.Name = "NumCheatsLabel"; this.TotalLabel.Name = "TotalLabel";
this.NumCheatsLabel.Size = new System.Drawing.Size(49, 13); this.TotalLabel.Size = new System.Drawing.Size(49, 13);
this.NumCheatsLabel.TabIndex = 6; this.TotalLabel.TabIndex = 6;
this.NumCheatsLabel.Text = "0 Cheats"; this.TotalLabel.Text = "0 Cheats";
// //
// ColumnsSubMenu // MessageLabel
// //
this.ColumnsSubMenu.Name = "ColumnsSubMenu"; this.MessageLabel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.ColumnsSubMenu.Size = new System.Drawing.Size(67, 20); this.MessageLabel.AutoSize = true;
this.ColumnsSubMenu.Text = "&Columns"; this.MessageLabel.Location = new System.Drawing.Point(13, 312);
this.MessageLabel.Name = "MessageLabel";
this.MessageLabel.Size = new System.Drawing.Size(31, 13);
this.MessageLabel.TabIndex = 7;
this.MessageLabel.Text = " ";
// //
// NewCheatForm // NewCheatForm
// //
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(587, 328); this.ClientSize = new System.Drawing.Size(587, 328);
this.Controls.Add(this.NumCheatsLabel); this.Controls.Add(this.MessageLabel);
this.Controls.Add(this.TotalLabel);
this.Controls.Add(this.toolStrip1); this.Controls.Add(this.toolStrip1);
this.Controls.Add(this.CheatsMenu); this.Controls.Add(this.CheatsMenu);
this.Controls.Add(this.CheatListView); this.Controls.Add(this.CheatListView);
@ -594,37 +610,37 @@
private System.Windows.Forms.ColumnHeader Domain; private System.Windows.Forms.ColumnHeader Domain;
private MenuStripEx CheatsMenu; private MenuStripEx CheatsMenu;
private System.Windows.Forms.ToolStripMenuItem FileSubMenu; private System.Windows.Forms.ToolStripMenuItem FileSubMenu;
private System.Windows.Forms.ToolStripMenuItem newToolStripMenuItem; private System.Windows.Forms.ToolStripMenuItem NewMenuItem;
private System.Windows.Forms.ToolStripMenuItem openToolStripMenuItem; private System.Windows.Forms.ToolStripMenuItem OpenMenuItem;
private System.Windows.Forms.ToolStripMenuItem saveToolStripMenuItem; private System.Windows.Forms.ToolStripMenuItem SaveMenuItem;
private System.Windows.Forms.ToolStripMenuItem saveAsToolStripMenuItem; private System.Windows.Forms.ToolStripMenuItem SaveAsMenuItem;
private System.Windows.Forms.ToolStripMenuItem appendFileToolStripMenuItem; private System.Windows.Forms.ToolStripMenuItem AppendMenuItem;
private System.Windows.Forms.ToolStripMenuItem recentToolStripMenuItem; private System.Windows.Forms.ToolStripMenuItem RecentSubMenu;
private System.Windows.Forms.ToolStripSeparator toolStripSeparator4; private System.Windows.Forms.ToolStripSeparator toolStripSeparator4;
private System.Windows.Forms.ToolStripSeparator toolStripSeparator1; private System.Windows.Forms.ToolStripSeparator toolStripSeparator1;
private System.Windows.Forms.ToolStripMenuItem exitToolStripMenuItem; private System.Windows.Forms.ToolStripMenuItem ExitMenuItem;
private System.Windows.Forms.ToolStripMenuItem CheatsSubMenu; private System.Windows.Forms.ToolStripMenuItem CheatsSubMenu;
private System.Windows.Forms.ToolStripMenuItem addCheatToolStripMenuItem; private System.Windows.Forms.ToolStripMenuItem AddCheatMenuItem;
private System.Windows.Forms.ToolStripMenuItem removeCheatToolStripMenuItem; private System.Windows.Forms.ToolStripMenuItem RemoveCheatMenuItem;
private System.Windows.Forms.ToolStripMenuItem duplicateToolStripMenuItem; private System.Windows.Forms.ToolStripMenuItem DuplicateMenuItem;
private System.Windows.Forms.ToolStripMenuItem insertSeparatorToolStripMenuItem; private System.Windows.Forms.ToolStripMenuItem InsertSeparatorMenuItem;
private System.Windows.Forms.ToolStripSeparator toolStripSeparator3; private System.Windows.Forms.ToolStripSeparator toolStripSeparator3;
private System.Windows.Forms.ToolStripMenuItem moveUpToolStripMenuItem; private System.Windows.Forms.ToolStripMenuItem MoveUpMenuItem;
private System.Windows.Forms.ToolStripMenuItem moveDownToolStripMenuItem; private System.Windows.Forms.ToolStripMenuItem MoveDownMenuItem;
private System.Windows.Forms.ToolStripMenuItem selectAllToolStripMenuItem; private System.Windows.Forms.ToolStripMenuItem SelectAllMenuItem;
private System.Windows.Forms.ToolStripSeparator toolStripSeparator6; private System.Windows.Forms.ToolStripSeparator toolStripSeparator6;
private System.Windows.Forms.ToolStripMenuItem disableAllCheatsToolStripMenuItem; private System.Windows.Forms.ToolStripMenuItem DisableAllCheatsMenuItem;
private System.Windows.Forms.ToolStripSeparator toolStripSeparator7; private System.Windows.Forms.ToolStripSeparator toolStripSeparator7;
private System.Windows.Forms.ToolStripMenuItem openGameGenieEncoderDecoderToolStripMenuItem; private System.Windows.Forms.ToolStripMenuItem OpenGameGenieEncoderDecoderMenuItem;
private System.Windows.Forms.ToolStripMenuItem OptionsSubMenu; private System.Windows.Forms.ToolStripMenuItem OptionsSubMenu;
private System.Windows.Forms.ToolStripMenuItem LoadCheatFileByGameToolStripMenuItem; private System.Windows.Forms.ToolStripMenuItem LoadCheatFileByGameMenuItem;
private System.Windows.Forms.ToolStripMenuItem saveCheatsOnCloseToolStripMenuItem; private System.Windows.Forms.ToolStripMenuItem SaveCheatsOnCloseMenuItem;
private System.Windows.Forms.ToolStripMenuItem CheatsOnOffLoadToolStripMenuItem; private System.Windows.Forms.ToolStripMenuItem CheatsOnOffLoadMenuItem;
private System.Windows.Forms.ToolStripMenuItem showValuesAsHexToolStripMenuItem; private System.Windows.Forms.ToolStripMenuItem ShowValuesAsHexMenuItem;
private System.Windows.Forms.ToolStripMenuItem autoloadDialogToolStripMenuItem; private System.Windows.Forms.ToolStripMenuItem AutoloadDialogMenuItem;
private System.Windows.Forms.ToolStripMenuItem saveWindowPositionToolStripMenuItem; private System.Windows.Forms.ToolStripMenuItem SaveWindowPositionMenuItem;
private System.Windows.Forms.ToolStripSeparator toolStripSeparator5; private System.Windows.Forms.ToolStripSeparator toolStripSeparator5;
private System.Windows.Forms.ToolStripMenuItem restoreWindowSizeToolStripMenuItem; private System.Windows.Forms.ToolStripMenuItem RestoreWindowSizeMenuItem;
private ToolStripEx toolStrip1; private ToolStripEx toolStrip1;
private System.Windows.Forms.ToolStripButton newToolStripButton; private System.Windows.Forms.ToolStripButton newToolStripButton;
private System.Windows.Forms.ToolStripButton openToolStripButton; private System.Windows.Forms.ToolStripButton openToolStripButton;
@ -637,7 +653,8 @@
private System.Windows.Forms.ToolStripButton toolStripButtonMoveUp; private System.Windows.Forms.ToolStripButton toolStripButtonMoveUp;
private System.Windows.Forms.ToolStripButton toolStripButtonMoveDown; private System.Windows.Forms.ToolStripButton toolStripButtonMoveDown;
private System.Windows.Forms.ToolStripButton toolStripButtonLoadGameGenie; private System.Windows.Forms.ToolStripButton toolStripButtonLoadGameGenie;
private System.Windows.Forms.Label NumCheatsLabel; private System.Windows.Forms.Label TotalLabel;
private System.Windows.Forms.ToolStripMenuItem ColumnsSubMenu; private System.Windows.Forms.ToolStripMenuItem ColumnsSubMenu;
private System.Windows.Forms.Label MessageLabel;
} }
} }

View File

@ -3,12 +3,13 @@ using System.Collections.Generic;
using System.ComponentModel; using System.ComponentModel;
using System.Data; using System.Data;
using System.Drawing; using System.Drawing;
using System.IO;
using System.Linq; using System.Linq;
using System.Text; using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
using System.Windows.Forms; using System.Windows.Forms;
namespace BizHawk.MultiClient.tools.Cheats namespace BizHawk.MultiClient
{ {
public partial class NewCheatForm : Form public partial class NewCheatForm : Form
{ {
@ -17,9 +18,121 @@ namespace BizHawk.MultiClient.tools.Cheats
InitializeComponent(); InitializeComponent();
} }
private void UpdateListView()
{
CheatListView.ItemCount = Global.CheatList2.Count;
TotalLabel.Text = Global.CheatList2.CheatCount.ToString()
+ (Global.CheatList2.CheatCount == 1 ? " cheat" : " cheats")
+ Global.CheatList2.ActiveCheatCount.ToString() + " active";
}
public void LoadFileFromRecent(string path)
{
bool ask_result = true;
if (Global.CheatList2.Changes)
{
ask_result = AskSave();
}
if (ask_result)
{
bool load_result = Global.CheatList2.Load(path, append: false);
if (!load_result)
{
Global.Config.RecentWatches.HandleLoadError(path);
}
else
{
Global.Config.RecentWatches.Add(path);
UpdateListView();
MessageLabel.Text = Path.GetFileName(path) + " loaded";
}
}
}
public bool AskSave()
{
if (Global.Config.SupressAskSave) //User has elected to not be nagged
{
return true;
}
if (Global.CheatList2.Changes)
{
Global.Sound.StopSound();
DialogResult result = MessageBox.Show("Save Changes?", "Cheats", MessageBoxButtons.YesNoCancel, MessageBoxIcon.Question, MessageBoxDefaultButton.Button3);
Global.Sound.StartSound();
if (result == DialogResult.Yes)
{
Global.CheatList2.Save();
}
else if (result == DialogResult.No)
{
return true;
}
else if (result == DialogResult.Cancel)
{
return false;
}
}
return true;
}
private void NewCheatForm_Load(object sender, EventArgs e) private void NewCheatForm_Load(object sender, EventArgs e)
{ {
}
#region Events
#region File
private void FileSubMenu_DropDownOpened(object sender, EventArgs e)
{
SaveMenuItem.Enabled = Global.CheatList2.Changes;
}
private void RecentSubMenu_DropDownOpened(object sender, EventArgs e)
{
RecentSubMenu.DropDownItems.Clear();
RecentSubMenu.DropDownItems.AddRange(Global.Config.RecentCheats.GenerateRecentMenu(LoadFileFromRecent));
}
private void ExitMenuItem_Click(object sender, EventArgs e)
{
Close();
}
#endregion
#region Cheats
private void CheatsSubMenu_DropDownOpened(object sender, EventArgs e)
{
} }
#endregion
#region Options
private void OptionsSubMenu_DropDownOpened(object sender, EventArgs e)
{
}
#endregion
#region Columns
private void ColumnsSubMenu_DropDownOpened(object sender, EventArgs e)
{
}
#endregion
#endregion
} }
} }