From 229865c4434fa0f58d492b5a2d301e2d111b6927 Mon Sep 17 00:00:00 2001 From: ConHuevosGuey Date: Sun, 28 Jun 2015 13:23:07 -0500 Subject: [PATCH] Added a 'Draw Axis' function to lua GUI library --- .../tools/Lua/Libraries/EmuLuaLibrary.Gui.cs | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/BizHawk.Client.EmuHawk/tools/Lua/Libraries/EmuLuaLibrary.Gui.cs b/BizHawk.Client.EmuHawk/tools/Lua/Libraries/EmuLuaLibrary.Gui.cs index d6d71faa46..5849b5fa81 100644 --- a/BizHawk.Client.EmuHawk/tools/Lua/Libraries/EmuLuaLibrary.Gui.cs +++ b/BizHawk.Client.EmuHawk/tools/Lua/Libraries/EmuLuaLibrary.Gui.cs @@ -378,6 +378,18 @@ namespace BizHawk.Client.EmuHawk } } + [LuaMethodAttributes( + "drawAxis", + "Draws an axis of the specified size at the coordinate pair.)" + )] + + public void DrawAxis(int x, int y, int? size = null, Color? color = null) + { + DrawLine(x + (int) size, y, x - (int) size, y, color); + DrawLine(x, y + (int)size, x, y - (int)size, color); + } + + [LuaMethodAttributes( "drawPie", "draws a Pie shape at the given coordinates and the given width and height"