LuaConsole: The Label that counts the scripts gets updated each time a change has been made to the ListView, also removed all calls of the said function.
This commit is contained in:
parent
58780191de
commit
8f22c9098b
|
@ -78,6 +78,8 @@ namespace BizHawk.MultiClient
|
||||||
else if (luaList[index].Enabled && luaList[index].Paused)
|
else if (luaList[index].Enabled && luaList[index].Paused)
|
||||||
color = Color.IndianRed;
|
color = Color.IndianRed;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
UpdateNumberOfScripts();
|
||||||
}
|
}
|
||||||
|
|
||||||
private void LuaListView_QueryItemText(int index, int column, out string text)
|
private void LuaListView_QueryItemText(int index, int column, out string text)
|
||||||
|
@ -118,7 +120,6 @@ namespace BizHawk.MultiClient
|
||||||
for (int x = 0; x < luaList.Count; x++)
|
for (int x = 0; x < luaList.Count; x++)
|
||||||
luaList[x].Enabled = false;
|
luaList[x].Enabled = false;
|
||||||
Changes(true);
|
Changes(true);
|
||||||
UpdateNumberOfScripts();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void Restart()
|
public void Restart()
|
||||||
|
@ -235,7 +236,6 @@ namespace BizHawk.MultiClient
|
||||||
{
|
{
|
||||||
LoadLuaFile(file.FullName);
|
LoadLuaFile(file.FullName);
|
||||||
DisplayLuaList();
|
DisplayLuaList();
|
||||||
UpdateNumberOfScripts();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -293,7 +293,6 @@ namespace BizHawk.MultiClient
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
LuaListView.Refresh();
|
LuaListView.Refresh();
|
||||||
UpdateNumberOfScripts();
|
|
||||||
Changes(true);
|
Changes(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -399,7 +398,6 @@ namespace BizHawk.MultiClient
|
||||||
StopAllScripts();
|
StopAllScripts();
|
||||||
luaList.Clear();
|
luaList.Clear();
|
||||||
DisplayLuaList();
|
DisplayLuaList();
|
||||||
UpdateNumberOfScripts();
|
|
||||||
currentSessionFile = "";
|
currentSessionFile = "";
|
||||||
Changes(false);
|
Changes(false);
|
||||||
}
|
}
|
||||||
|
@ -439,7 +437,6 @@ namespace BizHawk.MultiClient
|
||||||
indexes.Clear();
|
indexes.Clear();
|
||||||
DisplayLuaList();
|
DisplayLuaList();
|
||||||
}
|
}
|
||||||
UpdateNumberOfScripts();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void removeScriptToolStripMenuItem_Click(object sender, EventArgs e)
|
private void removeScriptToolStripMenuItem_Click(object sender, EventArgs e)
|
||||||
|
@ -580,7 +577,6 @@ namespace BizHawk.MultiClient
|
||||||
private void LoadLuaFromRecent(string path)
|
private void LoadLuaFromRecent(string path)
|
||||||
{
|
{
|
||||||
LoadLuaFile(path);
|
LoadLuaFile(path);
|
||||||
UpdateNumberOfScripts();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private bool LuaAlreadyInSession(string path)
|
private bool LuaAlreadyInSession(string path)
|
||||||
|
@ -608,14 +604,11 @@ namespace BizHawk.MultiClient
|
||||||
{
|
{
|
||||||
LoadLuaFile(path);
|
LoadLuaFile(path);
|
||||||
DisplayLuaList();
|
DisplayLuaList();
|
||||||
UpdateNumberOfScripts();
|
|
||||||
}
|
}
|
||||||
else if (Path.GetExtension(path) == (".luases"))
|
else if (Path.GetExtension(path) == (".luases"))
|
||||||
{
|
{
|
||||||
LoadLuaSession(path);
|
LoadLuaSession(path);
|
||||||
RunLuaScripts();
|
RunLuaScripts();
|
||||||
DisplayLuaList();
|
|
||||||
UpdateNumberOfScripts();
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -832,7 +825,6 @@ namespace BizHawk.MultiClient
|
||||||
LoadLuaSession(file.FullName);
|
LoadLuaSession(file.FullName);
|
||||||
RunLuaScripts();
|
RunLuaScripts();
|
||||||
DisplayLuaList();
|
DisplayLuaList();
|
||||||
UpdateNumberOfScripts();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -875,7 +867,6 @@ namespace BizHawk.MultiClient
|
||||||
luaList[i].Enabled = false;
|
luaList[i].Enabled = false;
|
||||||
luaList[i].Thread = null;
|
luaList[i].Thread = null;
|
||||||
AddText(ex.ToString());
|
AddText(ex.ToString());
|
||||||
UpdateNumberOfScripts();
|
|
||||||
}
|
}
|
||||||
else MessageBox.Show(ex.ToString());
|
else MessageBox.Show(ex.ToString());
|
||||||
}
|
}
|
||||||
|
@ -1049,7 +1040,6 @@ namespace BizHawk.MultiClient
|
||||||
}
|
}
|
||||||
RunLuaScripts();
|
RunLuaScripts();
|
||||||
DisplayLuaList();
|
DisplayLuaList();
|
||||||
UpdateNumberOfScripts();
|
|
||||||
//ClearOutput();
|
//ClearOutput();
|
||||||
LuaListView.Refresh();
|
LuaListView.Refresh();
|
||||||
currentSessionFile = file;
|
currentSessionFile = file;
|
||||||
|
@ -1224,7 +1214,6 @@ namespace BizHawk.MultiClient
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
LuaListView.Refresh();
|
LuaListView.Refresh();
|
||||||
UpdateNumberOfScripts();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void pauseResumeToolStripMenuItem_Click(object sender, EventArgs e)
|
private void pauseResumeToolStripMenuItem_Click(object sender, EventArgs e)
|
||||||
|
|
Loading…
Reference in New Issue