From 779f66670fe1b768a42f572b028943cc068604ee Mon Sep 17 00:00:00 2001 From: Raffson Date: Sat, 11 May 2024 18:04:20 +0200 Subject: [PATCH] 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... --- changelog.md | 1 + qt_ui/models.py | 1 + qt_ui/windows/AirWingDialog.py | 11 ++++++++++- 3 files changed, 12 insertions(+), 1 deletion(-) diff --git a/changelog.md b/changelog.md index 00094acd..9daa566a 100644 --- a/changelog.md +++ b/changelog.md @@ -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. diff --git a/qt_ui/models.py b/qt_ui/models.py index ca93111a..42576253 100644 --- a/qt_ui/models.py +++ b/qt_ui/models.py @@ -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()) diff --git a/qt_ui/windows/AirWingDialog.py b/qt_ui/windows/AirWingDialog.py index 87f902f3..ef2a9c80 100644 --- a/qt_ui/windows/AirWingDialog.py +++ b/qt_ui/windows/AirWingDialog.py @@ -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")