1
0
Fork 0
mirror of https://github.com/hawkeye-stan/msfs-popout-panel-manager.git synced 2024-11-25 07:10:10 +00:00
msfs-popout-panel-manager/assets/Community/zzz-ready-to-fly-button-skipper/html_ui/pages/MissionStartup/MissionStartup.html

49 lines
1.8 KiB
HTML
Raw Normal View History

2022-07-23 19:23:32 +00:00
<!DOCTYPE html>
<html>
<head>
<title></title>
<meta charset="utf-8" />
<link rel="stylesheet" href="/SCSS/common.css" />
<link rel="stylesheet" href="MissionStartup.css" />
<script type="text/javascript" src="/JS/coherent.js"></script>
<script type="text/javascript" src="/JS/common.js"></script>
<script type="text/javascript" src="/JS/buttons.js"></script>
<link rel="import" href="/templates/PanelInfoLine/PanelInfoLine.html" />
<link rel="import" href="/templates/NewPushButton/NewPushButton.html" />
<script type="text/javascript" src="MissionStartup.js"></script>
</head>
<body>
<mission-startup>
<div id="StartupContainer">
<div id="StartupInfo">
<div id="AirportInfos" class="invisible StartupInfosPanel">
<!-- contains a list of panel-info-element -->
</div>
<div id="PlaneInfos" class="invisible StartupInfosPanel">
<!-- contains a list of panel-info-element -->
</div>
</div>
<image-button id="FlyButton" default-button title="TT:MENU.READY_FLY" class="bigButton button-yellow" data-url="/icons/freeflight/worldMap_Departure.svg" eventOnValidate="END_BRIEFING" toGlobalFlow="true"></image-button>
</div>
</mission-startup>
<script>
// Define ready to fly button skip delay in seconds
2023-08-16 04:22:48 +00:00
const READY_TO_FLY_BUTTON_SKIP_DELAY = 2;
2022-07-23 19:23:32 +00:00
// Click ready to fly button
Coherent.on("MissionStartup_Step", (step) => {
if(step == 0)
{
setTimeout(() => {
LaunchFlowEventToGlobalFlow("END_BRIEFING", "FlyButton");
Coherent.trigger("END_BRIEFING", "FlyButton");
}, READY_TO_FLY_BUTTON_SKIP_DELAY * 1000);
}
});
</script>
</body>
</html>