This commit is contained in:
adelikat 2014-04-29 21:25:17 +00:00
parent bac7ba9a5d
commit 9d7c92fb6e
2 changed files with 20 additions and 1 deletions

View File

@ -88,6 +88,25 @@ namespace BizHawk.Client.EmuHawk
}
}
[LuaMethodAttributes(
"writeline",
"Outputs the given object to the output box on the Lua Console dialog. Note: Can accept a LuaTable"
)]
public static void WriteLine(params object[] outputs)
{
Log(outputs);
Log('\n');
}
[LuaMethodAttributes(
"write",
"Outputs the given object to the output box on the Lua Console dialog. Note: Can accept a LuaTable"
)]
public static void Write(params object[] outputs)
{
Log(outputs);
}
// Single param version is used by logOutputCallback of some libraries.
public static void Log(string output)
{

View File

@ -334,7 +334,7 @@ namespace BizHawk.Client.EmuHawk
OutputBox.Invoke(() =>
{
OutputBox.Text += message + "\n";
OutputBox.Text += message;
OutputBox.SelectionStart = OutputBox.Text.Length;
OutputBox.ScrollToCaret();
});