feat(settings): animate buttons
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user