44 lines
1.0 KiB
C#
44 lines
1.0 KiB
C#
//-----------------------------------------------------------------------------
|
|
// Torque Game Engine
|
|
//
|
|
// Copyright (c) 2001 GarageGames.Com
|
|
// Portions Copyright (c) 2001 by Sierra Online, Inc.
|
|
//-----------------------------------------------------------------------------
|
|
|
|
exec("./ParticleEditor.cs");
|
|
exec("./Saves.cs");
|
|
|
|
function toggleParticleEditor(%val)
|
|
{
|
|
if( !isObject(ParticleEditor) )
|
|
{
|
|
echo(%this);
|
|
MessagePopup( "Particle Editor", "Initializing... Please Wait." );
|
|
Canvas.repaint();
|
|
exec("~/ui/ParticleEditor.gui" );
|
|
exec("~/scripts/ParticleEditor.cs");
|
|
exec("./Saves.cs" );
|
|
if( !isObject(EditorSaveMissionDlg) )
|
|
{
|
|
//editor.open();
|
|
//editor.close();
|
|
}
|
|
CloseMessagePopup();
|
|
}
|
|
if(%val)
|
|
{
|
|
if(!ParticleEditor.open)
|
|
{
|
|
if(ParticleEditor !$= "")
|
|
{
|
|
Canvas.pushDialog(ParticleEditor);
|
|
ParticleEditor.open = true;
|
|
}
|
|
}
|
|
else
|
|
{
|
|
Canvas.popDialog(ParticleEditor);
|
|
ParticleEditor.open = false;
|
|
}
|
|
}
|
|
} |