mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-15 16:44:36 +00:00
ObjectBuilderGui::buildSpawnSphere
adds a build callback for the add menu->markers->spawnsphere, using the general case presentation
This commit is contained in:
parent
53a87af2b1
commit
0562e2fea6
1 changed files with 16 additions and 0 deletions
|
|
@ -1502,6 +1502,22 @@ function ObjectBuilderGui::buildFlyingVehicle(%this)
|
||||||
%this.process();
|
%this.process();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function ObjectBuilderGui::buildSpawnSphere(%this)
|
||||||
|
{
|
||||||
|
%this.objectClassName = "SpawnSphere";
|
||||||
|
%this.addField("dataBlock", "TypeDataBlock", "dataBlock", "MissionMarkerData SpawnSphereMarker");
|
||||||
|
%this.addField("radius", "TypeFloat", "Radius", 1);
|
||||||
|
%this.addField("sphereWeight", "TypeFloat", "Sphere Weight", 1);
|
||||||
|
|
||||||
|
%this.addField("spawnClass", "TypeString", "Spawn Class", "");
|
||||||
|
%this.addField("spawnDatablock", "TypeString", "Spawn Data", "");
|
||||||
|
%this.addField("spawnTransform", "TypeBool", "Spawn Here", "true");
|
||||||
|
%this.addField("autoSpawn", "TypeBool", "Auto Spawn Objects", "false");
|
||||||
|
%this.addField("spawnScript", "TypeString", "spawnScript", "%this.spawned = $SpawnObject;");
|
||||||
|
%this.addField("canSaveDynamicFields", "TypeBool", "Save metadata", "false");
|
||||||
|
%this.process();
|
||||||
|
}
|
||||||
|
|
||||||
function ObjectBuilderGui::buildObserverDropPoint(%this)
|
function ObjectBuilderGui::buildObserverDropPoint(%this)
|
||||||
{
|
{
|
||||||
%this.objectClassName = "SpawnSphere";
|
%this.objectClassName = "SpawnSphere";
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue