Lua - implement client.screenshottoclipboard() and client.setscreenshotosd()
This commit is contained in:
parent
4193ddfa5d
commit
a0111d1c08
|
@ -512,6 +512,8 @@ namespace BizHawk.MultiClient
|
|||
"screenwidth",
|
||||
"screenheight",
|
||||
"screenshot",
|
||||
"screenshottoclipboard",
|
||||
"setscreenshotosd",
|
||||
};
|
||||
|
||||
public static string[] FormsFunctions = new string[]
|
||||
|
@ -2054,6 +2056,16 @@ namespace BizHawk.MultiClient
|
|||
}
|
||||
}
|
||||
|
||||
public void client_screenshottoclipboard()
|
||||
{
|
||||
Global.MainForm.TakeScreenshotToClipboard();
|
||||
}
|
||||
|
||||
public void client_setscreenshotosd(bool value)
|
||||
{
|
||||
Global.Config.Screenshot_CaptureOSD = value;
|
||||
}
|
||||
|
||||
public int client_screenwidth()
|
||||
{
|
||||
return Global.RenderPanel.NativeSize.Width;
|
||||
|
|
|
@ -2469,7 +2469,7 @@ namespace BizHawk.MultiClient
|
|||
return image;
|
||||
}
|
||||
|
||||
void TakeScreenshotToClipboard()
|
||||
public void TakeScreenshotToClipboard()
|
||||
{
|
||||
using (var img = Global.Config.Screenshot_CaptureOSD ? CaptureOSD() : MakeScreenshotImage())
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue