From 0562e2fea6b9580d121f564864c7b0096ab9bcf9 Mon Sep 17 00:00:00 2001 From: AzaezelX Date: Sat, 1 Mar 2025 18:40:49 -0600 Subject: [PATCH] ObjectBuilderGui::buildSpawnSphere adds a build callback for the add menu->markers->spawnsphere, using the general case presentation --- .../worldEditor/gui/objectBuilderGui.ed.gui | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/Templates/BaseGame/game/tools/worldEditor/gui/objectBuilderGui.ed.gui b/Templates/BaseGame/game/tools/worldEditor/gui/objectBuilderGui.ed.gui index 5b605c839..655348e4f 100644 --- a/Templates/BaseGame/game/tools/worldEditor/gui/objectBuilderGui.ed.gui +++ b/Templates/BaseGame/game/tools/worldEditor/gui/objectBuilderGui.ed.gui @@ -1502,6 +1502,22 @@ function ObjectBuilderGui::buildFlyingVehicle(%this) %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) { %this.objectClassName = "SpawnSphere";