mirror of
https://github.com/dcs-liberation/dcs_liberation.git
synced 2025-11-10 14:22:26 +00:00
Add infor about delayed flights to the start page.
Fixes https://github.com/Khopa/dcs_liberation/issues/398
This commit is contained in:
parent
5928f29f11
commit
98fd707aea
@ -13,8 +13,9 @@ from PySide2.QtWidgets import (
|
|||||||
QLabel,
|
QLabel,
|
||||||
QMessageBox,
|
QMessageBox,
|
||||||
QPushButton,
|
QPushButton,
|
||||||
QTextEdit,
|
QTextBrowser,
|
||||||
)
|
)
|
||||||
|
from jinja2 import Environment, FileSystemLoader, select_autoescape
|
||||||
|
|
||||||
from game.debriefing import Debriefing, wait_for_debriefing
|
from game.debriefing import Debriefing, wait_for_debriefing
|
||||||
from game.game import Event, Game, logging
|
from game.game import Event, Game, logging
|
||||||
@ -65,27 +66,21 @@ class QWaitingForMissionResultWindow(QDialog):
|
|||||||
self.layout.addWidget(header, 0, 0)
|
self.layout.addWidget(header, 0, 0)
|
||||||
|
|
||||||
self.gridLayout = QGridLayout()
|
self.gridLayout = QGridLayout()
|
||||||
TEXT = "" + \
|
|
||||||
"<b>You are clear for takeoff</b>" + \
|
|
||||||
"" + \
|
|
||||||
"<h2>For Singleplayer :</h2>\n" + \
|
|
||||||
"In DCS, open the Mission Editor, and load the file : \n" + \
|
|
||||||
"<i>liberation_nextturn</i>\n" + \
|
|
||||||
"<p>Then once the mission is loaded in ME, in menu \"Flight\",\n" + \
|
|
||||||
"click on FLY Mission to launch.</p>\n" + \
|
|
||||||
"" + \
|
|
||||||
"<h2>For Multiplayer :</h2>" + \
|
|
||||||
"In DCS, open the Mission Editor, and load the file : " + \
|
|
||||||
"<i>liberation_nextturn</i>" + \
|
|
||||||
"<p>Click on File/Save. Then exit the mission editor, and go to Multiplayer.</p>" + \
|
|
||||||
"<p>Then host a server with the mission, and tell your friends to join !</p>" + \
|
|
||||||
"<i>(The step in the mission editor is important, and fix a game breaking bug.)</i>" + \
|
|
||||||
"<h2>Finishing</h2>" + \
|
|
||||||
"<p>Once you have played the mission, click on the \"Accept Results\" button.</p>" + \
|
|
||||||
"<p>If DCS Liberation does not detect mission end, use the manually submit button, and choose the state.json file.</p>"
|
|
||||||
|
|
||||||
self.instructions_text = QTextEdit(TEXT)
|
jinja = Environment(
|
||||||
self.instructions_text.setReadOnly(True)
|
loader=FileSystemLoader("resources/ui/templates"),
|
||||||
|
autoescape=select_autoescape(
|
||||||
|
disabled_extensions=("",),
|
||||||
|
default_for_string=True,
|
||||||
|
default=True,
|
||||||
|
),
|
||||||
|
trim_blocks=True,
|
||||||
|
lstrip_blocks=True,
|
||||||
|
)
|
||||||
|
self.instructions_text = QTextBrowser()
|
||||||
|
self.instructions_text.setHtml(
|
||||||
|
jinja.get_template("mission_start_EN.j2").render())
|
||||||
|
self.instructions_text.setOpenExternalLinks(True)
|
||||||
self.gridLayout.addWidget(self.instructions_text, 1, 0)
|
self.gridLayout.addWidget(self.instructions_text, 1, 0)
|
||||||
|
|
||||||
progress = QLabel("")
|
progress = QLabel("")
|
||||||
|
|||||||
58
resources/ui/templates/mission_start_EN.j2
Normal file
58
resources/ui/templates/mission_start_EN.j2
Normal file
@ -0,0 +1,58 @@
|
|||||||
|
<b>You are clear for takeoff</b>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
Some player flights may be delayed to start. For such flights, it will not be
|
||||||
|
possible to enter the cockpit for a delayed flight until its mission start
|
||||||
|
time, shown in the flight information window.
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
To reduce delays, schedule packages with player flights with an earlier TOT.
|
||||||
|
Note that if some flights within the package will take a long time to reach the
|
||||||
|
target, a player flight may still be delayed.
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
To avoid delays entirely, use the "Never delay player flights" option in the
|
||||||
|
mission generation settings. Note that this will <strong>not</strong> adjust
|
||||||
|
the timing of your mission; this option only allows you to wait in the
|
||||||
|
cockpit.
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
For more information, see the mission planning documentation on
|
||||||
|
<a href="https://github.com/Khopa/dcs_liberation/wiki/Mission-planning">
|
||||||
|
the wiki</a>.
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<h2>For Singleplayer:</h2>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
In DCS, open the Mission Editor and load the file: <i>liberation_nextturn</i>.
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
Once the mission is loaded in the ME, use the "FLY" option in the "Flight"
|
||||||
|
menu to launch.
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<h2>For Multiplayer:</h2>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
In DCS, open the Mission Editor, and load the file: <i>liberation_nextturn</i>
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<p>Select File/Save, exit the mission editor, and then select Multiplayer.</p>
|
||||||
|
|
||||||
|
<p>Then host a server with the mission, and tell your friends to join!</p>
|
||||||
|
|
||||||
|
<i>(The step in the mission editor is important, and fix a game breaking bug.)</i>
|
||||||
|
|
||||||
|
<h2>Finishing</h2>
|
||||||
|
|
||||||
|
<p>Once you have played the mission, click on the \"Accept Results\" button.</p>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
If DCS Liberation does not detect mission end, use the manually submit button,
|
||||||
|
and choose the state.json file.
|
||||||
|
</p>
|
||||||
Loading…
x
Reference in New Issue
Block a user