Añadida textura en el menu de introducción de JailerID

Cambiados los colores de algunos menus (experimental)
Retocados algunos textos del menu de JailerID
This commit is contained in:
2023-09-26 21:23:41 +02:00
parent d7533c5504
commit e41aec37b0
7 changed files with 20 additions and 5 deletions

View File

@@ -220,11 +220,17 @@ void EnterID::fillTexture()
// Inicializa los textos
iniTexts();
// Rellena la textura de texto
// Rellena la textura con un color de fondo
SDL_SetRenderTarget(renderer, textTexture);
SDL_SetRenderDrawColor(renderer, bgColor.r, bgColor.g, bgColor.b, 0xFF);
SDL_RenderClear(renderer);
// Añade el efecto de degradado en el fondo
Texture *gradient = new Texture(renderer, asset->get("title_gradient.png"));
SDL_Rect rect = {0, 0, GAMECANVAS_WIDTH, GAMECANVAS_HEIGHT};
gradient->render(renderer, 0, 0, &rect);
delete gradient;
// Escribe el texto en la textura
const int desp = 40;
const int size = text->getCharacterSize() + 2;