|
|
@ -491,6 +491,7 @@ void CLuaIHMRyzom::RegisterRyzomFunctions(NLGUI::CLuaState &ls)
|
|
|
|
luabind::module(L)
|
|
|
|
luabind::module(L)
|
|
|
|
[
|
|
|
|
[
|
|
|
|
LUABIND_FUNC(getDbProp),
|
|
|
|
LUABIND_FUNC(getDbProp),
|
|
|
|
|
|
|
|
LUABIND_FUNC(getDbProp64),
|
|
|
|
LUABIND_FUNC(setDbProp),
|
|
|
|
LUABIND_FUNC(setDbProp),
|
|
|
|
LUABIND_FUNC(addDbProp),
|
|
|
|
LUABIND_FUNC(addDbProp),
|
|
|
|
LUABIND_FUNC(delDbProp),
|
|
|
|
LUABIND_FUNC(delDbProp),
|
|
|
@ -2570,6 +2571,22 @@ sint32 CLuaIHMRyzom::getDbProp(const std::string &dbProp)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
sint64 CLuaIHMRyzom::getDbProp64(const std::string &dbProp)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
//H_AUTO(Lua_CLuaIHM_getDbProp)
|
|
|
|
|
|
|
|
CInterfaceManager *pIM = CInterfaceManager::getInstance();
|
|
|
|
|
|
|
|
CCDBNodeLeaf *node = NLGUI::CDBManager::getInstance()->getDbProp(dbProp, false);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (node)
|
|
|
|
|
|
|
|
return node->getValue64();
|
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
debugInfo(toString("getDbProp(): '%s' dbProp Not found", dbProp.c_str()));
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void CLuaIHMRyzom::setDbProp(const std::string &dbProp, sint32 value)
|
|
|
|
void CLuaIHMRyzom::setDbProp(const std::string &dbProp, sint32 value)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
//H_AUTO(Lua_CLuaIHM_setDbProp)
|
|
|
|
//H_AUTO(Lua_CLuaIHM_setDbProp)
|
|
|
|