lua: gui.defaultPixelFont()

This commit is contained in:
feos 2016-02-10 20:05:54 +03:00
parent 1de5a84687
commit 435323489e
1 changed files with 24 additions and 0 deletions

View File

@ -189,6 +189,30 @@ namespace BizHawk.Client.EmuHawk
DefaultTextBackground = color;
}
[LuaMethodAttributes(
"defaultPixelFont",
"Sets the default font to use in gui.pixelText(), \"gens\" by default"
)]
public void SetDefaultTextBackground(string fontfamily)
{
switch (fontfamily)
{
case "fceux":
case "0":
DefaultPixelFont = 0;
break;
case "gens":
case "1":
DefaultPixelFont = 1;
break;
default:
Log(string.Format("Unable to find font family: {0}", fontfamily));
return;
}
}
[LuaMethodAttributes(
"drawBezier",
"Draws a Bezier curve using the table of coordinates provided in the given color"