This commit is contained in:
2026-04-05 00:49:29 +02:00
parent f8b60cb641
commit 91f88ded09
6 changed files with 43 additions and 2 deletions

View File

@@ -7,6 +7,7 @@
#include "core/rendering/menu.hpp"
#include "core/rendering/text.hpp"
#include "core/system/director.hpp"
#include "game/options.hpp"
namespace Overlay {
@@ -151,6 +152,18 @@ namespace Overlay {
esc_waiting_ = false;
}
// Indicador de pausa persistent (cantó superior dret)
if (Director::get() && Director::get()->isPaused()) {
const char* pause_text = "PAUSA";
int w = font_->width(pause_text);
int x = SCREEN_W - w - 4;
int y = 4;
// Ombra
font_->draw(pixel_data, x + 1, y + 1, pause_text, 0xFF000000);
// Text en roig
font_->draw(pixel_data, x, y, pause_text, 0xFF0000FF);
}
// Menú flotant per damunt de tot
if (Menu::isOpen()) {
Menu::render(pixel_data);