EmuLuaLibrary.Gui: update createcanvas

createcanvas now takes additional parameters that specify where the canvas window should be created
This commit is contained in:
Trivial-Man 2017-06-29 20:03:18 -06:00 committed by GitHub
parent 5900f9b1ec
commit 1a1ae98a2e
1 changed files with 3 additions and 3 deletions

View File

@ -693,10 +693,10 @@ namespace BizHawk.Client.EmuHawk
GlobalWin.OSD.AddGUIText(message, x, y, Color.Black, forecolor ?? Color.White, a);
}
[LuaMethodAttributes("createcanvas", "Creates a canvas of the given size.")]
public LuaTable Text(int width, int height)
[LuaMethodAttributes("createcanvas", "Creates a canvas of the given size and, if specified, the given coordinates.")]
public LuaTable Text(int width, int height, int? x = null, int? y = null)
{
var canvas = new LuaCanvas(width, height);
var canvas = new LuaCanvas(width, height, x, y);
canvas.Show();
return LuaHelper.ToLuaTable(Lua, canvas);
}