feat(settings): animate buttons

This commit is contained in:
2026-02-10 14:03:40 +01:00
parent 6a0a0baaaa
commit 873d745ecd
14 changed files with 85 additions and 23 deletions

View File

@@ -138,6 +138,7 @@ const handleActivateB = () => {
state.value = "playing";
}
},
keepButtonsDown: (choice) => choice === "confirm",
});
} else {
animateOutro().then(() => store.closeSubMenu());
@@ -238,6 +239,7 @@ const showDeathScreen = () => {
store.closeSubMenu();
}
},
keepButtonsDown: (choice) => choice === "cancel",
});
};
@@ -412,7 +414,7 @@ defineOptions({ render: () => null });
<template>
<CommonButtons
:y-offset="confirmationModal.buttonsYOffset"
:y-offset="confirmationModal.buttonsYOffset + store.submenuButtonsOffsetY"
:b-label="$t('common.quit')"
:a-label="state === 'waiting' ? $t('common.start') : $t('common.restart')"
@activate-b="handleActivateB"