refactor: constantes SCENE_BALLS_N y fix HUD overlay en SHAPE mode
- defines.hpp: añadir SCENE_BALLS_1..8 (topado en 50K), SCENARIO_COUNT, reconstruir BALL_COUNT_SCENARIOS con esas constantes - theme_manager: añadir max_ball_count_ y setMaxBallCount() para capturar colores hasta el máximo real (custom incluido), eliminando literal 50000 - engine.cpp: llamar setMaxBallCount() tras inicializar ThemeManager - gpu_sprite_batch: addFullscreenOverlay() escribe vértices directamente sin pasar por el guard de pushQuad(), igual que addBackground(); esto corrige el HUD/overlay invisible en SHAPE mode con escenario 8 (50K bolas) - Textos UI actualizados: tecla 8, help overlay y --skip-benchmark → 50.000 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -282,6 +282,12 @@ bool Engine::initialize(int width, int height, int zoom, bool fullscreen, AppMod
|
||||
// Inicializar ThemeManager PRIMERO (requerido por Notifier y SceneManager)
|
||||
theme_manager_ = std::make_unique<ThemeManager>();
|
||||
theme_manager_->initialize();
|
||||
{
|
||||
int max_balls = BALL_COUNT_SCENARIOS[DEMO_AUTO_MAX_SCENARIO];
|
||||
if (custom_scenario_enabled_ && custom_scenario_balls_ > max_balls)
|
||||
max_balls = custom_scenario_balls_;
|
||||
theme_manager_->setMaxBallCount(max_balls);
|
||||
}
|
||||
|
||||
// Inicializar SceneManager (gestión de bolas y física)
|
||||
scene_manager_ = std::make_unique<SceneManager>(current_screen_width_, current_screen_height_);
|
||||
|
||||
Reference in New Issue
Block a user