hide main menu once start is clicked (mobile)
This commit is contained in:
@ -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;
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user