Merge branch 'ryzom/ui/improvements' into atys

merge-requests/6/head
Nuno 4 years ago
commit adf9a646b7

@ -6378,15 +6378,15 @@ namespace NLGUI
}
else if (_ObjectType=="application/ryzom-tutorial")
{
strFindReplace(_ObjectScript, "[", "");
strFindReplace(_ObjectScript, "]", "");
while(strFindReplace(_ObjectScript, "[", ""));
while(strFindReplace(_ObjectScript, "]", ""));
CLuaManager::getInstance().executeLuaScript("\ngame:executeTutorial([["+_ObjectScript+"]])\n", true);
_ObjectScript.clear();
}
else if (_ObjectType=="application/ryzom-script")
{
strFindReplace(_ObjectScript, "[", "");
strFindReplace(_ObjectScript, "]", "");
while(strFindReplace(_ObjectScript, "[", ""));
while(strFindReplace(_ObjectScript, "]", ""));
CLuaManager::getInstance().executeLuaScript("\ngame:executeRyzomScript([["+_ObjectScript+"]])\n", true);
_ObjectScript.clear();
}

@ -191,8 +191,8 @@ public:
void execute(CCtrlBase *pCaller, const std::string &sParams)
{
string script = sParams;
strFindReplace(script, "[", "");
strFindReplace(script, "]", "");
while(strFindReplace(script, "[", ""));
while(strFindReplace(script, "]", ""));
strFindReplace(script, "|", "\n");
CLuaManager::getInstance().executeLuaScript("\ngame:executeRyzomScript([["+script+"]])\n", true);
}

Loading…
Cancel
Save