Merge pull request #1181 from Azaezel/alpha41/fixVehicleSpawn

fix vheicle add dropwdown spawntypes
This commit is contained in:
Brian Roberts 2024-01-17 13:12:03 -06:00 committed by GitHub
commit af7ca8f0bb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -135,7 +135,7 @@ function ObjectBuilderGui::reset(%this)
%this.createFunction = "";
%this.createCallback = "";
%this.currentControl = 0;
//
OBObjectName.setValue(%this.defaultObjectName);
@ -1480,7 +1480,7 @@ function ObjectBuilderGui::buildAIPlayer(%this)
function ObjectBuilderGui::buildWheeledVehicle(%this)
{
%this.objectClassName = "Player";
%this.objectClassName = "WheeledVehicle";
%this.addField("dataBlock", "TypeDataBlock", "dataBlock", "WheeledVehicleData");
%this.addField("control", "TypeBool", "control?", "false");
%this.process();
@ -1488,7 +1488,7 @@ function ObjectBuilderGui::buildWheeledVehicle(%this)
function ObjectBuilderGui::buildHoverVehicle(%this)
{
%this.objectClassName = "Player";
%this.objectClassName = "HoverVehicle";
%this.addField("dataBlock", "TypeDataBlock", "dataBlock", "HoverVehicleData");
%this.addField("control", "TypeBool", "control?", "false");
%this.process();
@ -1496,7 +1496,7 @@ function ObjectBuilderGui::buildHoverVehicle(%this)
function ObjectBuilderGui::buildFlyingVehicle(%this)
{
%this.objectClassName = "Player";
%this.objectClassName = "FlyingVehicle";
%this.addField("dataBlock", "TypeDataBlock", "dataBlock", "FlyingVehicleData");
%this.addField("control", "TypeBool", "control?", "false");
%this.process();