feat: rediseño HUD ayuda — 3 columnas, colores diferenciados, font -1pt

- Reorganizar key_bindings_ en 3 columnas (SIMULACIÓN+FIGURAS3D / VISUAL+PANTALLA / MODOS+DEBUG)
- Añadir F6 (escalado entero) y corregir F5 (Toggle PostFX), X (ciclar presets)
- Teclas usan category_color, descripciones usan content_color
- Separadores vacíos avanzan media línea (fix secciones pegadas)
- Font size del overlay reducido en 1pt respecto al resto de la UI
- calculateTextDimensions y rebuildCachedTexture actualizados para 3 columnas

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-20 19:06:48 +01:00
parent 200672756c
commit b9b5f0b29f
3 changed files with 73 additions and 64 deletions

View File

@@ -100,7 +100,7 @@ void UIManager::initialize(SDL_Renderer* renderer, ThemeManager* theme_manager,
// Crear y configurar sistema de ayuda (overlay)
help_overlay_ = new HelpOverlay();
help_overlay_->initialize(renderer, theme_manager_, physical_width, physical_height, current_font_size_);
help_overlay_->initialize(renderer, theme_manager_, physical_width, physical_height, std::max(9, current_font_size_ - 1));
// Inicializar FPS counter
fps_last_time_ = SDL_GetTicks();
@@ -195,7 +195,7 @@ void UIManager::updatePhysicalWindowSize(int width, int height) {
// Actualizar help overlay con font size actual Y nuevas dimensiones (atómicamente)
if (help_overlay_) {
help_overlay_->updateAll(current_font_size_, width, height);
help_overlay_->updateAll(std::max(9, current_font_size_ - 1), width, height);
}
// Actualizar otros componentes de UI con nuevas dimensiones