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;
|
||||
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')"
|
||||
|
||||
Reference in New Issue
Block a user