aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/app/js/mods.js8
-rw-r--r--src/app/js/toasts.js4
-rw-r--r--src/lang/en.json1
3 files changed, 12 insertions, 1 deletions
diff --git a/src/app/js/mods.js b/src/app/js/mods.js
index bca417e..326b8b9 100644
--- a/src/app/js/mods.js
+++ b/src/app/js/mods.js
@@ -4,6 +4,7 @@ const ipcRenderer = require("electron").ipcRenderer;
const lang = require("../../lang");
const version = require("./version");
+const toasts = require("./toasts");
const set_buttons = require("./set_buttons");
let mods = {};
@@ -349,7 +350,12 @@ ipcRenderer.on("protocol-install-mod", async (event, data) => {
return;
}
- console.log(package_obj);
+ toasts.show({
+ timeout: 3000,
+ scheme: "info",
+ title: lang("gui.mods.installing"),
+ description: lang("gui.toast.desc.installing") + " " + package_obj.full_name
+ })
mods.install_from_url(
package_obj.download_url,
diff --git a/src/app/js/toasts.js b/src/app/js/toasts.js
index 83ddf6a..3fd6899 100644
--- a/src/app/js/toasts.js
+++ b/src/app/js/toasts.js
@@ -24,6 +24,10 @@ toasts.show = (properties) => {
toast.fg = "#FFFFFF";
toast.bg = "#FF9B85";
break
+ case "info":
+ toast.fg = "#FFFFFF";
+ toast.bg = "rgb(var(--blue))";
+ break
}
diff --git a/src/lang/en.json b/src/lang/en.json
index 0c44198..1c3b4b4 100644
--- a/src/lang/en.json
+++ b/src/lang/en.json
@@ -268,6 +268,7 @@
"desc": {
"installed": "has been installed successfully!",
+ "installing": "Installing",
"malformed": "has an incorrect folder structure, if you're the developer, you should fix this.",
"failed": "An unknown error occurred while trying to install the mod. This may be the author's fault, and it may also be Viper's fault.",
"duped": "has multiple mod folders in it, with the same name, causing duplicate folders, if you're the developer, you should fix this.",