mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
Add Easy Communication Setting
allow to enforce the mission setting for easy communication implements #1425
This commit is contained in:
parent
d11d3b58f7
commit
2c21644a2c
@ -7,6 +7,7 @@ Saves from 5.x are not compatible with 6.0.
|
|||||||
* **[Engine]** Support for DCS DCS 2.7.8.16140 and newer, including the HTS.
|
* **[Engine]** Support for DCS DCS 2.7.8.16140 and newer, including the HTS.
|
||||||
* **[Mission Generation]** Added an option to fast-forward mission generation until the point of first contact (WIP).
|
* **[Mission Generation]** Added an option to fast-forward mission generation until the point of first contact (WIP).
|
||||||
* **[Flight Planning]** Added the ability to plan tankers for recovery on package flights. AI does not plan.
|
* **[Flight Planning]** Added the ability to plan tankers for recovery on package flights. AI does not plan.
|
||||||
|
* **[Mission Generation]** Add Option to enforce the Easy Communication setting for the mission
|
||||||
|
|
||||||
## Fixes
|
## Fixes
|
||||||
|
|
||||||
|
|||||||
@ -25,6 +25,11 @@ class ForcedOptionsGenerator:
|
|||||||
self.game.settings.external_views_allowed
|
self.game.settings.external_views_allowed
|
||||||
)
|
)
|
||||||
|
|
||||||
|
def _set_easy_communication(self) -> None:
|
||||||
|
self.mission.forced_options.easy_communication = (
|
||||||
|
self.game.settings.easy_communication
|
||||||
|
)
|
||||||
|
|
||||||
def _set_labels(self) -> None:
|
def _set_labels(self) -> None:
|
||||||
# TODO: Fix settings to use the real type.
|
# TODO: Fix settings to use the real type.
|
||||||
# TODO: Allow forcing "full" and have default do nothing.
|
# TODO: Allow forcing "full" and have default do nothing.
|
||||||
@ -51,6 +56,7 @@ class ForcedOptionsGenerator:
|
|||||||
def generate(self) -> None:
|
def generate(self) -> None:
|
||||||
self._set_options_view()
|
self._set_options_view()
|
||||||
self._set_external_views()
|
self._set_external_views()
|
||||||
|
self._set_easy_communication()
|
||||||
self._set_labels()
|
self._set_labels()
|
||||||
self._set_unrestricted_satnav()
|
self._set_unrestricted_satnav()
|
||||||
self._set_battle_damage_assessment()
|
self._set_battle_damage_assessment()
|
||||||
|
|||||||
@ -138,6 +138,15 @@ class Settings:
|
|||||||
MISSION_RESTRICTIONS_SECTION,
|
MISSION_RESTRICTIONS_SECTION,
|
||||||
default=True,
|
default=True,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
easy_communication: Optional[bool] = choices_option(
|
||||||
|
"Easy Communication",
|
||||||
|
page=DIFFICULTY_PAGE,
|
||||||
|
section=MISSION_RESTRICTIONS_SECTION,
|
||||||
|
choices={"Player preference": None, "Enforced on": True, "Enforced off": False},
|
||||||
|
default=None,
|
||||||
|
)
|
||||||
|
|
||||||
battle_damage_assessment: Optional[bool] = choices_option(
|
battle_damage_assessment: Optional[bool] = choices_option(
|
||||||
"Battle damage assessment",
|
"Battle damage assessment",
|
||||||
page=DIFFICULTY_PAGE,
|
page=DIFFICULTY_PAGE,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user