feat(home): add greeting that replaces gamepak
This commit is contained in:
@@ -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')"
|
||||||
|
|||||||
@@ -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.",
|
||||||
|
|||||||
BIN
public/images/home/bottom-screen/buttons/gamePak.png
Normal file
BIN
public/images/home/bottom-screen/buttons/gamePak.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 34 KiB |
Reference in New Issue
Block a user