From 4f9797b6e87f62050863f5b17917603290f260c4 Mon Sep 17 00:00:00 2001 From: cora Date: Tue, 27 Oct 2020 15:20:32 +0100 Subject: lua api: add core.take_screenshot() --- src/script/lua_api/l_client.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/script/lua_api/l_client.h') diff --git a/src/script/lua_api/l_client.h b/src/script/lua_api/l_client.h index 5863e5717..04cc23041 100644 --- a/src/script/lua_api/l_client.h +++ b/src/script/lua_api/l_client.h @@ -126,6 +126,9 @@ private: // get_objects_inside_radius(pos, radius) static int l_get_objects_inside_radius(lua_State *L); + //take_screenshot() + static int l_take_screenshot(lua_State *L); + public: static void Initialize(lua_State *L, int top); }; -- cgit v1.2.3 From 60a9ff6fff844671164a2e710554a2c782cc6c5a Mon Sep 17 00:00:00 2001 From: corarona Date: Thu, 5 Nov 2020 11:54:23 +0100 Subject: api-screenshot: change function name to make_screenshot --- src/script/lua_api/l_client.cpp | 4 ++-- src/script/lua_api/l_client.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'src/script/lua_api/l_client.h') diff --git a/src/script/lua_api/l_client.cpp b/src/script/lua_api/l_client.cpp index 05bfcca52..21fb9b140 100644 --- a/src/script/lua_api/l_client.cpp +++ b/src/script/lua_api/l_client.cpp @@ -524,8 +524,8 @@ int ModApiClient::l_get_objects_inside_radius(lua_State *L) return 1; } -//take_screenshot() -int ModApiClient::l_take_screenshot(lua_State *L) +//make_screenshot() +int ModApiClient::l_make_screenshot(lua_State *L) { getClient(L)->makeScreenshot(); lua_pushboolean(L, true); diff --git a/src/script/lua_api/l_client.h b/src/script/lua_api/l_client.h index 04cc23041..1cac0ec1f 100644 --- a/src/script/lua_api/l_client.h +++ b/src/script/lua_api/l_client.h @@ -126,8 +126,8 @@ private: // get_objects_inside_radius(pos, radius) static int l_get_objects_inside_radius(lua_State *L); - //take_screenshot() - static int l_take_screenshot(lua_State *L); + //make_screenshot() + static int l_make_screenshot(lua_State *L); public: static void Initialize(lua_State *L, int top); -- cgit v1.2.3