migrat service_menu.cpp a deltaTime

This commit is contained in:
2025-09-24 19:34:08 +02:00
parent ad39d55e79
commit c79a846b29
11 changed files with 39 additions and 37 deletions

View File

@@ -84,9 +84,9 @@ void ServiceMenu::render() {
}
}
void ServiceMenu::update() {
void ServiceMenu::update(float delta_time) {
// El renderer siempre se actualiza para manejar sus animaciones
renderer_->update(this);
renderer_->update(this, delta_time);
if (!enabled_) {
return;
@@ -98,10 +98,10 @@ void ServiceMenu::update() {
now_pending ? restart_message_ui_->show() : restart_message_ui_->hide();
last_pending_changes_ = now_pending;
}
restart_message_ui_->update();
restart_message_ui_->update(delta_time);
if (define_buttons_) {
define_buttons_->update();
define_buttons_->update(delta_time);
if (define_buttons_->isEnabled() && define_buttons_->isReadyToClose()) {
define_buttons_->disable();
}