pausa
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user