feat(nds): add help button with hints for all physical buttons
This commit is contained in:
@@ -51,6 +51,8 @@ export const useAppStore = defineStore("app", {
|
||||
screen: "home" as AppScreen,
|
||||
visitedGallery: false,
|
||||
camera: null as THREE.Camera | null,
|
||||
hintsVisible: false,
|
||||
hintsAllowed: false,
|
||||
};
|
||||
},
|
||||
|
||||
@@ -86,6 +88,24 @@ export const useAppStore = defineStore("app", {
|
||||
}
|
||||
},
|
||||
|
||||
allowHints() {
|
||||
this.hintsAllowed = true;
|
||||
},
|
||||
|
||||
disallowHints() {
|
||||
this.hintsAllowed = false;
|
||||
this.hintsVisible = false;
|
||||
},
|
||||
|
||||
showHints() {
|
||||
if (!this.hintsAllowed) return;
|
||||
this.hintsVisible = true;
|
||||
},
|
||||
|
||||
hideHints() {
|
||||
this.hintsVisible = false;
|
||||
},
|
||||
|
||||
setCamera(camera: THREE.Camera) {
|
||||
this.camera = camera;
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user