Fix: Tecla B ahora usa transiciones LERP suaves
Problema: - cycleTheme() cambiaba current_theme_index_ directamente - Se saltaba todo el sistema de transición LERP - Resultado: Cambio instantáneo/abrupto con tecla B Solución: - cycleTheme() ahora delega a switchToTheme(next_index) - switchToTheme() maneja snapshot + transición automáticamente - Resultado: Transición suave de 0.5s con tecla B ✅ Ahora TODAS las formas de cambiar tema tienen LERP: ✅ Numpad 1-0: Transición suave ✅ Tecla B: Transición suave (FIXED) ✅ DEMO mode: Transición suave 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -289,13 +289,11 @@ void ThemeManager::update(float delta_time) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void ThemeManager::cycleTheme() {
|
void ThemeManager::cycleTheme() {
|
||||||
// Ciclar al siguiente tema con wraparound
|
// Calcular siguiente tema con wraparound
|
||||||
current_theme_index_ = (current_theme_index_ + 1) % static_cast<int>(themes_.size());
|
int next_theme_index = (current_theme_index_ + 1) % static_cast<int>(themes_.size());
|
||||||
|
|
||||||
// Si es tema dinámico, reiniciar progreso
|
// Usar switchToTheme() para obtener transición LERP automáticamente
|
||||||
if (themes_[current_theme_index_]->needsUpdate()) {
|
switchToTheme(next_theme_index);
|
||||||
themes_[current_theme_index_]->resetProgress();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void ThemeManager::pauseDynamic() {
|
void ThemeManager::pauseDynamic() {
|
||||||
|
|||||||
Reference in New Issue
Block a user