Toggling Lua Scripts By Double Clicking Now Works

This commit is contained in:
Rolanmen1 2012-03-13 22:39:07 +00:00
parent ff21856389
commit a8df8116e6
3 changed files with 938 additions and 931 deletions

View File

@ -112,6 +112,7 @@
this.LuaListView.TabIndex = 0;
this.LuaListView.UseCompatibleStateImageBehavior = false;
this.LuaListView.View = System.Windows.Forms.View.Details;
this.LuaListView.ItemActivate += new System.EventHandler(this.LuaListView_ItemActivate);
this.LuaListView.SelectedIndexChanged += new System.EventHandler(this.LuaListView_SelectedIndexChanged);
this.LuaListView.DoubleClick += new System.EventHandler(this.LuaListView_DoubleClick);
this.LuaListView.KeyDown += new System.Windows.Forms.KeyEventHandler(this.LuaListView_KeyDown);
@ -136,13 +137,13 @@
this.toolStripSeparator4,
this.stopAllScriptsToolStripMenuItem});
this.contextMenuStrip1.Name = "contextMenuStrip1";
this.contextMenuStrip1.Size = new System.Drawing.Size(176, 120);
this.contextMenuStrip1.Size = new System.Drawing.Size(175, 120);
//
// toggleScriptToolStripMenuItem
//
this.toggleScriptToolStripMenuItem.Image = global::BizHawk.MultiClient.Properties.Resources.Refresh1;
this.toggleScriptToolStripMenuItem.Name = "toggleScriptToolStripMenuItem";
this.toggleScriptToolStripMenuItem.Size = new System.Drawing.Size(175, 22);
this.toggleScriptToolStripMenuItem.Size = new System.Drawing.Size(174, 22);
this.toggleScriptToolStripMenuItem.Text = "&Toggle";
this.toggleScriptToolStripMenuItem.Click += new System.EventHandler(this.toggleScriptToolStripMenuItem_Click);
//
@ -150,7 +151,7 @@
//
this.editScriptToolStripMenuItem.Image = global::BizHawk.MultiClient.Properties.Resources.CutHS;
this.editScriptToolStripMenuItem.Name = "editScriptToolStripMenuItem";
this.editScriptToolStripMenuItem.Size = new System.Drawing.Size(175, 22);
this.editScriptToolStripMenuItem.Size = new System.Drawing.Size(174, 22);
this.editScriptToolStripMenuItem.Text = "&Edit";
this.editScriptToolStripMenuItem.Click += new System.EventHandler(this.editScriptToolStripMenuItem_Click);
//
@ -158,7 +159,7 @@
//
this.removeScriptToolStripMenuItem.Image = global::BizHawk.MultiClient.Properties.Resources.Close;
this.removeScriptToolStripMenuItem.Name = "removeScriptToolStripMenuItem";
this.removeScriptToolStripMenuItem.Size = new System.Drawing.Size(175, 22);
this.removeScriptToolStripMenuItem.Size = new System.Drawing.Size(174, 22);
this.removeScriptToolStripMenuItem.Text = "&Remove";
this.removeScriptToolStripMenuItem.Click += new System.EventHandler(this.removeScriptToolStripMenuItem_Click);
//
@ -166,20 +167,20 @@
//
this.insertSeperatorToolStripMenuItem1.Image = global::BizHawk.MultiClient.Properties.Resources.InsertSeparator;
this.insertSeperatorToolStripMenuItem1.Name = "insertSeperatorToolStripMenuItem1";
this.insertSeperatorToolStripMenuItem1.Size = new System.Drawing.Size(175, 22);
this.insertSeperatorToolStripMenuItem1.Size = new System.Drawing.Size(174, 22);
this.insertSeperatorToolStripMenuItem1.Text = "Insert Seperator";
this.insertSeperatorToolStripMenuItem1.Click += new System.EventHandler(this.insertSeperatorToolStripMenuItem1_Click);
//
// toolStripSeparator4
//
this.toolStripSeparator4.Name = "toolStripSeparator4";
this.toolStripSeparator4.Size = new System.Drawing.Size(172, 6);
this.toolStripSeparator4.Size = new System.Drawing.Size(171, 6);
//
// stopAllScriptsToolStripMenuItem
//
this.stopAllScriptsToolStripMenuItem.Image = global::BizHawk.MultiClient.Properties.Resources.Stop;
this.stopAllScriptsToolStripMenuItem.Name = "stopAllScriptsToolStripMenuItem";
this.stopAllScriptsToolStripMenuItem.Size = new System.Drawing.Size(175, 22);
this.stopAllScriptsToolStripMenuItem.Size = new System.Drawing.Size(174, 22);
this.stopAllScriptsToolStripMenuItem.Text = "Turn Off All Scripts";
this.stopAllScriptsToolStripMenuItem.Click += new System.EventHandler(this.stopAllScriptsToolStripMenuItem_Click);
//
@ -296,18 +297,18 @@
// noneToolStripMenuItem
//
this.noneToolStripMenuItem.Name = "noneToolStripMenuItem";
this.noneToolStripMenuItem.Size = new System.Drawing.Size(103, 22);
this.noneToolStripMenuItem.Size = new System.Drawing.Size(152, 22);
this.noneToolStripMenuItem.Text = "None";
//
// toolStripSeparator3
//
this.toolStripSeparator3.Name = "toolStripSeparator3";
this.toolStripSeparator3.Size = new System.Drawing.Size(100, 6);
this.toolStripSeparator3.Size = new System.Drawing.Size(149, 6);
//
// clearToolStripMenuItem
//
this.clearToolStripMenuItem.Name = "clearToolStripMenuItem";
this.clearToolStripMenuItem.Size = new System.Drawing.Size(103, 22);
this.clearToolStripMenuItem.Size = new System.Drawing.Size(152, 22);
this.clearToolStripMenuItem.Text = "Clear";
//
// toolStripSeparator1

View File

@ -261,7 +261,8 @@ namespace BizHawk.MultiClient
private void LuaListView_DoubleClick(object sender, EventArgs e)
{
Toggle();
MessageBox.Show("");
//Toggle();
}
private void LuaListView_SelectedIndexChanged(object sender, EventArgs e)
@ -686,5 +687,10 @@ namespace BizHawk.MultiClient
{
OpenLuaFile();
}
private void LuaListView_ItemActivate(object sender, EventArgs e)
{
Toggle();
}
}
}

View File

@ -100,14 +100,14 @@
this.toolStripSeparator2,
this.exitToolStripMenuItem});
this.fileToolStripMenuItem.Name = "fileToolStripMenuItem";
this.fileToolStripMenuItem.Size = new System.Drawing.Size(35, 20);
this.fileToolStripMenuItem.Size = new System.Drawing.Size(37, 20);
this.fileToolStripMenuItem.Text = "&File";
//
// newProjectToolStripMenuItem
//
this.newProjectToolStripMenuItem.Name = "newProjectToolStripMenuItem";
this.newProjectToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.N)));
this.newProjectToolStripMenuItem.Size = new System.Drawing.Size(188, 22);
this.newProjectToolStripMenuItem.Size = new System.Drawing.Size(186, 22);
this.newProjectToolStripMenuItem.Text = "New Project";
this.newProjectToolStripMenuItem.Click += new System.EventHandler(this.newProjectToolStripMenuItem_Click);
//
@ -115,21 +115,21 @@
//
this.openProjectToolStripMenuItem.Name = "openProjectToolStripMenuItem";
this.openProjectToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.O)));
this.openProjectToolStripMenuItem.Size = new System.Drawing.Size(188, 22);
this.openProjectToolStripMenuItem.Size = new System.Drawing.Size(186, 22);
this.openProjectToolStripMenuItem.Text = "&Open Project";
this.openProjectToolStripMenuItem.Click += new System.EventHandler(this.openProjectToolStripMenuItem_Click);
//
// saveProjectToolStripMenuItem
//
this.saveProjectToolStripMenuItem.Name = "saveProjectToolStripMenuItem";
this.saveProjectToolStripMenuItem.Size = new System.Drawing.Size(188, 22);
this.saveProjectToolStripMenuItem.Size = new System.Drawing.Size(186, 22);
this.saveProjectToolStripMenuItem.Text = "&Save Project";
this.saveProjectToolStripMenuItem.Click += new System.EventHandler(this.saveProjectToolStripMenuItem_Click);
//
// saveProjectAsToolStripMenuItem
//
this.saveProjectAsToolStripMenuItem.Name = "saveProjectAsToolStripMenuItem";
this.saveProjectAsToolStripMenuItem.Size = new System.Drawing.Size(188, 22);
this.saveProjectAsToolStripMenuItem.Size = new System.Drawing.Size(186, 22);
this.saveProjectAsToolStripMenuItem.Text = "Save Project As";
this.saveProjectAsToolStripMenuItem.Click += new System.EventHandler(this.saveProjectAsToolStripMenuItem_Click);
//
@ -141,47 +141,47 @@
this.clearToolStripMenuItem});
this.recentToolStripMenuItem.Image = global::BizHawk.MultiClient.Properties.Resources.Recent;
this.recentToolStripMenuItem.Name = "recentToolStripMenuItem";
this.recentToolStripMenuItem.Size = new System.Drawing.Size(188, 22);
this.recentToolStripMenuItem.Size = new System.Drawing.Size(186, 22);
this.recentToolStripMenuItem.Text = "Recent";
//
// nToolStripMenuItem
//
this.nToolStripMenuItem.Name = "nToolStripMenuItem";
this.nToolStripMenuItem.Size = new System.Drawing.Size(110, 22);
this.nToolStripMenuItem.Size = new System.Drawing.Size(103, 22);
this.nToolStripMenuItem.Text = "None";
//
// toolStripSeparator3
//
this.toolStripSeparator3.Name = "toolStripSeparator3";
this.toolStripSeparator3.Size = new System.Drawing.Size(107, 6);
this.toolStripSeparator3.Size = new System.Drawing.Size(100, 6);
//
// clearToolStripMenuItem
//
this.clearToolStripMenuItem.Name = "clearToolStripMenuItem";
this.clearToolStripMenuItem.Size = new System.Drawing.Size(110, 22);
this.clearToolStripMenuItem.Size = new System.Drawing.Size(103, 22);
this.clearToolStripMenuItem.Text = "Clear";
//
// toolStripSeparator1
//
this.toolStripSeparator1.Name = "toolStripSeparator1";
this.toolStripSeparator1.Size = new System.Drawing.Size(185, 6);
this.toolStripSeparator1.Size = new System.Drawing.Size(183, 6);
//
// importTASFileToolStripMenuItem
//
this.importTASFileToolStripMenuItem.Name = "importTASFileToolStripMenuItem";
this.importTASFileToolStripMenuItem.Size = new System.Drawing.Size(188, 22);
this.importTASFileToolStripMenuItem.Size = new System.Drawing.Size(186, 22);
this.importTASFileToolStripMenuItem.Text = "Import TAS file";
//
// toolStripSeparator2
//
this.toolStripSeparator2.Name = "toolStripSeparator2";
this.toolStripSeparator2.Size = new System.Drawing.Size(185, 6);
this.toolStripSeparator2.Size = new System.Drawing.Size(183, 6);
//
// exitToolStripMenuItem
//
this.exitToolStripMenuItem.Name = "exitToolStripMenuItem";
this.exitToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Alt | System.Windows.Forms.Keys.F4)));
this.exitToolStripMenuItem.Size = new System.Drawing.Size(188, 22);
this.exitToolStripMenuItem.Size = new System.Drawing.Size(186, 22);
this.exitToolStripMenuItem.Text = "E&xit";
this.exitToolStripMenuItem.Click += new System.EventHandler(this.exitToolStripMenuItem_Click);
//
@ -190,7 +190,7 @@
this.editToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.insertFrameToolStripMenuItem});
this.editToolStripMenuItem.Name = "editToolStripMenuItem";
this.editToolStripMenuItem.Size = new System.Drawing.Size(37, 20);
this.editToolStripMenuItem.Size = new System.Drawing.Size(39, 20);
this.editToolStripMenuItem.Text = "&Edit";
this.editToolStripMenuItem.DropDownOpened += new System.EventHandler(this.editToolStripMenuItem_DropDownOpened);
//
@ -198,7 +198,7 @@
//
this.insertFrameToolStripMenuItem.Name = "insertFrameToolStripMenuItem";
this.insertFrameToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.A)));
this.insertFrameToolStripMenuItem.Size = new System.Drawing.Size(186, 22);
this.insertFrameToolStripMenuItem.Size = new System.Drawing.Size(181, 22);
this.insertFrameToolStripMenuItem.Text = "Insert Frame";
this.insertFrameToolStripMenuItem.Click += new System.EventHandler(this.insertFrameToolStripMenuItem_Click);
//
@ -211,40 +211,40 @@
this.toolStripSeparator4,
this.restoreWindowToolStripMenuItem});
this.settingsToolStripMenuItem.Name = "settingsToolStripMenuItem";
this.settingsToolStripMenuItem.Size = new System.Drawing.Size(58, 20);
this.settingsToolStripMenuItem.Size = new System.Drawing.Size(61, 20);
this.settingsToolStripMenuItem.Text = "&Settings";
this.settingsToolStripMenuItem.DropDownOpened += new System.EventHandler(this.settingsToolStripMenuItem_DropDownOpened);
//
// saveWindowPositionToolStripMenuItem
//
this.saveWindowPositionToolStripMenuItem.Name = "saveWindowPositionToolStripMenuItem";
this.saveWindowPositionToolStripMenuItem.Size = new System.Drawing.Size(235, 22);
this.saveWindowPositionToolStripMenuItem.Size = new System.Drawing.Size(240, 22);
this.saveWindowPositionToolStripMenuItem.Text = "Save Window Position";
this.saveWindowPositionToolStripMenuItem.Click += new System.EventHandler(this.saveWindowPositionToolStripMenuItem_Click);
//
// autoloadToolStripMenuItem
//
this.autoloadToolStripMenuItem.Name = "autoloadToolStripMenuItem";
this.autoloadToolStripMenuItem.Size = new System.Drawing.Size(235, 22);
this.autoloadToolStripMenuItem.Size = new System.Drawing.Size(240, 22);
this.autoloadToolStripMenuItem.Text = "Autoload";
this.autoloadToolStripMenuItem.Click += new System.EventHandler(this.autoloadToolStripMenuItem_Click);
//
// updatePadsOnMovePlaybackToolStripMenuItem
//
this.updatePadsOnMovePlaybackToolStripMenuItem.Name = "updatePadsOnMovePlaybackToolStripMenuItem";
this.updatePadsOnMovePlaybackToolStripMenuItem.Size = new System.Drawing.Size(235, 22);
this.updatePadsOnMovePlaybackToolStripMenuItem.Size = new System.Drawing.Size(240, 22);
this.updatePadsOnMovePlaybackToolStripMenuItem.Text = "Update Pads on Move playback";
this.updatePadsOnMovePlaybackToolStripMenuItem.Click += new System.EventHandler(this.updatePadsOnMovePlaybackToolStripMenuItem_Click);
//
// toolStripSeparator4
//
this.toolStripSeparator4.Name = "toolStripSeparator4";
this.toolStripSeparator4.Size = new System.Drawing.Size(232, 6);
this.toolStripSeparator4.Size = new System.Drawing.Size(237, 6);
//
// restoreWindowToolStripMenuItem
//
this.restoreWindowToolStripMenuItem.Name = "restoreWindowToolStripMenuItem";
this.restoreWindowToolStripMenuItem.Size = new System.Drawing.Size(235, 22);
this.restoreWindowToolStripMenuItem.Size = new System.Drawing.Size(240, 22);
this.restoreWindowToolStripMenuItem.Text = "Restore Default Settings";
this.restoreWindowToolStripMenuItem.Click += new System.EventHandler(this.restoreWindowToolStripMenuItem_Click);
//
@ -262,7 +262,7 @@
this.StopButton});
this.toolStrip1.Location = new System.Drawing.Point(37, 27);
this.toolStrip1.Name = "toolStrip1";
this.toolStrip1.Size = new System.Drawing.Size(154, 25);
this.toolStrip1.Size = new System.Drawing.Size(156, 25);
this.toolStrip1.TabIndex = 0;
//
// RewindToBeginning
@ -358,23 +358,23 @@
this.toolStripSeparator5,
this.selectAllToolStripMenuItem});
this.contextMenuStrip1.Name = "contextMenuStrip1";
this.contextMenuStrip1.Size = new System.Drawing.Size(148, 54);
this.contextMenuStrip1.Size = new System.Drawing.Size(140, 54);
//
// insertFrameToolStripMenuItem1
//
this.insertFrameToolStripMenuItem1.Name = "insertFrameToolStripMenuItem1";
this.insertFrameToolStripMenuItem1.Size = new System.Drawing.Size(147, 22);
this.insertFrameToolStripMenuItem1.Size = new System.Drawing.Size(139, 22);
this.insertFrameToolStripMenuItem1.Text = "Insert Frame";
//
// toolStripSeparator5
//
this.toolStripSeparator5.Name = "toolStripSeparator5";
this.toolStripSeparator5.Size = new System.Drawing.Size(144, 6);
this.toolStripSeparator5.Size = new System.Drawing.Size(136, 6);
//
// selectAllToolStripMenuItem
//
this.selectAllToolStripMenuItem.Name = "selectAllToolStripMenuItem";
this.selectAllToolStripMenuItem.Size = new System.Drawing.Size(147, 22);
this.selectAllToolStripMenuItem.Size = new System.Drawing.Size(139, 22);
this.selectAllToolStripMenuItem.Text = "Select All";
//
// ControllerBox