mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-03-02 20:10:32 +00:00
Improve handling of non-default script filenames
This commit is contained in:
parent
099dd4f1f3
commit
9ccaa6d3ea
118 changed files with 534 additions and 528 deletions
|
|
@ -23,7 +23,7 @@ function LooseFileAuditWindow::buildPopupMenus(%this)
|
|||
superClass = "MenuBuilder";
|
||||
class = "EditorWorldMenu";
|
||||
|
||||
item[0] = "Make a Script Asset" TAB "" TAB "LooseFileAuditWindow.importScript();";
|
||||
item[0] = "Make a Script Asset" TAB "" TAB "LooseFileAuditWindow.impor" @ $TorqueScriptFileExtension @ "();";
|
||||
item[1] = "Make a PostFX Asset" TAB "" TAB "LooseFileAuditWindow.importPostFX();";
|
||||
item[2] = "Make a Material Asset" TAB "" TAB "LooseFileAuditWindow.importMaterial();";
|
||||
item[3] = "Make a Terrain Material Asset" TAB "" TAB "LooseFileAuditWindow.importTerrMat();";
|
||||
|
|
@ -159,7 +159,7 @@ function LooseFileList::onRightMouseDown(%this, %itemId)
|
|||
{
|
||||
ImageLooseFilePopup.showPopup(Canvas);
|
||||
}
|
||||
else if(%ext $= ".tscript")
|
||||
else if(%ext $= "." @ $TorqueScriptFileExtension)
|
||||
{
|
||||
ScriptLooseFilePopup.showPopup(Canvas);
|
||||
}
|
||||
|
|
@ -199,7 +199,7 @@ function LooseFileAuditWindow::importImage(%this)
|
|||
LooseFileList.expandItem(0);
|
||||
}
|
||||
|
||||
function LooseFileAuditWindow::importScript(%this)
|
||||
function LooseFileAuditWindow::impor" @ $TorqueScriptFileExtension @ "(%this)
|
||||
{
|
||||
if(!ImportAssetWindow.isAwake())
|
||||
ImportAssetWindow.showDialog();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue