@@ -281,7 +326,8 @@ color: var(--text-color); } a.logfile, - .date { + .date, + .start-mission { margin-left: 20px; } a.variant { diff --git a/src/routes/mission/[...mission]/_DeMiLErrorDialog.svelte b/src/routes/mission/[...mission]/_DeMiLErrorDialog.svelte new file mode 100644 index 0000000..f23b447 --- /dev/null +++ b/src/routes/mission/[...mission]/_DeMiLErrorDialog.svelte @@ -0,0 +1,90 @@ + + + + {#if typeof demilHelpState !== 'undefined'} +
+ {#if demilHelpState === 'NotInstalled'} +
+ You need to install DeMiL to start a mission from this webpage and run the game. +
+ {/if} + {#if demilHelpState === 'MissionNotFound'} +
+ Mission pack is not installed. Download mission pack from Steam page. +
+ {/if} + {#if demilHelpState === 'MissingModules'} +
Failed to start mission. Missing modules (click to open steam page):
+
+ {#each missingModules as mod} +
+ {#if mod.SteamID !== null} + {mod.Name} + {:else} + {mod.Name} + {/if} +
+ {/each} +
+ {/if} + {#if demilHelpState === 'Error'} +
{demilErrorMessage}
+ {/if} + {#if typeof demilVersion === 'string'} +
+ Your DeMiL looks outdated. + (Version: {demilVersion}) Please try + verifying integrity of game files. If it still doesn't work, please contact t-chen#5876 in KTaNE discord server. +
+ {/if} +
+ {/if} +
+ +