aboutsummaryrefslogtreecommitdiff
path: root/src/app
diff options
context:
space:
mode:
Diffstat (limited to 'src/app')
-rw-r--r--src/app/main.js14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/app/main.js b/src/app/main.js
index 8894d3f..4918777 100644
--- a/src/app/main.js
+++ b/src/app/main.js
@@ -91,6 +91,20 @@ function setButtons(state) {
}
ipcRenderer.on("setbuttons", (event, state) => {setButtons(state)})
+
+ipcRenderer.on("gamestate", (event, state) => {
+ setButtons(! state);
+
+ let string = lang("gui.launch");
+ if (state) {
+ string = lang("gui.running");
+ }
+
+ let btns = document.querySelectorAll(".playBtnContainer .playBtn");
+ btns[0].innerHTML = string;
+ btns[1].innerHTML = string;
+})
+
ipcRenderer.on("gamepathlost", (event, state) => {
page(0);
setButtons(false);