Initial commit
This commit is contained in:
44
Torque/SDK/example/ParticleEditor/scripts/init.cs
Normal file
44
Torque/SDK/example/ParticleEditor/scripts/init.cs
Normal file
@@ -0,0 +1,44 @@
|
||||
//-----------------------------------------------------------------------------
|
||||
// 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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user