mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
Mission planning has been completely redone. Missions are now planned by right clicking the target area and choosing "New package". A package can include multiple flights for the same objective. Right now the automatic flight planner is only fragging single-flight packages in the same manner that it used to, but that can be improved now. The air tasking order (ATO) is now the left bar of the main UI. This shows every fragged package, and the flights in the selected package. The info bar that was previously on the left is now a smaller bar at the bottom of the screen. The old "Mission Planning" button is now just the "Take Off" button. The flight plan display no longer shows enemy flight plans. That could be re-added if needed, probably with a difficulty/cheat option. Aircraft inventories have been disassociated from the Planner class. Aircraft inventories are now stored globally in the Game object. Save games made prior to this update will not be compatible do to the changes in how aircraft inventories and planned flights are stored.
35 lines
1.1 KiB
Python
35 lines
1.1 KiB
Python
from PySide2.QtWidgets import QFrame, QGridLayout, QGroupBox, QVBoxLayout
|
|
|
|
from qt_ui.models import GameModel
|
|
from qt_ui.windows.basemenu.airfield.QAircraftRecruitmentMenu import \
|
|
QAircraftRecruitmentMenu
|
|
from qt_ui.windows.mission.QPlannedFlightsView import QPlannedFlightsView
|
|
from theater import ControlPoint
|
|
|
|
|
|
class QAirfieldCommand(QFrame):
|
|
|
|
def __init__(self, cp:ControlPoint, game_model: GameModel):
|
|
super(QAirfieldCommand, self).__init__()
|
|
self.cp = cp
|
|
self.game_model = game_model
|
|
self.init_ui()
|
|
|
|
def init_ui(self):
|
|
layout = QGridLayout()
|
|
layout.addWidget(QAircraftRecruitmentMenu(self.cp, self.game_model), 0, 0)
|
|
|
|
try:
|
|
planned = QGroupBox("Planned Flights")
|
|
planned_layout = QVBoxLayout()
|
|
planned_layout.addWidget(
|
|
QPlannedFlightsView(self.game_model, self.cp)
|
|
)
|
|
planned.setLayout(planned_layout)
|
|
layout.addWidget(planned, 0, 1)
|
|
except:
|
|
pass
|
|
|
|
#layout.addWidget(QAirportInformation(self.cp, self.game.theater.terrain.airport_by_id(self.cp.id)), 0, 2)
|
|
self.setLayout(layout)
|