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 a21734fdb..0f35e6486 100644 --- a/code/nel/src/gui/group_container.cpp +++ b/code/nel/src/gui/group_container.cpp @@ -4756,6 +4756,7 @@ namespace NLGUI if (_Resizer[k]) _Resizer[k]->HMax = maxH; } } + // *************************************************************************** int CGroupContainer::luaSetHeaderColor(CLuaState &ls) { @@ -4765,6 +4766,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