Added: luaSetModalParentList method for container

--HG--
branch : patches-from-atys
hg/hotfix/patches-from-atys
ulukyn 6 years ago
parent 65acd3bf9d
commit 57406f6a8c

@ -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);

@ -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

Loading…
Cancel
Save