feat(achievements): implement achievements screen

This commit is contained in:
2026-01-20 19:18:12 +01:00
parent 425195cf5f
commit fffed80faa
13 changed files with 394 additions and 12 deletions

View File

@@ -15,12 +15,16 @@ const { selected, selectorPosition } = useButtonNavigation({
theme: [0, 167, 31, 26],
settings: [112, 167, 31, 26],
alarm: [225, 167, 31, 26],
achievements: [225, 167, 31, 26],
},
initialButton: "projects",
onButtonClick: (button) => {
if (button === "theme" || button === "alarm")
throw new Error(`Not implemented: ${button}`);
if (button === "theme") throw new Error(`Not implemented: ${button}`);
if (button === "achievements") {
store.animateOutro("achievements");
return;
}
store.animateOutro(button);
},
@@ -47,9 +51,9 @@ const { selected, selectorPosition } = useButtonNavigation({
settings: {
left: "theme",
up: "last",
right: "alarm",
right: "achievements",
},
alarm: {
achievements: {
left: "settings",
},
},
@@ -168,9 +172,9 @@ onRender((ctx) => {
/>
<Button
:x="235"
:y="175 + getButtonOffset('alarm')"
:opacity="getOpacity('alarm')"
:image="assets.images.home.bottomScreen.buttons.alarm"
:y="175 + getButtonOffset('achievements')"
:opacity="getOpacity('achievements')"
:image="assets.images.home.bottomScreen.buttons.achievements"
/>
<Selector :rect="selectorPosition" :opacity="getOpacity()" />