feat(common): handleConfirm -> handleActivateA, handleCancel -> handleActivateB
This commit is contained in:
@@ -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",
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user