From bad1d9502ce9f3cdd984aef47cb7657a8ae7444e Mon Sep 17 00:00:00 2001 From: masterofpuppets152001 Date: Thu, 18 Apr 2013 00:54:04 +0000 Subject: [PATCH] Added lua command client_xpos and client_ypos --- BizHawk.MultiClient/LuaImplementation.cs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/BizHawk.MultiClient/LuaImplementation.cs b/BizHawk.MultiClient/LuaImplementation.cs index 3cdd88de6e..9c9c566810 100644 --- a/BizHawk.MultiClient/LuaImplementation.cs +++ b/BizHawk.MultiClient/LuaImplementation.cs @@ -517,7 +517,9 @@ namespace BizHawk.MultiClient "opentasstudio", "opencheats", "screenwidth", + "xpos", "screenheight", + "ypos", "screenshot", "screenshottoclipboard", "setscreenshotosd", @@ -2247,11 +2249,19 @@ namespace BizHawk.MultiClient { return Global.RenderPanel.NativeSize.Width; } + public int client_xpos() + { + return Global.MainForm.DesktopLocation.X; + } public int client_screenheight() { return Global.RenderPanel.NativeSize.Height; } + public int client_ypos() + { + return Global.MainForm.DesktopLocation.Y; + } public void client_openrom(object lua_input) {