History

Change text in case of drag and drop.

Atlante45 committed 10 years ago

Commit 03efde51 parent 4265ddb4 files · +19 −12Browse files

Showing the changes to interface/src/scripting/AssetMappingsScriptingInterface.cpp (1 of 4 files). Show all

Unified · Split

interface/src/scripting/AssetMappingsScriptingInterface.cpp+8−3
@@ -59,13 +59,18 @@ void AssetMappingsScriptingInterface::getMapping(QString path, QJSValue callback · 58 unmodified lines
5959 request->start();
6060 }
6161
62−void AssetMappingsScriptingInterface::uploadFile(QString path, QString mapping, QJSValue startedCallback, QJSValue completedCallback) {
62+void AssetMappingsScriptingInterface::uploadFile(QString path, QString mapping, QJSValue startedCallback, QJSValue completedCallback, bool dropEvent) {
6363 static const QString helpText =
64− "Upload your asset to a specific folder by entering the full path. Specifying "
64+ "Upload your asset to a specific folder by entering the full path. Specifying\n"
6565 "a new folder name will automatically create that folder for you.";
66+ static const QString dropHelpText =
67+ "This file will be added to your Asset Server.\n"
68+ "Use the field below to place your file in a specific folder or to rename it.\n"
69+ "Specifying a new folder name will automatically create that folder for you.";
6670
6771 auto offscreenUi = DependencyManager::get<OffscreenUi>();
68− auto result = offscreenUi->inputDialog(OffscreenUi::ICON_INFORMATION, "Specify Asset Path", helpText, mapping);
72+ auto result = offscreenUi->inputDialog(OffscreenUi::ICON_INFORMATION, "Specify Asset Path",
73+ dropEvent ? dropHelpText : helpText, mapping);
6974
7075 if (!result.isValid()) {
7176 completedCallback.call({ -1 });