Showing the changes to libraries/script-engine/src/ScriptManagerScriptingInterface.h (1 of 7 files). Show all
Unified · Split
| @@ -365,7 +365,7 @@ public: · 364 unmodified lines | |||
| 365 | Q_INVOKABLE QUrl resourcesPath() const { return _manager->resourcesPath(); } | 365 | Q_INVOKABLE QUrl resourcesPath() const { return _manager->resourcesPath(); } |
| 366 | 366 | ||
| 367 | /*@jsdoc | 367 | /*@jsdoc |
| 368 | * Starts timing a section of code in order to send usage data about it to Vircadia. Shouldn't be used outside of the | 368 | * Starts timing a section of code in order to send usage data about it to Overte. Shouldn't be used outside of the |
| 369 | * standard scripts. | 369 | * standard scripts. |
| 370 | * @function Script.beginProfileRange | 370 | * @function Script.beginProfileRange |
| 371 | * @param {string} label - A name that identifies the section of code. | 371 | * @param {string} label - A name that identifies the section of code. |
| @@ -373,7 +373,7 @@ public: · 1 unmodified line | |||
| 373 | Q_INVOKABLE void beginProfileRange(const QString& label) const { _manager->beginProfileRange(label); } | 373 | Q_INVOKABLE void beginProfileRange(const QString& label) const { _manager->beginProfileRange(label); } |
| 374 | 374 | ||
| 375 | /*@jsdoc | 375 | /*@jsdoc |
| 376 | * Finishes timing a section of code in order to send usage data about it to Vircadia. Shouldn't be used outside of | 376 | * Finishes timing a section of code in order to send usage data about it to Overte. Shouldn't be used outside of |
| 377 | * the standard scripts. | 377 | * the standard scripts. |
| 378 | * @function Script.endProfileRange | 378 | * @function Script.endProfileRange |
| 379 | * @param {string} label - A name that identifies the section of code. | 379 | * @param {string} label - A name that identifies the section of code. |
| @@ -481,7 +481,7 @@ public: · 101 unmodified lines | |||
| 481 | * @Returns {string} The URL of an external asset. | 481 | * @Returns {string} The URL of an external asset. |
| 482 | * @example <caption>Report the URL of a default particle.</caption> | 482 | * @example <caption>Report the URL of a default particle.</caption> |
| 483 | * print(Script.getExternalPath(Script.ExternalPaths.Assets, "Bazaar/Assets/Textures/Defaults/Interface/default_particle.png")); | 483 | * print(Script.getExternalPath(Script.ExternalPaths.Assets, "Bazaar/Assets/Textures/Defaults/Interface/default_particle.png")); |
| 484 | * @example <caption>Report the root directory where the Vircadia assets are located.</caption> | 484 | * @example <caption>Report the root directory where the Overte assets are located.</caption> |
| 485 | * print(Script.getExternalPath(Script.ExternalPaths.Assets, ".")); | 485 | * print(Script.getExternalPath(Script.ExternalPaths.Assets, ".")); |
| 486 | */ | 486 | */ |
| 487 | Q_INVOKABLE QString getExternalPath(ExternalResource::Bucket bucket, const QString& path) { return _manager->getExternalPath(bucket, path); } | 487 | Q_INVOKABLE QString getExternalPath(ExternalResource::Bucket bucket, const QString& path) { return _manager->getExternalPath(bucket, path); } |