hide main menu once start is clicked (mobile)

This commit is contained in:
Gator
2022-12-10 21:40:45 +01:00
parent 9b83b88c54
commit b5b223ba5c
4 changed files with 26 additions and 12 deletions

View File

@ -34,6 +34,7 @@ export const globalStore = defineStore("globalStore", {
draw2dLast: false,
reset: false,
canDraw: true,
mainMenu: false,
activeSubMenu: "",
};
},
@ -48,16 +49,19 @@ export const globalStore = defineStore("globalStore", {
},
toggleDraw1d() {
this.setActiveSubMenu("");
this.setMainMenu(false);
this.draw1d = true;
},
toggleDraw2d() {
this.setActiveSubMenu("");
this.setMainMenu(false);
this.toggleStop();
this.canDraw = true;
this.draw2d = true;
},
toggleDraw2dLast() {
this.setActiveSubMenu("");
this.setMainMenu(false);
this.toggleStop();
this.canDraw = true;
this.draw2dLast = true;
@ -76,5 +80,8 @@ export const globalStore = defineStore("globalStore", {
if (this.activeSubMenu == data) this.activeSubMenu = "";
else this.activeSubMenu = data;
},
setMainMenu(data) {
this.mainMenu = data;
},
},
});