Lua - add gui.alert() which draws messages in the alert font
This commit is contained in:
parent
635ae613a4
commit
76f1faf122
|
@ -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
|
||||
//----------------------------------------------------
|
||||
|
|
Loading…
Reference in New Issue