Skip to content

Commit

Permalink
feat: display version number on game launch modal
Browse files Browse the repository at this point in the history
  • Loading branch information
MattLish committed Jun 28, 2022
1 parent 1d69fb6 commit 6dae26d
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions src/renderer/components/TheNavigation.vue
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,11 @@
<div class="l-column l-center l-center-text">
<div class="u-spacing">
<template v-if="checkingPrerequisites">
Checking if Wildlander prerequisites are installed...
Checking if {{ modpackName }} prerequisites are installed...
</template>
<template v-if="installingPrerequisites">
<div>
<div>Wildlander prerequisites are currently installing.</div>
<div>{{ modpackName }} prerequisites are currently installing.</div>
<div>Please click "Install" or "Repair" on any pop ups.</div>
<div>
Ensure you close all pop ups that appear after installation is
Expand All @@ -80,8 +80,8 @@
</div>
</template>
<template v-if="!checkingPrerequisites && !installingPrerequisites">
Please wait while Skyrim launches. This is not an error, and launching
may take several minutes.
Launching {{ modpackName }} version {{ modpackVersion }}. This is not
an error, and launching may take several minutes.
</template>
</div>
</div>
Expand Down Expand Up @@ -119,6 +119,8 @@ import { WABBAJACK_EVENTS } from "@/main/controllers/wabbajack/wabbajack.events"
import { SYSTEM_EVENTS } from "@/main/controllers/system/system.events";
import { LAUNCHER_EVENTS } from "@/main/controllers/launcher/launcher.events";
import { DIALOG_EVENTS } from "@/main/controllers/dialog/dialog.events";
import { MODPACK_EVENTS } from "@/main/controllers/modpack/mopack.events";
import { Modpack } from "@/modpack-metadata";
@Component({
components: {
Expand All @@ -140,12 +142,17 @@ export default class TheNavigation extends Vue {
private rebootRequired = false;
private launcherVersion: string | null = null;
private modpackVersion: string | null = null;
private modpackName: string | null = null;
async created() {
this.modpackVersion = await this.ipcService.invoke(
WABBAJACK_EVENTS.GET_MODPACK_VERSION
);
this.modpackName = (
await this.ipcService.invoke<Modpack>(MODPACK_EVENTS.GET_MODPACK_METADATA)
).name;
this.launcherVersion = await this.getVersion();
}
Expand Down

0 comments on commit 6dae26d

Please sign in to comment.