From 02b7cd7fb3665c068e08a973f27a4ba3dbb9e860 Mon Sep 17 00:00:00 2001
From: Raffson
Date: Sun, 18 Sep 2022 18:13:59 +0200
Subject: [PATCH] Update main.py
Replace UI occurrence of 'Liberation' with 'Retribution'
---
qt_ui/main.py | 13 ++++++++-----
1 file changed, 8 insertions(+), 5 deletions(-)
diff --git a/qt_ui/main.py b/qt_ui/main.py
index b08c110e..553534e1 100644
--- a/qt_ui/main.py
+++ b/qt_ui/main.py
@@ -122,14 +122,16 @@ def run_ui(game: Game | None, dev: bool) -> None:
message_box.setWindowTitle("No DCS installation directory.")
message_box.setText(
"The DCS Installation directory is not set correctly. "
- "This will prevent DCS Liberation from working properly, as the MissionScripting "
+ "This will prevent DCS Retribution from working properly, as the MissionScripting "
"file will not be modified."
"
To solve this problem, you can set the Installation directory "
"within the preferences menu. You can also manually edit or replace the "
"following file:"
"
<dcs_installation_directory>/Scripts/MissionScripting.lua"
- "
The easiest way to do it is to replace the original file with the file in dcs-liberation distribution (<dcs_liberation_installation>/resources/scripts/MissionScripting.lua)."
- "
You can find more information on how to manually change this file in the Liberation Wiki (Page: Dedicated Server Guide) on GitHub.
"
+ "
The easiest way to do it is to replace the original file with the file in dcs-retribution "
+ "distribution (<dcs_retribution_installation>/resources/scripts/MissionScripting.lua)."
+ "
You can find more information on how to manually change this file in the Liberation Wiki "
+ "(Page: Dedicated Server Guide) on GitHub."
)
message_box.setDefaultButton(QtWidgets.QMessageBox.StandardButton.Ok)
message_box.setCheckBox(ignore_checkbox)
@@ -141,7 +143,8 @@ def run_ui(game: Game | None, dev: bool) -> None:
error_dialog = QtWidgets.QErrorMessage()
error_dialog.setWindowTitle("Wrong DCS installation directory.")
error_dialog.showMessage(
- "Unable to modify Mission Scripting file. Possible issues with rights. Try running as admin, or please perform the modification of the MissionScripting file manually."
+ "Unable to modify Mission Scripting file. Possible issues with rights. "
+ "Try running as admin, or please perform the modification of the MissionScripting file manually."
)
error_dialog.exec_()
@@ -249,7 +252,7 @@ def create_game(
first_start = liberation_install.init()
if first_start:
sys.exit(
- "Cannot generate campaign without configuring DCS Liberation. Start the UI "
+ "Cannot generate campaign without configuring DCS Retribution. Start the UI "
"for the first run configuration."
)