diff options
author | 0neGal <mail@0negal.com> | 2021-12-30 22:05:54 +0100 |
---|---|---|
committer | 0neGal <mail@0negal.com> | 2021-12-30 22:05:54 +0100 |
commit | ee885beeed57d95ffb58922cfc6b826b7ebf9a31 (patch) | |
tree | 6cc217060683a950561b3e5da828d52f7b60c63a /src/app/main.js | |
parent | 823d34f6f41c65c7b1cb8e55bd429b9efc4f3878 (diff) | |
download | Viper-ee885beeed57d95ffb58922cfc6b826b7ebf9a31.tar.gz Viper-ee885beeed57d95ffb58922cfc6b826b7ebf9a31.zip |
first-ish draft of the mod UI and utils
Diffstat (limited to 'src/app/main.js')
-rw-r--r-- | src/app/main.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/app/main.js b/src/app/main.js index 809b5c8..f512d4f 100644 --- a/src/app/main.js +++ b/src/app/main.js @@ -53,6 +53,14 @@ ipcRenderer.on("newpath", (event, newpath) => { ipcRenderer.on("log", (event, msg) => {log(msg)}) +ipcRenderer.on("mods", (event, mods) => { + modcount.innerHTML = `${lang("gui.mods.count")} ${mods.length}`; + modsdiv.innerHTML = ""; + for (let i = 0; i < mods.length; i++) { + modsdiv.innerHTML += `<div class="mod">${mods[i].Name}</div>`; + } +}) + setlang(); setInterval(() => { ipcRenderer.send("setsize", document.querySelector(".lines").offsetHeight + 20); |