From b412435862fbfc6936066b91b26976b0df18d72b Mon Sep 17 00:00:00 2001 From: Sergio Valor Date: Fri, 29 May 2026 21:27:11 +0200 Subject: [PATCH] =?UTF-8?q?tweak(hud):=20NIVELL=20enc=C3=A8s=20i=20el=20n?= =?UTF-8?q?=C3=BAmero=20amb=20els=20zeros=20de=20farciment=20atenuats=20co?= =?UTF-8?q?m=20els=20punts?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/game/systems/init_hud_animator.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/source/game/systems/init_hud_animator.cpp b/source/game/systems/init_hud_animator.cpp index 6c538e3..4869c07 100644 --- a/source/game/systems/init_hud_animator.cpp +++ b/source/game/systems/init_hud_animator.cpp @@ -230,8 +230,8 @@ namespace Systems::InitHud { drawSlots(renderer, shape, lives, bright, dim, x, center_y, scale, spacing); } - // Pinta el nivell centrat: etiqueta "NIVELL" en verd atenuat i el número - // en verd brillant. + // Pinta el nivell centrat: etiqueta "NIVELL" encesa i el número com els + // punts (zeros de farciment atenuats, dígit significatiu en endavant encès). void drawLevel(const Graphics::VectorText& text, const std::string& label, const std::string& value, @@ -242,9 +242,9 @@ namespace Systems::InitHud { const float W_VALUE = Graphics::VectorText::getTextWidth(value, scale, spacing); const float CX = Defaults::Game::WIDTH / 2.0F; float x = CX - ((W_LABEL + W_VALUE) / 2.0F); - text.render(label, {.x = x, .y = top_y}, scale, spacing, 1.0F, Defaults::Hud::Colors::LEVEL_DIM); + text.render(label, {.x = x, .y = top_y}, scale, spacing, 1.0F, Defaults::Hud::Colors::LEVEL_BRIGHT); x += W_LABEL; - text.render(value, {.x = x, .y = top_y}, scale, spacing, 1.0F, Defaults::Hud::Colors::LEVEL_BRIGHT); + drawScore(text, value, Defaults::Hud::Colors::LEVEL_BRIGHT, Defaults::Hud::Colors::LEVEL_DIM, true, x, top_y, scale, spacing); } } // namespace