feat(credits): add in both nds and repo
This commit is contained in:
@@ -4,9 +4,9 @@ export type HomeButton =
|
||||
| "projects"
|
||||
| "contact"
|
||||
| "gallery"
|
||||
| "theme"
|
||||
| "settings"
|
||||
| "achievements";
|
||||
| "achievements"
|
||||
| "credits";
|
||||
|
||||
export const useHomeStore = defineStore("home", {
|
||||
state: () => ({
|
||||
@@ -32,7 +32,10 @@ export const useHomeStore = defineStore("home", {
|
||||
actions: {
|
||||
reset() {
|
||||
const app = useAppStore();
|
||||
if (app.previousScreen === "achievements") {
|
||||
if (
|
||||
app.previousScreen === "achievements" ||
|
||||
app.previousScreen === "credits"
|
||||
) {
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -105,6 +108,12 @@ export const useHomeStore = defineStore("home", {
|
||||
return;
|
||||
}
|
||||
|
||||
if (to === "credits") {
|
||||
const creditsScreen = useCreditsStore();
|
||||
creditsScreen.animateFadeToBlackIntro();
|
||||
return;
|
||||
}
|
||||
|
||||
this.isOutro = true;
|
||||
this.outro.animateTop = to !== "settings";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user