Expose OPFOR squadrons

This allows for customizing OPFOR liveries, checking whether pilots are assigned, number of pilots available, and more stuff to get information & debug in an easier way...
This commit is contained in:
Raffson 2024-05-11 18:04:20 +02:00
parent 86ef189da4
commit 779f66670f
No known key found for this signature in database
GPG Key ID: B0402B2C9B764D99
3 changed files with 12 additions and 1 deletions

View File

@ -12,6 +12,7 @@
* **[Mission Generation]** Ability to inject custom kneeboards
* **[Options]** Extend option (so it can be disabled when fixed in DCS) to force air-starts (except for the slots that work) at Ramon Airbase, similar to the Nevatim fix in Retribution 1.3.0
* **[Options]** New option in Settings: Default start type for Player flights.
* **[AirWing]** Expose OPFOR Squadrons, giving the ability to change liveries, auto-assignable mission types & an easy way to retrieve debug information.
## Fixes
* **[UI/UX]** A-10A flights can be edited again.

View File

@ -540,6 +540,7 @@ class GameModel:
self.sim_controller = sim_controller
self.transfer_model = TransferModel(self)
self.blue_air_wing_model = AirWingModel(self, player=True)
self.red_air_wing_model = AirWingModel(self, player=False)
if self.game is None:
self.ato_model = AtoModel(self, AirTaskingOrder())
self.red_ato_model = AtoModel(self, AirTaskingOrder())

View File

@ -245,7 +245,16 @@ class AirWingTabs(QTabWidget):
game_model.game.theater,
game_model.sim_controller,
),
"Squadrons",
"Squadrons OWNFOR",
)
self.addTab(
SquadronList(
game_model.red_ato_model,
game_model.red_air_wing_model,
game_model.game.theater,
game_model.sim_controller,
),
"Squadrons OPFOR",
)
self.addTab(AirInventoryView(game_model), "Inventory")