when toggling a script on, update on screen lua drawing stuff. On gui.clearGraphics() immediate update the screen
This commit is contained in:
parent
3b197b8fdf
commit
0480ea3f44
|
@ -153,6 +153,7 @@ namespace BizHawk.Client.EmuHawk
|
|||
public void ClearGraphics()
|
||||
{
|
||||
_luaSurface.Clear();
|
||||
DrawFinish();
|
||||
}
|
||||
|
||||
[LuaMethodAttributes(
|
||||
|
|
|
@ -836,6 +836,13 @@ namespace BizHawk.Client.EmuHawk
|
|||
item.State = LuaFile.RunState.Disabled;
|
||||
});
|
||||
|
||||
// Shenanigans
|
||||
// We want any gui.text messages from a script to immediately update even when paused
|
||||
GlobalWin.OSD.ClearGUIText();
|
||||
GlobalWin.Tools.UpdateToolsAfter();
|
||||
EndLuaDrawing();
|
||||
StartLuaDrawing();
|
||||
|
||||
}
|
||||
catch (IOException)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue