treballant en la consola

This commit is contained in:
2026-03-27 22:24:55 +01:00
parent 3712f0c8d9
commit f25ee18329
8 changed files with 218 additions and 1 deletions

View File

@@ -18,6 +18,7 @@
#include "core/resources/resource_helper.hpp" // Para ResourceHelper
#include "core/resources/resource_list.hpp" // Para Asset, AssetType
#include "game/options.hpp" // Para Options, options, OptionsVideo, Border
#include "game/ui/console.hpp" // Para Console
#include "game/ui/notifier.hpp" // Para Notifier
// [SINGLETON]
@@ -215,6 +216,9 @@ void Screen::renderNotifications() const {
if (notifications_enabled_) {
Notifier::get()->render();
}
if (Console::get() != nullptr) {
Console::get()->render();
}
}
// Cambia el estado del PostFX
@@ -247,6 +251,9 @@ void Screen::reloadPostFX() {
void Screen::update(float delta_time) {
fps_.calculate(SDL_GetTicks());
Notifier::get()->update(delta_time);
if (Console::get() != nullptr) {
Console::get()->update(delta_time);
}
Mouse::updateCursorVisibility();
}