ryzomclassic-develop
kaetemi 5 years ago
parent 71a412c698
commit d70c4a215d

@ -691,23 +691,6 @@ CInterfaceElement* CInterface3DScene::getElement (const string &id)
return NULL;
}
int CInterface3DScene::luaGetElement(CLuaState &ls)
{
CLuaIHM::checkArgCount(ls, "CInterfaceGroup::find", 1);
CLuaIHM::checkArgType(ls, "CInterfaceGroup::find", 1, LUA_TSTRING);
std::string id = ls.toString(1);
CInterfaceElement* element = getElement(id);
if (!element)
{
ls.pushNil();
}
else
{
CLuaIHM::pushUIOnStack(ls, element);
}
return 1;
}
// ----------------------------------------------------------------------------
string CInterface3DScene::getCurrentCamera() const

Loading…
Cancel
Save