Lua - add gui.alert() which draws messages in the alert font

This commit is contained in:
adelikat 2012-03-11 00:54:24 +00:00
parent 635ae613a4
commit 76f1faf122
1 changed files with 7 additions and 1 deletions

View File

@ -152,7 +152,8 @@ namespace BizHawk.MultiClient
public static string[] GuiFunctions = new string[]
{
"text"
"text",
"alert"
};
public static string[] EmuFunctions = new string[]
@ -307,6 +308,11 @@ namespace BizHawk.MultiClient
Global.RenderPanel.AddGUIText(luaStr.ToString(), LuaInt(luaX), LuaInt(luaY), false);
}
public void gui_alert(object luaX, object luaY, object luaStr)
{
Global.RenderPanel.AddGUIText(luaStr.ToString(), LuaInt(luaX), LuaInt(luaY), true);
}
//----------------------------------------------------
//Emu library
//----------------------------------------------------