mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
Formatting...
This commit is contained in:
@@ -10,7 +10,6 @@ from game.game import TurnState
|
||||
|
||||
|
||||
class GameUpdateSignal(QObject):
|
||||
|
||||
instance = None
|
||||
gameupdated = Signal(Game)
|
||||
budgetupdated = Signal(Game)
|
||||
|
||||
@@ -30,7 +30,6 @@ from qt_ui.windows.GameUpdateSignal import GameUpdateSignal
|
||||
|
||||
|
||||
class DebriefingFileWrittenSignal(QObject):
|
||||
|
||||
instance = None
|
||||
debriefingReceived = Signal(Debriefing)
|
||||
|
||||
|
||||
@@ -57,7 +57,6 @@ class QGroundObjectMenu(QDialog):
|
||||
self.init_ui()
|
||||
|
||||
def init_ui(self):
|
||||
|
||||
self.mainLayout = QVBoxLayout()
|
||||
self.budget = QBudgetBox(self.game)
|
||||
self.budget.setGame(self.game)
|
||||
@@ -92,7 +91,6 @@ class QGroundObjectMenu(QDialog):
|
||||
self.setLayout(self.mainLayout)
|
||||
|
||||
def doLayout(self):
|
||||
|
||||
self.update_total_value()
|
||||
self.intelBox = QGroupBox("Units :")
|
||||
self.intelLayout = QGridLayout()
|
||||
|
||||
@@ -160,7 +160,6 @@ class IntelWindow(QDialog):
|
||||
self.refresh_layout()
|
||||
|
||||
def refresh_layout(self) -> None:
|
||||
|
||||
# Clear the existing layout
|
||||
if self.layout():
|
||||
idx = 0
|
||||
|
||||
@@ -14,7 +14,6 @@ class QFlightWaypointInfoBox(QGroupBox):
|
||||
self.init_ui()
|
||||
|
||||
def init_ui(self) -> None:
|
||||
|
||||
layout = QVBoxLayout()
|
||||
|
||||
x_pos_layout = QHBoxLayout()
|
||||
|
||||
@@ -60,7 +60,6 @@ class QFlightWaypointTab(QFrame):
|
||||
|
||||
self.recreate_buttons.clear()
|
||||
for task in self.package.target.mission_types(for_player=True):
|
||||
|
||||
if task == FlightType.AIR_ASSAULT and not self.game.settings.plugin_option(
|
||||
"ctld"
|
||||
):
|
||||
|
||||
@@ -27,7 +27,6 @@ PREDEFINED_WAYPOINT_CATEGORIES = [
|
||||
|
||||
|
||||
class QPredefinedWaypointSelectionWindow(QDialog):
|
||||
|
||||
# List of FlightWaypoint
|
||||
waypoints_added = Signal(list)
|
||||
|
||||
|
||||
@@ -442,7 +442,6 @@ class FactionSelection(QtWidgets.QWizardPage):
|
||||
self.updateUnitRecap()
|
||||
|
||||
def updateUnitRecap(self):
|
||||
|
||||
red_faction = FACTIONS[self.redFactionSelect.currentText()]
|
||||
blue_faction = FACTIONS[self.blueFactionSelect.currentText()]
|
||||
|
||||
|
||||
@@ -87,7 +87,6 @@ class QLiberationPreferences(QFrame):
|
||||
self.edit_dcs_install_dir.setText(install_dir)
|
||||
|
||||
def apply(self):
|
||||
|
||||
print("Applying changes")
|
||||
self.saved_game_dir = self.edit_saved_game_dir.text()
|
||||
self.dcs_install_dir = self.edit_dcs_install_dir.text()
|
||||
|
||||
@@ -331,7 +331,6 @@ class QSettingsWindow(QDialog):
|
||||
self.setLayout(self.layout)
|
||||
|
||||
def initCheatLayout(self):
|
||||
|
||||
self.cheatPage = QWidget()
|
||||
self.cheatLayout = QVBoxLayout()
|
||||
self.cheatPage.setLayout(self.cheatLayout)
|
||||
|
||||
@@ -18,7 +18,6 @@ class QAircraftChart(QFrame):
|
||||
self.setLayout(self.layout)
|
||||
|
||||
def generateUnitCharts(self):
|
||||
|
||||
self.alliedAircraft = [
|
||||
d.allied_units.aircraft_count for d in self.game.game_stats.data_per_turn
|
||||
]
|
||||
|
||||
@@ -18,7 +18,6 @@ class QArmorChart(QFrame):
|
||||
self.setLayout(self.layout)
|
||||
|
||||
def generateUnitCharts(self):
|
||||
|
||||
self.alliedArmor = [
|
||||
d.allied_units.vehicles_count for d in self.game.game_stats.data_per_turn
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user