Update 'About' dialog

This commit is contained in:
Raffson 2022-09-18 17:45:12 +02:00
parent 9c6c21ca76
commit 8af2d888d4
No known key found for this signature in database
GPG Key ID: B0402B2C9B764D99

View File

@ -166,7 +166,7 @@ class QLiberationWindow(QMainWindow):
self.saveAsAction.triggered.connect(self.saveGameAs) self.saveAsAction.triggered.connect(self.saveGameAs)
self.saveAsAction.setShortcut("CTRL+A") self.saveAsAction.setShortcut("CTRL+A")
self.showAboutDialogAction = QAction("&About DCS Liberation", self) self.showAboutDialogAction = QAction("&About DCS Retribution", self)
self.showAboutDialogAction.setIcon(QIcon.fromTheme("help-about")) self.showAboutDialogAction.setIcon(QIcon.fromTheme("help-about"))
self.showAboutDialogAction.triggered.connect(self.showAboutDialog) self.showAboutDialogAction.triggered.connect(self.showAboutDialog)
@ -462,14 +462,18 @@ class QLiberationWindow(QMainWindow):
"NickJZX", "NickJZX",
"Sith1144", "Sith1144",
"Raffson", "Raffson",
"MetalStormGhost",
] ]
text = ( text = (
"<h3>DCS Liberation " "<h3>DCS Retribution " + VERSION + "</h3>" + "<b>Source code : </b>"
+ VERSION "<a href='https://github.com/dcs-retribution/dcs-retribution' style='color:white'>"
+ "</h3>" "https://github.com/dcs-retribution/dcs-retribution </a>"
+ "<b>Source code :</b> https://github.com/dcs-liberation/dcs_liberation"
+ "<h4>Authors</h4>" + "<h4>Authors</h4>"
+ "<p>DCS Liberation was originally developed by <b>shdwp</b>, DCS Liberation 2.0 is a partial rewrite based on this work by <b>Khopa</b>." + "<p>DCS Retribution is an (independent) fork of DCS Liberation, "
"which was originally developed by <b>shdwp</b>. "
"DCS Liberation 2.0 is a partial rewrite based on this work by <b>Khopa</b>. "
"DCS Retribution was forked during development of "
"DCS Liberation v6.0.0 in 2022 by <b>Raffson</> & <b>MetalStormGhost</>."
"<h4>Contributors</h4>" "<h4>Contributors</h4>"
+ ", ".join(contributors) + ", ".join(contributors)
+ "<h4>Special Thanks :</h4>" + "<h4>Special Thanks :</h4>"
@ -479,10 +483,12 @@ class QLiberationWindow(QMainWindow):
"<b>Walder </b> <i>for the Skynet-IADS script</i><br/>" "<b>Walder </b> <i>for the Skynet-IADS script</i><br/>"
"<b>Anubis Yinepu </b> <i>for the Hercules Cargo script</i><br/>" "<b>Anubis Yinepu </b> <i>for the Hercules Cargo script</i><br/>"
+ "<h4>Splash Screen :</h4>" + "<h4>Splash Screen :</h4>"
+ "Artwork by Andriy Dankovych (CC BY-SA) [https://www.facebook.com/AndriyDankovych]" + "Artwork by Andriy Dankovych (CC BY-SA)"
" <a href='https://www.facebook.com/AndriyDankovych' style='color:white'>"
"[https://www.facebook.com/AndriyDankovych]</a>"
) )
about = QMessageBox() about = QMessageBox()
about.setWindowTitle("About DCS Liberation") about.setWindowTitle("About DCS Retribution")
about.setIcon(QMessageBox.Icon.Information) about.setIcon(QMessageBox.Icon.Information)
about.setText(text) about.setText(text)
logging.info(about.textFormat()) logging.info(about.textFormat())