diff --git a/src/gui/lua/lua_cc_picture.cpp b/src/gui/lua/lua_cc_picture.cpp index 84eceb74b..23d4c6bfc 100644 --- a/src/gui/lua/lua_cc_picture.cpp +++ b/src/gui/lua/lua_cc_picture.cpp @@ -148,15 +148,12 @@ int CLuaInstCCPicture::CCPictureHide(lua_State *L) lua_assert(lua_istable(L,1)); CLuaCCPicture *D = CCPictureCheck(L, 1); if (!D) return 0; -#if 0 - bool no_restore = false; - if (!tableLookup(L, "no_restore", no_restore)) { - std::string tmp = "false"; - if (tableLookup(L, "no_restore", tmp)) - paramBoolDeprecated(L, tmp.c_str()); - no_restore = (tmp == "true" || tmp == "1" || tmp == "yes"); - } -#endif + + bool tmp1 = false; + std::string tmp2 = "false"; + if ((tableLookup(L, "no_restore", tmp1)) || (tableLookup(L, "no_restore", tmp2))) + printf("[%s:hide] Warning, obsolete parameter in use, please remove!\n", "cpicture"); + if (D->parent) { D->cp->setPicture(""); D->cp->paint(); diff --git a/src/gui/lua/lua_cc_text.cpp b/src/gui/lua/lua_cc_text.cpp index 294df354d..af488a8be 100644 --- a/src/gui/lua/lua_cc_text.cpp +++ b/src/gui/lua/lua_cc_text.cpp @@ -173,15 +173,12 @@ int CLuaInstCCText::CCTextHide(lua_State *L) lua_assert(lua_istable(L,1)); CLuaCCText *D = CCTextCheck(L, 1); if (!D) return 0; -#if 0 - bool no_restore = false; - if (!tableLookup(L, "no_restore", no_restore)) { - std::string tmp = "false"; - if (tableLookup(L, "no_restore", tmp)) - paramBoolDeprecated(L, tmp.c_str()); - no_restore = (tmp == "true" || tmp == "1" || tmp == "yes"); - } -#endif + + bool tmp1 = false; + std::string tmp2 = "false"; + if ((tableLookup(L, "no_restore", tmp1)) || (tableLookup(L, "no_restore", tmp2))) + printf("[%s:hide] Warning, obsolete parameter in use, please remove!\n", "ctext"); + if (D->parent) { D->ct->setText("", D->mode, g_Font[D->font_text]); D->ct->paint(); diff --git a/src/gui/lua/lua_cc_window.cpp b/src/gui/lua/lua_cc_window.cpp index dacba8780..467a9baeb 100644 --- a/src/gui/lua/lua_cc_window.cpp +++ b/src/gui/lua/lua_cc_window.cpp @@ -196,15 +196,12 @@ int CLuaInstCCWindow::CCWindowHide(lua_State *L) lua_assert(lua_istable(L,1)); CLuaCCWindow *D = CCWindowCheck(L, 1); if (!D) return 0; -#if 0 - bool no_restore = false; - if (!tableLookup(L, "no_restore", no_restore)) { - std::string tmp = "false"; - if (tableLookup(L, "no_restore", tmp)) - paramBoolDeprecated(L, tmp.c_str()); - no_restore = (tmp == "true" || tmp == "1" || tmp == "yes"); - } -#endif + + bool tmp1 = false; + std::string tmp2 = "false"; + if ((tableLookup(L, "no_restore", tmp1)) || (tableLookup(L, "no_restore", tmp2))) + printf("[%s:hide] Warning, obsolete parameter in use, please remove!\n", "cwindow"); + D->w->hide(); return 0; }