From f3f561f96af07d61b9aaf84da3147010305c30d3 Mon Sep 17 00:00:00 2001 From: ulukyn Date: Fri, 20 Jul 2018 23:40:24 +0200 Subject: [PATCH] Added: luaSetModalParentList method for container --HG-- branch : compatibility-develop --- code/nel/include/nel/gui/group_container.h | 3 +++ code/nel/src/gui/group_container.cpp | 11 +++++++++++ 2 files changed, 14 insertions(+) diff --git a/code/nel/include/nel/gui/group_container.h b/code/nel/include/nel/gui/group_container.h index 452674aa1..dcc3e9759 100644 --- a/code/nel/include/nel/gui/group_container.h +++ b/code/nel/include/nel/gui/group_container.h @@ -274,10 +274,13 @@ namespace NLGUI // Lua exports int luaBlink(CLuaState &ls); int luaSetHeaderColor(CLuaState &ls); + int luaSetModalParentList(CLuaState &ls); REFLECT_EXPORT_START(CGroupContainer, CGroupContainerBase) REFLECT_LUA_METHOD("blink", luaBlink); REFLECT_LUA_METHOD("setHeaderColor", luaSetHeaderColor); + REFLECT_LUA_METHOD("setModalParentList", luaSetModalParentList); + REFLECT_STRING("title", getTitle, setTitle); REFLECT_STRING("title_opened", getTitleOpened, setTitleOpened); REFLECT_STRING("title_closed", getTitleClosed, setTitleClosed); diff --git a/code/nel/src/gui/group_container.cpp b/code/nel/src/gui/group_container.cpp index 1922db221..9b7f63446 100644 --- a/code/nel/src/gui/group_container.cpp +++ b/code/nel/src/gui/group_container.cpp @@ -4753,6 +4753,7 @@ namespace NLGUI if (_Resizer[k]) _Resizer[k]->HMax = maxH; } } + // *************************************************************************** int CGroupContainer::luaSetHeaderColor(CLuaState &ls) { @@ -4762,6 +4763,16 @@ namespace NLGUI _HeaderColor.link(ls.toString(1)); return 0; } + + // *************************************************************************** + int CGroupContainer::luaSetModalParentList(CLuaState &ls) + { + const char *funcName = "setModalParentList"; + CLuaIHM::checkArgCount(ls, funcName, 1); + CLuaIHM::checkArgType(ls, funcName, 1, LUA_TSTRING); + setModalParentList(ls.toString(1)); + return 0; + } // *************************************************************************** CRGBA CGroupContainer::getDrawnHeaderColor () const