mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
20 lines
626 B
Python
20 lines
626 B
Python
from PySide2.QtWidgets import QFrame, QGridLayout
|
|
|
|
from game import Game
|
|
from game.theater import ControlPoint
|
|
from qt_ui.windows.basemenu.base_defenses.QBaseInformation import QBaseInformation
|
|
|
|
|
|
class QBaseDefensesHQ(QFrame):
|
|
def __init__(self, cp: ControlPoint, game: Game):
|
|
super(QBaseDefensesHQ, self).__init__()
|
|
self.cp = cp
|
|
self.game = game
|
|
self.init_ui()
|
|
|
|
def init_ui(self):
|
|
airport = self.game.theater.terrain.airport_by_id(self.cp.id)
|
|
layout = QGridLayout()
|
|
layout.addWidget(QBaseInformation(self.cp, airport, self.game))
|
|
self.setLayout(layout)
|