aboutsummaryrefslogtreecommitdiff
path: root/src/app
diff options
context:
space:
mode:
Diffstat (limited to 'src/app')
-rw-r--r--src/app/index.html8
-rw-r--r--src/app/main.css6
-rw-r--r--src/app/main.js8
3 files changed, 20 insertions, 2 deletions
diff --git a/src/app/index.html b/src/app/index.html
index 426b4c5..3eadd96 100644
--- a/src/app/index.html
+++ b/src/app/index.html
@@ -6,7 +6,13 @@
<body>
<div class="lines">
<div class="line">
- <div class="text">%%gui.welcome%%</div>
+ <div class="text">
+ <div>%%gui.welcome%%</div>
+ <div class="versions">
+ <div id="vpVersion">Viper version: x.x.x</div>
+ <div id="nsVersion">Northstar version: x.x.x</div>
+ </div>
+ </div>
<div class="buttons">
<button id="exit" onclick="exit()">%%gui.exit%%</button>
<button id="update" onclick="update()">%%gui.update%%</button>
diff --git a/src/app/main.css b/src/app/main.css
index f49cc98..c86e08d 100644
--- a/src/app/main.css
+++ b/src/app/main.css
@@ -68,3 +68,9 @@ button:active {
#setpath {background: #5E81AC}
#northstar {background: #C7777F}
#vanilla, #exit {background: #656E7F}
+
+.versions {
+ height: 15px;
+ font-size: 12px;
+ color: #afafaf;
+} \ No newline at end of file
diff --git a/src/app/main.js b/src/app/main.js
index 9bafaa5..ab41af6 100644
--- a/src/app/main.js
+++ b/src/app/main.js
@@ -35,7 +35,13 @@ ipcRenderer.on("newpath", (event, newpath) => {
settings.gamepath = newpath;
})
+ipcRenderer.on('versionInfo', (_, payload) => {
+ document.getElementById('vpVersion').innerText = `Viper version: ${payload.vp}`;
+ document.getElementById('nsVersion').innerText = `Northstar version: ${payload.ns}`;
+});
+ipcRenderer.send('getVersionInfo');
+
setlang();
setInterval(() => {
ipcRenderer.send("setsize", document.querySelector(".lines").offsetHeight + 20);
-}, 150)
+}, 150);