Fixed gui.alert anchoring. Since do.gui.text now have more parameters, it didn't worked.

This commit is contained in:
rolanmen1 2012-04-25 19:58:17 +00:00
parent cb3e0ec666
commit 93335d287a
1 changed files with 8 additions and 5 deletions

View File

@ -429,10 +429,13 @@ namespace BizHawk.MultiClient
//---------------------------------------------------- //----------------------------------------------------
private void do_gui_text(object luaX, object luaY, object luaStr, bool alert, object background = null, object forecolor = null, object anchor = null) private void do_gui_text(object luaX, object luaY, object luaStr, bool alert, object background = null, object forecolor = null, object anchor = null)
{ {
if (forecolor == null) if (!alert)
forecolor = "black"; {
if (background == null) if (forecolor == null)
background = "white"; forecolor = "black";
if (background == null)
background = "white";
}
int a = 0; int a = 0;
if (anchor != null) if (anchor != null)
{ {
@ -463,7 +466,7 @@ namespace BizHawk.MultiClient
public void gui_alert(object luaX, object luaY, object luaStr, object anchor = null) public void gui_alert(object luaX, object luaY, object luaStr, object anchor = null)
{ {
do_gui_text(luaX, luaY, luaStr, true, anchor); do_gui_text(luaX, luaY, luaStr, true, null, null, anchor);
} }
public void gui_cleartext() public void gui_cleartext()