This commit is contained in:
Renan LE CARO 2025-04-08 21:54:19 +02:00
parent f2bf1e3f9f
commit 83b9c0dec5
14 changed files with 322 additions and 499 deletions

View file

@ -2,6 +2,13 @@ import { allLevels, icons, upgrades } from "./loadGameData";
import { t } from "./i18n/i18n";
import { asyncAlert } from "./asyncAlert";
import { miniMarkDown } from "./pure_functions";
import {
catchRateBest, catchRateGood,
levelTimeBest,
levelTimeGood, missesBest, missesGood,
wallBouncedBest,
wallBouncedGood
} from "./pure_functions"
export function helpMenuEntry() {
return {
@ -13,8 +20,14 @@ export function helpMenuEntry() {
title: t("main_menu.help_title"),
allowClose: true,
content: [
miniMarkDown(t("main_menu.help_content")),
t("main_menu.help_upgrades"),
miniMarkDown(t("main_menu.help_content",{
catchRateBest, catchRateGood,
levelTimeBest,
levelTimeGood, missesBest, missesGood,
wallBouncedBest,
wallBouncedGood
})),
miniMarkDown(t("main_menu.help_upgrades")),
...upgrades.map(
(u) => `
<div class="upgrade used">
@ -28,7 +41,7 @@ export function helpMenuEntry() {
${miniMarkDown(u.fullHelp)}
`,
),
t("main_menu.credit_levels"),
'<h2>'+t("main_menu.credit_levels")+'</h2>',
...allLevels
.filter((l) => l.credit?.trim())
.map(