Added: luaSetModalParentList method for container

--HG--
branch : compatibility-develop
hg/compatibility-develop
ulukyn 6 years ago
parent fc974e09a6
commit f3f561f96a

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

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

Loading…
Cancel
Save