feat(common): handleConfirm -> handleActivateA, handleCancel -> handleActivateB

This commit is contained in:
2026-02-10 15:30:08 +01:00
parent ca05d0ea65
commit 38b36d0e1c
12 changed files with 60 additions and 63 deletions

View File

@@ -132,14 +132,14 @@ const handleActivateB = () => {
bLabel: $t("common.no"),
aLabel: $t("common.yes"),
onClosed: async (choice) => {
if (choice === "confirm") {
if (choice === "A") {
await animateOutro();
store.closeSubMenu();
} else {
state.value = "playing";
}
},
keepButtonsDown: (choice) => choice === "confirm",
keepButtonsDown: (choice) => choice === "A",
});
} else {
animateOutro().then(() => store.closeSubMenu());
@@ -155,7 +155,7 @@ const handleActivateA = async () => {
bLabel: $t("common.no"),
aLabel: $t("common.yes"),
onClosed: (choice) => {
if (choice === "confirm") {
if (choice === "A") {
resetGame();
} else {
state.value = "playing";
@@ -233,14 +233,14 @@ const showDeathScreen = () => {
bLabel: $t("common.quit"),
aLabel: $t("common.restart"),
onClosed: async (choice) => {
if (choice === "confirm") {
if (choice === "A") {
resetGame();
} else {
await animateOutro();
store.closeSubMenu();
}
},
keepButtonsDown: (choice) => choice === "cancel",
keepButtonsDown: (choice) => choice === "B",
});
};