Initial commit
This commit is contained in:
@@ -0,0 +1,57 @@
|
||||
datablock ParticleData(DefaultParticle)
|
||||
{
|
||||
dragCoefficient = 0;
|
||||
gravityCoefficient = -0.315018;
|
||||
windCoefficient = 0;
|
||||
inheritedVelFactor = 0;
|
||||
constantAcceleration = 0;
|
||||
lifetimeMS = 480;
|
||||
lifetimeVarianceMS = 224;
|
||||
useInvAlpha = 0;
|
||||
spinRandomMin = -30;
|
||||
spinRandomMax = 30;
|
||||
textureName = "./particletest";
|
||||
spinSpeed = 0;
|
||||
times[0] = 0;
|
||||
times[1] = 0.494118;
|
||||
times[2] = 1;
|
||||
colors[0] = "0.771654 0.582677 0.000000 0.055118";
|
||||
colors[1] = "0.771654 0.582677 0.000000 0.055118";
|
||||
colors[2] = "0.000000 0.000000 0.000000 0.000000";
|
||||
sizes[0] = 0.98883;
|
||||
sizes[1] = 0.98883;
|
||||
sizes[2] = 4.98993;
|
||||
};
|
||||
|
||||
datablock ParticleEmitterData(DefaultEmitter)
|
||||
{
|
||||
ejectionPeriodMS = 15;
|
||||
periodVarianceMS = 5;
|
||||
ejectionVelocity = 0.25;
|
||||
velocityVariance = 0.07;
|
||||
ejectionOffset = 0;
|
||||
thetaMin = 0;
|
||||
thetaMax = 90;
|
||||
phiReferenceVel = 0;
|
||||
phiVariance = 360;
|
||||
overrideAdvances = 0;
|
||||
orientParticles= 0;
|
||||
orientOnVelocity = 1;
|
||||
particles = "DefaultParticle";
|
||||
};
|
||||
|
||||
|
||||
datablock ParticleEmitterNodeData(DefaultEmitterNode)
|
||||
{
|
||||
timeMultiple = 1;
|
||||
};
|
||||
|
||||
datablock ParticleEmitterNodeData(DoubleTimeEmitterNode)
|
||||
{
|
||||
timeMultiple = 2;
|
||||
};
|
||||
|
||||
datablock ParticleEmitterNodeData(HalfTimeEmitterNode)
|
||||
{
|
||||
timeMultiple = 0.5;
|
||||
};
|
||||
Binary file not shown.
@@ -0,0 +1,41 @@
|
||||
datablock ParticleData(RainbowSpiralParticle)
|
||||
{
|
||||
dragCoefficient = 0;
|
||||
gravityCoefficient = -1.37485;
|
||||
windCoefficient = 0;
|
||||
inheritedVelFactor = 0;
|
||||
constantAcceleration = 0;
|
||||
lifetimeMS = 992;
|
||||
lifetimeVarianceMS = 96;
|
||||
useInvAlpha = 1;
|
||||
spinRandomMin = -649;
|
||||
spinRandomMax = 13;
|
||||
textureName = "";
|
||||
spinSpeed = 0;
|
||||
times[0] = 0;
|
||||
times[1] = 0.74902;
|
||||
times[2] = 1;
|
||||
colors[0] = "1.000000 0.000000 0.000000 0.000000";
|
||||
colors[1] = "0.000000 1.000000 0.000000 1.000000";
|
||||
colors[2] = "0.000000 0.000000 1.000000 0.000000";
|
||||
sizes[0] = 1.02851;
|
||||
sizes[1] = 1.02851;
|
||||
sizes[2] = 1.02851;
|
||||
};
|
||||
|
||||
datablock ParticleEmitterData(RainbowSpiralEmitter)
|
||||
{
|
||||
ejectionPeriodMS = 5;
|
||||
periodVarianceMS = 0;
|
||||
ejectionVelocity = 4.5;
|
||||
velocityVariance = 0;
|
||||
ejectionOffset = 0;
|
||||
thetaMin = 90;
|
||||
thetaMax = 90;
|
||||
phiReferenceVel = 360;
|
||||
phiVariance = 0;
|
||||
overrideAdvances = 1;
|
||||
orientParticles= 0;
|
||||
orientOnVelocity = 1;
|
||||
particles = "RainbowSpiralParticle";
|
||||
};
|
||||
Binary file not shown.
BIN
Torque/SDK/example/ParticleEditor/Particles/Thumbs.db
Normal file
BIN
Torque/SDK/example/ParticleEditor/Particles/Thumbs.db
Normal file
Binary file not shown.
BIN
Torque/SDK/example/ParticleEditor/Particles/dustParticle.png
Normal file
BIN
Torque/SDK/example/ParticleEditor/Particles/dustParticle.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.6 KiB |
BIN
Torque/SDK/example/ParticleEditor/Particles/fire.png
Normal file
BIN
Torque/SDK/example/ParticleEditor/Particles/fire.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.2 KiB |
BIN
Torque/SDK/example/ParticleEditor/Particles/particletest.png
Normal file
BIN
Torque/SDK/example/ParticleEditor/Particles/particletest.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 2.7 KiB |
BIN
Torque/SDK/example/ParticleEditor/Particles/smoke.png
Normal file
BIN
Torque/SDK/example/ParticleEditor/Particles/smoke.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.1 KiB |
BIN
Torque/SDK/example/ParticleEditor/Particles/spark.png
Normal file
BIN
Torque/SDK/example/ParticleEditor/Particles/spark.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.4 KiB |
BIN
Torque/SDK/example/ParticleEditor/Particles/splash.png
Normal file
BIN
Torque/SDK/example/ParticleEditor/Particles/splash.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.3 KiB |
49
Torque/SDK/example/ParticleEditor/main.cs
Normal file
49
Torque/SDK/example/ParticleEditor/main.cs
Normal file
@@ -0,0 +1,49 @@
|
||||
//-----------------------------------------------------------------------------
|
||||
// Torque Game Engine
|
||||
//
|
||||
// Copyright (c) 2001 GarageGames.Com
|
||||
// Portions Copyright (c) 2001 by Sierra Online, Inc.
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// Package overrides to initialize the mod.
|
||||
|
||||
package ParticleEditor {
|
||||
|
||||
function displayHelp() {
|
||||
Parent::displayHelp();
|
||||
error("Particle Editor options:\n");
|
||||
}
|
||||
|
||||
function OptionsDlg::onWake( %this ) {
|
||||
if($YourKeyRemap !$= "true") {
|
||||
$RemapName[$RemapCount]="Toggle Particle Editor";
|
||||
$RemapCmd[$RemapCount]="toggleParticleEditor";
|
||||
$RemapCount++;
|
||||
$YourKeyRemap = "true";
|
||||
}
|
||||
parent::onWake(%this);
|
||||
}
|
||||
|
||||
function loadMissionStage2()
|
||||
{
|
||||
%fileSpec = "./Particles/*.cs";
|
||||
for ( %file = findFirstFile( %fileSpec ); %file !$= ""; %file = findNextFile( %fileSpec ) )
|
||||
exec( %file );
|
||||
|
||||
Parent::loadMissionStage2();
|
||||
}
|
||||
|
||||
function onStart()
|
||||
{
|
||||
echo("\n--------- Initializing MOD: Particle Editor ---------");
|
||||
Parent::onStart();
|
||||
|
||||
// Load the scripts that start it all...
|
||||
exec("./ui/init.cs");
|
||||
exec("./scripts/init.cs");
|
||||
}
|
||||
|
||||
}; // Client package
|
||||
|
||||
activatePackage(ParticleEditor);
|
||||
BIN
Torque/SDK/example/ParticleEditor/main.cs.dso
Normal file
BIN
Torque/SDK/example/ParticleEditor/main.cs.dso
Normal file
Binary file not shown.
1291
Torque/SDK/example/ParticleEditor/scripts/ParticleEditor.cs
Normal file
1291
Torque/SDK/example/ParticleEditor/scripts/ParticleEditor.cs
Normal file
File diff suppressed because it is too large
Load Diff
BIN
Torque/SDK/example/ParticleEditor/scripts/ParticleEditor.cs.dso
Normal file
BIN
Torque/SDK/example/ParticleEditor/scripts/ParticleEditor.cs.dso
Normal file
Binary file not shown.
1
Torque/SDK/example/ParticleEditor/scripts/Saves.cs
Normal file
1
Torque/SDK/example/ParticleEditor/scripts/Saves.cs
Normal file
@@ -0,0 +1 @@
|
||||
$Particle::Save1 = "RainbowSpiralEmitter\nRainbowSpiralParticle\n5\n0\n4.5\n0\n0\n90\n90\n360\n0\n0\n1\n1\n0\n0\n-1.37485\n0\n0\n992\n96\n1\n-649\n13\n0\n\n0\n0\n0.74902\n1\n1.000000 0.000000 0.000000 0.000000\n0.000000 1.000000 0.000000 1.000000\n0.000000 0.000000 1.000000 0.000000\n1.02851\n1.02851\n1.02851";
|
||||
BIN
Torque/SDK/example/ParticleEditor/scripts/Saves.cs.dso
Normal file
BIN
Torque/SDK/example/ParticleEditor/scripts/Saves.cs.dso
Normal file
Binary file not shown.
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;
|
||||
}
|
||||
}
|
||||
}
|
||||
BIN
Torque/SDK/example/ParticleEditor/scripts/init.cs.dso
Normal file
BIN
Torque/SDK/example/ParticleEditor/scripts/init.cs.dso
Normal file
Binary file not shown.
1668
Torque/SDK/example/ParticleEditor/ui/ParticleEditor.gui
Normal file
1668
Torque/SDK/example/ParticleEditor/ui/ParticleEditor.gui
Normal file
File diff suppressed because it is too large
Load Diff
BIN
Torque/SDK/example/ParticleEditor/ui/ParticleEditor.gui.dso
Normal file
BIN
Torque/SDK/example/ParticleEditor/ui/ParticleEditor.gui.dso
Normal file
Binary file not shown.
8
Torque/SDK/example/ParticleEditor/ui/init.cs
Normal file
8
Torque/SDK/example/ParticleEditor/ui/init.cs
Normal file
@@ -0,0 +1,8 @@
|
||||
//-----------------------------------------------------------------------------
|
||||
// Torque Game Engine
|
||||
//
|
||||
// Copyright (c) 2001 GarageGames.Com
|
||||
// Portions Copyright (c) 2001 by Sierra Online, Inc.
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
exec("./ParticleEditor.gui");
|
||||
BIN
Torque/SDK/example/ParticleEditor/ui/init.cs.dso
Normal file
BIN
Torque/SDK/example/ParticleEditor/ui/init.cs.dso
Normal file
Binary file not shown.
Reference in New Issue
Block a user