Super Hornet mod support (#3331)

F/A-18E and F/A-18F are added to their factions, Growler is currently in
its respective factions but was released in 2009, this will be changed
if needed.
This commit is contained in:
Chilli935
2024-01-28 00:14:57 +01:00
committed by GitHub
parent 5af4e56f30
commit e1d443b697
14 changed files with 66 additions and 0 deletions

View File

@@ -204,6 +204,7 @@ class NewGameWizard(QtWidgets.QWizard):
ov10a_bronco=self.field("ov10a_bronco"),
frenchpack=self.field("frenchpack"),
high_digit_sams=self.field("high_digit_sams"),
superhornet=self.field("superhornet"),
)
mod_settings.save_player_settings()
@@ -826,6 +827,10 @@ class GeneratorOptions(QtWidgets.QWizardPage):
high_digit_sams.setChecked(mod_settings.high_digit_sams)
self.registerField("high_digit_sams", high_digit_sams)
superhornet = QtWidgets.QCheckBox()
superhornet.setChecked(mod_settings.superhornet)
self.registerField("superhornet", superhornet)
modHelpText = QtWidgets.QLabel(
"<p>Select the mods you have installed. If your chosen factions support them, you'll be able to use these mods in your campaign.</p>"
)
@@ -877,6 +882,11 @@ class GeneratorOptions(QtWidgets.QWizardPage):
modLayout.addWidget(QtWidgets.QLabel("High Digit SAMs"), modLayout_row, 0)
modLayout.addWidget(high_digit_sams, modLayout_row, 1)
modSettingsGroup.setLayout(modLayout)
modLayout_row += 1
modLayout.addWidget(QtWidgets.QLabel("Super Hornet"), modLayout_row, 0)
modLayout.addWidget(superhornet, modLayout_row, 1)
modSettingsGroup.setLayout(modLayout)
modLayout_row += 1
mlayout = QVBoxLayout()
mlayout.addWidget(generatorSettingsGroup)