mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
Implemented a Pretense settings page.
This commit is contained in:
parent
b508ef9aec
commit
87975b9aad
@ -49,6 +49,8 @@ FLIGHT_PLANNER_AUTOMATION = "Flight Planner Automation"
|
||||
CAMPAIGN_DOCTRINE_PAGE = "Campaign Doctrine"
|
||||
DOCTRINE_DISTANCES_SECTION = "Doctrine distances"
|
||||
|
||||
PRETENSE_PAGE = "Pretense"
|
||||
|
||||
MISSION_GENERATOR_PAGE = "Mission Generator"
|
||||
|
||||
GAMEPLAY_SECTION = "Gameplay"
|
||||
@ -971,6 +973,28 @@ class Settings:
|
||||
"if the start-up type was manually changed to 'In-Flight'."
|
||||
),
|
||||
)
|
||||
pretense_maxdistfromfront_distance: int = bounded_int_option(
|
||||
"Max distance from front (km)",
|
||||
page=PRETENSE_PAGE,
|
||||
section=GENERAL_SECTION,
|
||||
default=130,
|
||||
min=10,
|
||||
max=10000,
|
||||
)
|
||||
pretense_closeoverride_distance: int = bounded_int_option(
|
||||
"Close override distance (km)",
|
||||
page=PRETENSE_PAGE,
|
||||
section=GENERAL_SECTION,
|
||||
default=28,
|
||||
min=5,
|
||||
max=10000,
|
||||
)
|
||||
pretense_do_not_generate_sead_missions: bool = boolean_option(
|
||||
"Do not generate player SEAD missions",
|
||||
page=PRETENSE_PAGE,
|
||||
section=PERFORMANCE_SECTION,
|
||||
default=False,
|
||||
)
|
||||
|
||||
# Cheating. Not using auto settings because the same page also has buttons which do
|
||||
# not alter settings.
|
||||
|
||||
@ -32,7 +32,8 @@ def load_icons():
|
||||
"./resources/ui/misc/" + get_theme_icons() + "/github.png"
|
||||
)
|
||||
ICONS["Ukraine"] = QPixmap("./resources/ui/misc/ukraine.png")
|
||||
ICONS["Pretense"] = QPixmap("./resources/ui/misc/pretense_discord.png")
|
||||
ICONS["Pretense"] = QPixmap("./resources/ui/misc/pretense.png")
|
||||
ICONS["Pretense_discord"] = QPixmap("./resources/ui/misc/pretense_discord.png")
|
||||
ICONS["Pretense_generate"] = QPixmap("./resources/ui/misc/pretense_generate.png")
|
||||
|
||||
ICONS["Control Points"] = QPixmap(
|
||||
|
||||
@ -195,7 +195,7 @@ class QLiberationWindow(QMainWindow):
|
||||
)
|
||||
|
||||
self.pretenseLinkAction = QAction("&DCS: Pretense", self)
|
||||
self.pretenseLinkAction.setIcon(QIcon(CONST.ICONS["Pretense"]))
|
||||
self.pretenseLinkAction.setIcon(QIcon(CONST.ICONS["Pretense_discord"]))
|
||||
self.pretenseLinkAction.triggered.connect(
|
||||
lambda: webbrowser.open_new_tab(
|
||||
"https://" + "discord.gg" + "/" + "PtPsb9Mpk6"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user