another bot test

This commit is contained in:
adelikat 2012-10-13 21:53:28 +00:00
parent 918a067ab0
commit ec47305e4a
1 changed files with 20 additions and 20 deletions

View File

@ -79,7 +79,7 @@ namespace BizHawk.MultiClient
color = Color.IndianRed; color = Color.IndianRed;
} }
UpdateNumberOfScripts(); UpdateNumberOfScripts();
} }
private void LuaListView_QueryItemText(int index, int column, out string text) private void LuaListView_QueryItemText(int index, int column, out string text)
@ -103,10 +103,10 @@ namespace BizHawk.MultiClient
} }
} }
newStripButton1.Visible = Global.MainForm.INTERIM; newStripButton1.Visible = Global.MainForm.INTERIM;
newScriptToolStripMenuItem.Visible = Global.MainForm.INTERIM; newScriptToolStripMenuItem.Visible = Global.MainForm.INTERIM;
newStripButton1.Enabled = Global.MainForm.INTERIM; newStripButton1.Enabled = Global.MainForm.INTERIM;
newScriptToolStripMenuItem.Enabled = Global.MainForm.INTERIM; newScriptToolStripMenuItem.Enabled = Global.MainForm.INTERIM;
} }
private void StopScript(int x) private void StopScript(int x)
@ -968,7 +968,7 @@ namespace BizHawk.MultiClient
{ {
SaveSession(file.FullName); SaveSession(file.FullName);
currentSessionFile = file.FullName; currentSessionFile = file.FullName;
OutputMessages.Text = Path.GetFileName(currentSessionFile) + " saved."; OutputMessages.Text = Path.GetFileName(currentSessionFile) + " saved.";
Global.Config.RecentLuaSession.Add(file.FullName); Global.Config.RecentLuaSession.Add(file.FullName);
Changes(false); Changes(false);
} }
@ -983,21 +983,21 @@ namespace BizHawk.MultiClient
string str = ""; string str = "";
for (int i = 0; i < luaList.Count; i++) for (int i = 0; i < luaList.Count; i++)
{ {
if (!luaList[i].IsSeparator) if (!luaList[i].IsSeparator)
{ {
if (luaList[i].Enabled) if (luaList[i].Enabled)
str += "1 "; str += "1 ";
else else
str += "0 "; str += "0 ";
str += luaList[i].Path + "\n"; str += luaList[i].Path + "\n";
} }
else else
{ {
str += "---\n"; str += "---\n";
} }
} }
sw.Write(str); sw.Write(str);
} }
Changes(false); Changes(false);
@ -1066,7 +1066,7 @@ namespace BizHawk.MultiClient
RunLuaScripts(); RunLuaScripts();
DisplayLuaList(); DisplayLuaList();
//ClearOutput(); //ClearOutput();
LuaListView.Refresh(); LuaListView.Refresh();
currentSessionFile = file; currentSessionFile = file;
Changes(false); Changes(false);
} }