Add a hint about how to transfer squadrons.

Fixes https://github.com/dcs-liberation/dcs_liberation/issues/1911.
This commit is contained in:
Dan Albert 2022-09-27 19:47:17 -07:00
parent 1e12f1cc80
commit f1562a7b94

View File

@ -1,4 +1,4 @@
from PySide2.QtWidgets import QFrame, QGroupBox, QHBoxLayout, QVBoxLayout from PySide2.QtWidgets import QFrame, QGroupBox, QHBoxLayout, QLabel, QVBoxLayout
from game.theater import ControlPoint from game.theater import ControlPoint
from qt_ui.models import GameModel from qt_ui.models import GameModel
@ -16,7 +16,10 @@ class QAirfieldCommand(QFrame):
self.init_ui() self.init_ui()
def init_ui(self): def init_ui(self):
wrapper_layout = QVBoxLayout()
layout = QHBoxLayout() layout = QHBoxLayout()
wrapper_layout.addLayout(layout)
layout.addWidget(QAircraftRecruitmentMenu(self.cp, self.game_model), stretch=5) layout.addWidget(QAircraftRecruitmentMenu(self.cp, self.game_model), stretch=5)
planned = QGroupBox("Planned Flights") planned = QGroupBox("Planned Flights")
@ -25,4 +28,13 @@ class QAirfieldCommand(QFrame):
planned.setLayout(planned_layout) planned.setLayout(planned_layout)
layout.addWidget(planned, stretch=3) layout.addWidget(planned, stretch=3)
self.setLayout(layout) wrapper_layout.addWidget(
QLabel(
"Purchasing aircraft at this airbase requires squadrons to be present. "
"To transfer additional squadrons to this airbase, open<br />"
"the air wing menu, double click the squadron to transfer, then select "
"the transfer destination."
)
)
self.setLayout(wrapper_layout)