mirror of
https://github.com/overte-org/overte.git
synced 2025-08-10 00:13:29 +02:00
add script number to menu items so that we can run multiple copies of same script
This commit is contained in:
parent
ea63f05cd4
commit
c404a36439
1 changed files with 2 additions and 1 deletions
|
@ -51,11 +51,12 @@ ScriptEngine::ScriptEngine(const QString& scriptContents, bool wantMenuItems,
|
||||||
if (scriptMenuName) {
|
if (scriptMenuName) {
|
||||||
_scriptMenuName = "Stop ";
|
_scriptMenuName = "Stop ";
|
||||||
_scriptMenuName.append(scriptMenuName);
|
_scriptMenuName.append(scriptMenuName);
|
||||||
|
_scriptMenuName.append(QString(" [%1]").arg(_scriptNumber));
|
||||||
} else {
|
} else {
|
||||||
_scriptMenuName = "Stop Script ";
|
_scriptMenuName = "Stop Script ";
|
||||||
_scriptNumber++;
|
|
||||||
_scriptMenuName.append(_scriptNumber);
|
_scriptMenuName.append(_scriptNumber);
|
||||||
}
|
}
|
||||||
|
_scriptNumber++;
|
||||||
_menu = menu;
|
_menu = menu;
|
||||||
_controllerScriptingInterface = controllerScriptingInterface;
|
_controllerScriptingInterface = controllerScriptingInterface;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue