${translateText("map.map")}
${Object.entries(mapCategories).map(
([categoryKey, maps]) => html`
${translateText(`map_categories.${categoryKey}`)}
${maps.map((mapValue) => {
const mapKey = Object.keys(GameMapType).find(
(key) => GameMapType[key] === mapValue,
);
return html`
this.handleMapSelection(mapValue)}
>
`;
})}
`,
)}
${translateText("map.random")}
${translateText("difficulty.difficulty")}
${Object.entries(Difficulty)
.filter(([key]) => isNaN(Number(key)))
.map(
([key, value]) => html`
this.handleDifficultySelection(value)}
>
${translateText(
`difficulty.${DifficultyDescription[key]}`,
)}
`,
)}
${translateText("host_modal.mode")}
this.handleGameModeSelection(GameMode.FFA)}
>
${translateText("game_mode.ffa")}
this.handleGameModeSelection(GameMode.Team)}
>
${translateText("game_mode.teams")}
${this.gameMode === GameMode.FFA
? ""
: html`
${translateText("host_modal.team_count")}
${["Duos", 2, 3, 4, 5, 6, 7].map(
(o) => html`
this.handleTeamCountSelection(o)}
>
${o}
`,
)}
`}
${translateText("single_modal.options_title")}
${translateText("single_modal.enables_title")}
${renderUnitTypeOptions({
disabledUnits: this.disabledUnits,
toggleUnit: this.toggleUnit.bind(this),
})}