From 93335d287a25117b87a19b0ac21416360aee396a Mon Sep 17 00:00:00 2001 From: rolanmen1 Date: Wed, 25 Apr 2012 19:58:17 +0000 Subject: [PATCH] Fixed gui.alert anchoring. Since do.gui.text now have more parameters, it didn't worked. --- BizHawk.MultiClient/LuaImplementation.cs | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/BizHawk.MultiClient/LuaImplementation.cs b/BizHawk.MultiClient/LuaImplementation.cs index 4febb7b9a6..6849076006 100644 --- a/BizHawk.MultiClient/LuaImplementation.cs +++ b/BizHawk.MultiClient/LuaImplementation.cs @@ -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) { - if (forecolor == null) - forecolor = "black"; - if (background == null) - background = "white"; + if (!alert) + { + if (forecolor == null) + forecolor = "black"; + if (background == null) + background = "white"; + } int a = 0; if (anchor != null) { @@ -463,7 +466,7 @@ namespace BizHawk.MultiClient 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()