imports update

This commit is contained in:
spencer-ki 2022-03-01 20:21:02 -08:00
parent 5c3e4b1cf2
commit d70e0544f2
14 changed files with 9 additions and 3 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -597,6 +597,9 @@ p, li { white-space: pre-wrap; }
</property>
</widget>
<widget class="QCheckBox" name="defense_checkBox">
<property name="enabled">
<bool>true</bool>
</property>
<property name="geometry">
<rect>
<x>60</x>
@ -613,6 +616,9 @@ p, li { white-space: pre-wrap; }
<property name="text">
<string>Defensive Mode</string>
</property>
<property name="checkable">
<bool>true</bool>
</property>
</widget>
<widget class="QSpinBox" name="e_attack_helos_spinBox">
<property name="geometry">

View File

@ -43,6 +43,8 @@ class ImportObjects:
self.source_heading = group.units[0].heading
else:
logger.warning("Unable to find group for anchor.")
raise Exception(
"Import template file error: " + self.mizfile + " does not contain a group called " + group_name)
def extractUnits(self):

View File

@ -257,7 +257,7 @@ class RotorOpsMission:
else:
staging_position = blue_zones[zone_name].position
staging_heading = 0
i = ImportObjects("STAGING_LOGISITIC_HUB.miz")
i = ImportObjects("STAGING_LOGISTIC_HUB.miz")
i.anchorByGroupName("ANCHOR")
i.copyAll(self.m, jtf_blue, "Staging Logistics Zone",
staging_position, staging_heading)
@ -296,8 +296,6 @@ class RotorOpsMission:
self.addResources(self.sound_directory, self.script_directory)
RotorOpsConflict.triggerSetup(self, options)
# test adding static objects from a .miz
#self.addStatics()
#Save the mission file
os.chdir(self.output_dir)

Binary file not shown.