feat(home): add greeting that replaces gamepak

This commit is contained in:
2025-12-19 22:59:30 +01:00
parent 06bcd6baf8
commit 1857f2fbc6
3 changed files with 17 additions and 0 deletions

View File

@@ -64,6 +64,13 @@ const getOpacity = (button?: (typeof selectedButton)["value"]) => {
if (store.isOutro) return store.outro.stage1Opacity;
return 1;
};
useRender((ctx) => {
ctx.globalAlpha = getOpacity();
ctx.font = "10px NDS10";
ctx.fillStyle = "#a2a2a2";
fillTextCentered(ctx, $t("home.greeting"), 79, 135, 140);
});
</script>
<template>
@@ -86,6 +93,13 @@ const getOpacity = (button?: (typeof selectedButton)["value"]) => {
:image="assets.home.bottomScreen.buttons.downloadPlay"
/>
<Button
:x="33"
:y="121"
:opacity="getOpacity()"
:image="assets.home.bottomScreen.buttons.gamePak"
/>
<Button
:x="10"
:y="175 + getButtonOffset('theme')"