EmuLuaLibrary.Gui: update createcanvas
createcanvas now takes additional parameters that specify where the canvas window should be created
This commit is contained in:
parent
5900f9b1ec
commit
1a1ae98a2e
|
@ -693,10 +693,10 @@ namespace BizHawk.Client.EmuHawk
|
||||||
GlobalWin.OSD.AddGUIText(message, x, y, Color.Black, forecolor ?? Color.White, a);
|
GlobalWin.OSD.AddGUIText(message, x, y, Color.Black, forecolor ?? Color.White, a);
|
||||||
}
|
}
|
||||||
|
|
||||||
[LuaMethodAttributes("createcanvas", "Creates a canvas of the given size.")]
|
[LuaMethodAttributes("createcanvas", "Creates a canvas of the given size and, if specified, the given coordinates.")]
|
||||||
public LuaTable Text(int width, int height)
|
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();
|
canvas.Show();
|
||||||
return LuaHelper.ToLuaTable(Lua, canvas);
|
return LuaHelper.ToLuaTable(Lua, canvas);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue