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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user