mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-03-06 05:50:31 +00:00
change pipe to underscore and fix prefabs assets
This commit is contained in:
parent
7ae1d3d996
commit
4bb63f277e
4 changed files with 14 additions and 10 deletions
|
|
@ -380,7 +380,7 @@ function ShapeEdSelectWindow::navigate( %this, %address )
|
|||
|
||||
// Ignore assets in the tools folder
|
||||
%fullPath = makeRelativePath( %fullPath, getMainDotCSDir() );
|
||||
%splitPath = strreplace( %fullPath, " ", "|" );
|
||||
%splitPath = strreplace( %fullPath, " ", "_" );
|
||||
%splitPath = strreplace( %splitPath, "/", " " );
|
||||
if ( getWord( %splitPath, 0 ) $= "tools" )
|
||||
{
|
||||
|
|
@ -394,7 +394,7 @@ function ShapeEdSelectWindow::navigate( %this, %address )
|
|||
// Add this file's path ( parent folders ) to the
|
||||
// popup menu if it isn't there yet.
|
||||
%temp = strreplace( %pathFolders, " ", "/" );
|
||||
%temp = strreplace( %temp, "|", " " );
|
||||
%temp = strreplace( %temp, "_", " " );
|
||||
%r = ShapeEdSelectMenu.findText( %temp );
|
||||
if ( %r == -1 )
|
||||
ShapeEdSelectMenu.add( %temp );
|
||||
|
|
|
|||
|
|
@ -318,7 +318,7 @@ function EWCreatorWindow::navigate( %this, %address )
|
|||
}
|
||||
|
||||
%fullPath = makeRelativePath( %fullPath, getMainDotCSDir() );
|
||||
%splitPath = strreplace( %fullPath, " ", "|" );
|
||||
%splitPath = strreplace( %fullPath, " ", "_" );
|
||||
%splitPath = strreplace( %splitPath, "/", " " );
|
||||
if( getWord(%splitPath, 0) $= "tools" )
|
||||
{
|
||||
|
|
@ -333,7 +333,7 @@ function EWCreatorWindow::navigate( %this, %address )
|
|||
// Add this file's path (parent folders) to the
|
||||
// popup menu if it isn't there yet.
|
||||
%temp = strreplace( %pathFolders, " ", "/" );
|
||||
%temp = strreplace( %temp, "|", " " );
|
||||
%temp = strreplace( %temp, "_", " " );
|
||||
%r = CreatorPopupMenu.findText( %temp );
|
||||
if ( %r == -1 )
|
||||
{
|
||||
|
|
@ -432,7 +432,8 @@ function EWCreatorWindow::navigate( %this, %address )
|
|||
while ( %fullPath !$= "" )
|
||||
{
|
||||
%fullPath = makeRelativePath( %fullPath, getMainDotCSDir() );
|
||||
%splitPath = strreplace( %fullPath, "/", " " );
|
||||
%splitPath = strreplace( %fullPath, " ", "_" );
|
||||
%splitPath = strreplace( %splitPath, "/", " " );
|
||||
if( getWord(%splitPath, 0) $= "tools" )
|
||||
{
|
||||
%fullPath = findNextFile( %expr );
|
||||
|
|
@ -446,6 +447,7 @@ function EWCreatorWindow::navigate( %this, %address )
|
|||
// Add this file's path (parent folders) to the
|
||||
// popup menu if it isn't there yet.
|
||||
%temp = strreplace( %pathFolders, " ", "/" );
|
||||
%temp = strreplace( %temp, "_", " " );
|
||||
%r = CreatorPopupMenu.findText( %temp );
|
||||
if ( %r == -1 )
|
||||
{
|
||||
|
|
|
|||
|
|
@ -380,7 +380,7 @@ function ShapeEdSelectWindow::navigate( %this, %address )
|
|||
|
||||
// Ignore assets in the tools folder
|
||||
%fullPath = makeRelativePath( %fullPath, getMainDotCSDir() );
|
||||
%splitPath = strreplace( %fullPath, " ", "|" );
|
||||
%splitPath = strreplace( %fullPath, " ", "_" );
|
||||
%splitPath = strreplace( %splitPath, "/", " " );
|
||||
if ( getWord( %splitPath, 0 ) $= "tools" )
|
||||
{
|
||||
|
|
@ -394,7 +394,7 @@ function ShapeEdSelectWindow::navigate( %this, %address )
|
|||
// Add this file's path ( parent folders ) to the
|
||||
// popup menu if it isn't there yet.
|
||||
%temp = strreplace( %pathFolders, " ", "/" );
|
||||
%temp = strreplace( %temp, "|", " " );
|
||||
%temp = strreplace( %temp, "_", " " );
|
||||
%r = ShapeEdSelectMenu.findText( %temp );
|
||||
if ( %r == -1 )
|
||||
ShapeEdSelectMenu.add( %temp );
|
||||
|
|
|
|||
|
|
@ -318,7 +318,7 @@ function EWCreatorWindow::navigate( %this, %address )
|
|||
}
|
||||
|
||||
%fullPath = makeRelativePath( %fullPath, getMainDotCSDir() );
|
||||
%splitPath = strreplace( %fullPath, " ", "|" );
|
||||
%splitPath = strreplace( %fullPath, " ", "_" );
|
||||
%splitPath = strreplace( %splitPath, "/", " " );
|
||||
if( getWord(%splitPath, 0) $= "tools" )
|
||||
{
|
||||
|
|
@ -333,7 +333,7 @@ function EWCreatorWindow::navigate( %this, %address )
|
|||
// Add this file's path (parent folders) to the
|
||||
// popup menu if it isn't there yet.
|
||||
%temp = strreplace( %pathFolders, " ", "/" );
|
||||
%temp = strreplace( %temp, "|", " " );
|
||||
%temp = strreplace( %temp, "_", " " );
|
||||
%r = CreatorPopupMenu.findText( %temp );
|
||||
if ( %r == -1 )
|
||||
{
|
||||
|
|
@ -432,7 +432,8 @@ function EWCreatorWindow::navigate( %this, %address )
|
|||
while ( %fullPath !$= "" )
|
||||
{
|
||||
%fullPath = makeRelativePath( %fullPath, getMainDotCSDir() );
|
||||
%splitPath = strreplace( %fullPath, "/", " " );
|
||||
%splitPath = strreplace( %fullPath, " ", "_" );
|
||||
%splitPath = strreplace( %splitPath, "/", " " );
|
||||
if( getWord(%splitPath, 0) $= "tools" )
|
||||
{
|
||||
%fullPath = findNextFile( %expr );
|
||||
|
|
@ -446,6 +447,7 @@ function EWCreatorWindow::navigate( %this, %address )
|
|||
// Add this file's path (parent folders) to the
|
||||
// popup menu if it isn't there yet.
|
||||
%temp = strreplace( %pathFolders, " ", "/" );
|
||||
%temp = strreplace( %temp, "_", " " );
|
||||
%r = CreatorPopupMenu.findText( %temp );
|
||||
if ( %r == -1 )
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue