mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-11 22:54:34 +00:00
Parametrize script extension, default to 'tscript'
This commit is contained in:
parent
b8b62292bd
commit
099dd4f1f3
542 changed files with 774 additions and 783 deletions
|
|
@ -30,10 +30,10 @@ function initializeParticleEditor()
|
|||
echo( " % - Initializing Particle Editor" );
|
||||
|
||||
exec( "./ParticleEditor.ed.gui" );
|
||||
exec( "./particleEditor.ed.cs" );
|
||||
exec( "./particleEditorUndo.ed.cs" );
|
||||
exec( "./particleEmitterEditor.ed.cs" );
|
||||
exec( "./particleParticleEditor.ed.cs" );
|
||||
exec( "./particleEditor.ed.tscript" );
|
||||
exec( "./particleEditorUndo.ed.tscript" );
|
||||
exec( "./particleEmitterEditor.ed.tscript" );
|
||||
exec( "./particleParticleEditor.ed.tscript" );
|
||||
|
||||
PE_Window.setVisible( false );
|
||||
EditorGui.add( PE_Window );
|
||||
|
|
@ -190,7 +190,7 @@ function ActionDeleteEmitter::redo( %this )
|
|||
// Remove from file.
|
||||
|
||||
if( %emitter.getFileName() !$= ""
|
||||
&& %emitter.getFilename() !$= "tools/particleEditor/particleEmitterEditor.ed.cs" )
|
||||
&& %emitter.getFilename() !$= "tools/particleEditor/particleEmitterEditor.ed.tscript" )
|
||||
PE_EmitterSaver.removeObjectFromFile( %emitter );
|
||||
|
||||
// Select DefaultEmitter or first in list.
|
||||
|
|
@ -449,7 +449,7 @@ function ActionDeleteParticle::redo( %this )
|
|||
// Remove from file.
|
||||
|
||||
if( %particle.getFileName() !$= ""
|
||||
&& %particle.getFilename() !$= "tools/particleEditor/particleParticleEditor.ed.cs" )
|
||||
&& %particle.getFilename() !$= "tools/particleEditor/particleParticleEditor.ed.tscript" )
|
||||
PE_ParticleSaver.removeObjectFromFile( %particleId );
|
||||
|
||||
// Remove from dropdown.
|
||||
|
|
@ -21,7 +21,7 @@
|
|||
//-----------------------------------------------------------------------------
|
||||
|
||||
|
||||
$PE_EMITTEREDITOR_DEFAULT_FILENAME = "art/particles/managedParticleEmitterData.cs";
|
||||
$PE_EMITTEREDITOR_DEFAULT_FILENAME = "art/particles/managedParticleEmitterData.tscript";
|
||||
|
||||
|
||||
//=============================================================================================
|
||||
|
|
@ -500,7 +500,7 @@ function PE_EmitterEditor::setEmitterDirty( %this )
|
|||
|
||||
%emitter = PE_EmitterEditor.currEmitter;
|
||||
|
||||
if( %emitter.getFilename() $= "" || %emitter.getFilename() $= "tools/particleEditor/particleEmitterEditor.ed.cs" )
|
||||
if( %emitter.getFilename() $= "" || %emitter.getFilename() $= "tools/particleEditor/particleEmitterEditor.ed.tscript" )
|
||||
PE_EmitterSaver.setDirty( %emitter, $PE_EMITTEREDITOR_DEFAULT_FILENAME );
|
||||
else
|
||||
PE_EmitterSaver.setDirty( %emitter );
|
||||
|
|
@ -21,7 +21,7 @@
|
|||
//-----------------------------------------------------------------------------
|
||||
|
||||
|
||||
$PE_PARTICLEEDITOR_DEFAULT_FILENAME = "art/particles/managedParticleData.cs";
|
||||
$PE_PARTICLEEDITOR_DEFAULT_FILENAME = "art/particles/managedParticleData.tscript";
|
||||
|
||||
|
||||
//=============================================================================================
|
||||
|
|
@ -407,7 +407,7 @@ function PE_ParticleEditor::setParticleDirty( %this )
|
|||
|
||||
%particle = PE_ParticleEditor.currParticle;
|
||||
|
||||
if( %particle.getFilename() $= "" || %particle.getFilename() $= "tools/particleEditor/particleParticleEditor.ed.cs" )
|
||||
if( %particle.getFilename() $= "" || %particle.getFilename() $= "tools/particleEditor/particleParticleEditor.ed.tscript" )
|
||||
PE_ParticleSaver.setDirty( %particle, $PE_PARTICLEEDITOR_DEFAULT_FILENAME );
|
||||
else
|
||||
PE_ParticleSaver.setDirty( %particle );
|
||||
Loading…
Add table
Add a link
Reference in a new issue