mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
Add cheats for destroying and repairing runways.
This commit is contained in:
@@ -81,6 +81,18 @@ class CheatSettingsBox(QGroupBox):
|
||||
self.base_capture_cheat = QLabeledWidget(
|
||||
"Enable Base Capture Cheat:", self.base_capture_cheat_checkbox
|
||||
)
|
||||
|
||||
self.base_runway_state_cheat_checkbox = QCheckBox()
|
||||
self.base_runway_state_cheat_checkbox.setChecked(
|
||||
game.settings.enable_runway_state_cheat
|
||||
)
|
||||
self.base_runway_state_cheat_checkbox.toggled.connect(apply_settings)
|
||||
self.main_layout.addLayout(
|
||||
QLabeledWidget(
|
||||
"Enable runway state cheat:", self.base_runway_state_cheat_checkbox
|
||||
)
|
||||
)
|
||||
|
||||
self.main_layout.addLayout(self.base_capture_cheat)
|
||||
self.transfer_cheat = QLabeledWidget(
|
||||
"Enable Instant Squadron Transfer Cheat:", self.transfer_cheat_checkbox
|
||||
@@ -103,6 +115,9 @@ class CheatSettingsBox(QGroupBox):
|
||||
def show_transfer_cheat(self) -> bool:
|
||||
return self.transfer_cheat_checkbox.isChecked()
|
||||
|
||||
def enable_runway_state_cheat(self) -> bool:
|
||||
return self.base_runway_state_cheat_checkbox.isChecked()
|
||||
|
||||
|
||||
class AutoSettingsLayout(QGridLayout):
|
||||
def __init__(
|
||||
@@ -451,6 +466,9 @@ class QSettingsWidget(QtWidgets.QWizardPage, SettingsContainer):
|
||||
self.cheat_options.show_base_capture_cheat
|
||||
)
|
||||
self.settings.enable_transfer_cheat = self.cheat_options.show_transfer_cheat
|
||||
self.game.settings.enable_runway_state_cheat = (
|
||||
self.cheat_options.enable_runway_state_cheat
|
||||
)
|
||||
|
||||
if self.game:
|
||||
events = GameUpdateEvents()
|
||||
|
||||
Reference in New Issue
Block a user