diff options
Diffstat (limited to 'src/app')
-rw-r--r-- | src/app/index.html | 8 | ||||
-rw-r--r-- | src/app/main.css | 6 | ||||
-rw-r--r-- | src/app/main.js | 8 |
3 files changed, 20 insertions, 2 deletions
diff --git a/src/app/index.html b/src/app/index.html index 426b4c5..4c31255 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 style="white-space: nowrap;">%%gui.welcome%%</div> + <div class="versions"> + <div id="vpVersion"></div> + <div id="nsVersion"></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..765b143 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("version", (_, payload) => { + document.getElementById("vpVersion").innerText = "Viper version:" + payload.vp; + document.getElementById("nsVersion").innerText = "Northstar version: " + payload.ns; +}); +ipcRenderer.send("getversion"); + setlang(); setInterval(() => { ipcRenderer.send("setsize", document.querySelector(".lines").offsetHeight + 20); -}, 150) +}, 150); |