From d4b8717575b6404b1a5ebd7d890ab81504a18f82 Mon Sep 17 00:00:00 2001 From: jfrickmann Date: Wed, 24 Nov 2021 16:59:18 -0500 Subject: [PATCH] Added zone.absx and zone.absy to give position of a Lua widget on the screen --- radio/src/lua/widgets.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/radio/src/lua/widgets.cpp b/radio/src/lua/widgets.cpp index 8bdeccde7..401ff3d7b 100644 --- a/radio/src/lua/widgets.cpp +++ b/radio/src/lua/widgets.cpp @@ -342,6 +342,8 @@ class LuaWidgetFactory: public WidgetFactory l_pushtableint("y", 0); l_pushtableint("w", rect.w); l_pushtableint("h", rect.h); + l_pushtableint("xabs", rect.x); + l_pushtableint("yabs", rect.y); lua_newtable(lsWidgets); int i = 0;