|
|
|
@ -513,6 +513,7 @@ void CLuaIHMRyzom::RegisterRyzomFunctions(NLGUI::CLuaState &ls)
|
|
|
|
|
LUABIND_FUNC(unpauseBGDownloader),
|
|
|
|
|
LUABIND_FUNC(requestBGDownloaderPriority),
|
|
|
|
|
LUABIND_FUNC(getBGDownloaderPriority),
|
|
|
|
|
LUABIND_FUNC(loadBackground),
|
|
|
|
|
LUABIND_FUNC(getPatchLastErrorMessage),
|
|
|
|
|
LUABIND_FUNC(getPlayerSelectedSlot),
|
|
|
|
|
LUABIND_FUNC(isInGame),
|
|
|
|
@ -2047,7 +2048,8 @@ int CLuaIHMRyzom::addShape(CLuaState &ls)
|
|
|
|
|
float x = 0.0f, y = 0.0f, z = 0.0f;
|
|
|
|
|
float scale = 1.0f;
|
|
|
|
|
string context, url, skeleton, texture;
|
|
|
|
|
bool highlight, transparency, collision = false;
|
|
|
|
|
bool highlight, transparency = false;
|
|
|
|
|
bool collision = true;
|
|
|
|
|
|
|
|
|
|
if (ls.getTop() >= 2)
|
|
|
|
|
{
|
|
|
|
@ -2137,11 +2139,6 @@ int CLuaIHMRyzom::addShape(CLuaState &ls)
|
|
|
|
|
CLuaIHM::checkArgType(ls, funcName, 13, LUA_TSTRING);
|
|
|
|
|
skeleton = ls.toString(13);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// ???????????????
|
|
|
|
|
transparency = false;
|
|
|
|
|
highlight = false;
|
|
|
|
|
collision = true;
|
|
|
|
|
|
|
|
|
|
CShapeInstanceReference instref = EntitiesMngr.createInstance(shape, CVector(x, y, z), context, url, collision, idx);
|
|
|
|
|
UInstance instance = instref.Instance;
|
|
|
|
@ -3004,6 +3001,14 @@ sint CLuaIHMRyzom::getBGDownloaderPriority()
|
|
|
|
|
return CBGDownloaderAccess::getInstance().getDownloadThreadPriority();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// ***************************************************************************
|
|
|
|
|
void CLuaIHMRyzom::loadBackground(const std::string &bg)
|
|
|
|
|
{
|
|
|
|
|
LoadingBackground = CustomBackground;
|
|
|
|
|
LoadingBackgroundBG = bg;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// ***************************************************************************
|
|
|
|
|
ucstring CLuaIHMRyzom::getPatchLastErrorMessage()
|
|
|
|
|
{
|
|
|
|
|