feat(nds): add help button with hints for all physical buttons

This commit is contained in:
2026-02-22 21:16:13 +01:00
parent af001f1d97
commit 8ac9911746
6 changed files with 377 additions and 161 deletions

View File

@@ -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;
},