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

View File

@@ -1,4 +1,7 @@
{ {
"home": {
"greeting": "Welcome to my website!"
},
"settings": { "settings": {
"title": "Settings", "title": "Settings",
"description": "Change system settings here. Select\nthe settings you'd like to change.", "description": "Change system settings here. Select\nthe settings you'd like to change.",

Binary file not shown.

After

Width:  |  Height:  |  Size: 34 KiB