diff --git a/src/gui/lua/lua_api_version.h b/src/gui/lua/lua_api_version.h index c7f79df4a..3c63755d4 100644 --- a/src/gui/lua/lua_api_version.h +++ b/src/gui/lua/lua_api_version.h @@ -4,4 +4,4 @@ * to luainstance.h changes */ #define LUA_API_VERSION_MAJOR 1 -#define LUA_API_VERSION_MINOR 81 +#define LUA_API_VERSION_MINOR 82 diff --git a/src/gui/lua/lua_cc_text.cpp b/src/gui/lua/lua_cc_text.cpp index 3e2158e52..91a4099a0 100644 --- a/src/gui/lua/lua_cc_text.cpp +++ b/src/gui/lua/lua_cc_text.cpp @@ -95,7 +95,9 @@ int CLuaInstCCText::CCTextNew(lua_State *L) tableLookup(L, "dx", dx); tableLookup(L, "dy", dy); tableLookup(L, "text", text); - tableLookup(L, "mode", tmpMode); + //to prevent possible ambiguity of text mode, use 'text_mode' instead 'mode' in api + tableLookup(L, "text_mode", tmpMode); + tableLookup(L, "mode", tmpMode); //NOTE: parameter 'mode' deprecated, but still available for downward compatibility tableLookup(L, "font_text", font_text); if (font_text >= SNeutrinoSettings::FONT_TYPE_COUNT || font_text < 0) font_text = SNeutrinoSettings::FONT_TYPE_MENU;