mirror of
https://gitlab.com/lecarore/breakout71.git
synced 2025-04-21 04:26:14 -04:00
Red border dashes
This commit is contained in:
parent
83d335b05e
commit
80dd1f0758
11 changed files with 1011 additions and 931 deletions
|
@ -61,7 +61,7 @@ export function pickedUpgradesHTMl(gameState: GameState) {
|
|||
let list = "";
|
||||
for (let u of upgrades) {
|
||||
for (let i = 0; i < gameState.perks[u.id]; i++)
|
||||
list += icons["icon:" + u.id] + " ";
|
||||
list += `<span title="${u.name}">${icons["icon:" + u.id]}</span>`;
|
||||
}
|
||||
return list;
|
||||
}
|
||||
|
@ -69,7 +69,7 @@ export function levelsListHTMl(gameState: GameState) {
|
|||
if (!gameState.perks.clairvoyant) return "";
|
||||
let list = "";
|
||||
for (let i = 0; i < max_levels(gameState); i++) {
|
||||
list += `<span style="opacity: ${i >= gameState.currentLevel ? 1 : 0.2}">${icons[gameState.runLevels[i].name]}</span>`;
|
||||
list += `<span style="opacity: ${i >= gameState.currentLevel ? 1 : 0.2}" title="${gameState.runLevels[i].name}">${icons[gameState.runLevels[i].name]}</span>`;
|
||||
}
|
||||
return `<p>${t("score_panel.upcoming_levels")}</p><p>${list}</p>`;
|
||||
}
|
||||
|
@ -179,4 +179,4 @@ export function countBricksBelow(gameState: GameState, index: number) {
|
|||
}
|
||||
}
|
||||
return count;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue