style: toquejant la pantalla de càrrega

This commit is contained in:
2025-10-20 14:07:14 +02:00
parent e99b2abd7d
commit 9fe73ed8e4
3 changed files with 31 additions and 6 deletions

View File

@@ -799,21 +799,33 @@ void Resource::renderProgress() {
SDL_RenderRect(renderer, &loading_wired_rect_);
// Escribe el texto de carga encima de la barra
/*
loading_text_->writeColored(
loading_wired_rect_.x,
loading_wired_rect_.y - 9,
Lang::getText("[RESOURCE] LOADING") + " : " + loading_resource_name_,
param.resource.color);
*/
// Muestra nombre de la aplicación y versión
loading_text_->writeColored(
X_PADDING,
loading_text_->writeDX(
Text::CENTER | Text::COLOR,
param.game.game_area.center_x,
Y_PADDING,
std::string(Version::APP_NAME) + " (" + Version::GIT_HASH + ")",
spaceBetweenLetters(std::string(Version::APP_NAME)),
1,
param.resource.color);
loading_text_->writeDX(
Text::CENTER | Text::COLOR,
param.game.game_area.center_x,
Y_PADDING + 18,
"(" + std::string(Version::GIT_HASH) + ")",
1,
param.resource.color);
// Muestra información del monitor desplazada hacia abajo
loading_text_->writeColored(
/*loading_text_->writeColored(
X_PADDING,
Y_PADDING + 18,
screen->getDisplayMonitorName(),
@@ -827,7 +839,7 @@ void Resource::renderProgress() {
X_PADDING,
Y_PADDING + 36,
std::to_string(screen->getDisplayMonitorRefreshRate()) + "Hz",
param.resource.color);
param.resource.color);*/
// Renderiza el frame en pantalla
screen->coreRender();