mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
Babysteps towards full OPFOR control
This commit is contained in:
@@ -54,13 +54,6 @@ class CheatSettingsBox(QGroupBox):
|
||||
self.main_layout = QVBoxLayout()
|
||||
self.setLayout(self.main_layout)
|
||||
|
||||
# ATO
|
||||
self.red_ato_checkbox = QCheckBox()
|
||||
self.red_ato_checkbox.setChecked(sc.settings.show_red_ato)
|
||||
self.red_ato_checkbox.toggled.connect(apply_settings)
|
||||
self.red_ato = QLabeledWidget("Show Red ATO:", self.red_ato_checkbox)
|
||||
self.main_layout.addLayout(self.red_ato)
|
||||
|
||||
# Frontline
|
||||
self.frontline_cheat_checkbox = QCheckBox()
|
||||
self.frontline_cheat_checkbox.setChecked(sc.settings.enable_frontline_cheats)
|
||||
@@ -122,10 +115,6 @@ class CheatSettingsBox(QGroupBox):
|
||||
)
|
||||
self.main_layout.addLayout(self.redfor_buysell_cheat)
|
||||
|
||||
@property
|
||||
def show_red_ato(self) -> bool:
|
||||
return self.red_ato_checkbox.isChecked()
|
||||
|
||||
@property
|
||||
def show_frontline_cheat(self) -> bool:
|
||||
return self.frontline_cheat_checkbox.isChecked()
|
||||
@@ -496,7 +485,6 @@ class QSettingsWidget(QtWidgets.QWizardPage, SettingsContainer):
|
||||
def applySettings(self):
|
||||
if self.updating_ui:
|
||||
return
|
||||
self.settings.show_red_ato = self.cheat_options.show_red_ato
|
||||
self.settings.enable_frontline_cheats = self.cheat_options.show_frontline_cheat
|
||||
self.settings.enable_base_capture_cheat = (
|
||||
self.cheat_options.show_base_capture_cheat
|
||||
@@ -525,7 +513,6 @@ class QSettingsWidget(QtWidgets.QWizardPage, SettingsContainer):
|
||||
for p in self.pages.values():
|
||||
p.update_from_settings()
|
||||
|
||||
self.cheat_options.red_ato_checkbox.setChecked(self.settings.show_red_ato)
|
||||
self.cheat_options.base_capture_cheat_checkbox.setChecked(
|
||||
self.settings.enable_base_capture_cheat
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user