From e41aec37b0ff184b4f1f9ad3b86e31f13b26585c Mon Sep 17 00:00:00 2001 From: Sergio Valor Date: Tue, 26 Sep 2023 21:23:41 +0200 Subject: [PATCH] =?UTF-8?q?A=C3=B1adida=20textura=20en=20el=20menu=20de=20?= =?UTF-8?q?introducci=C3=B3n=20de=20JailerID=20Cambiados=20los=20colores?= =?UTF-8?q?=20de=20algunos=20menus=20(experimental)=20Retocados=20algunos?= =?UTF-8?q?=20textos=20del=20menu=20de=20JailerID?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- data/lang/ba_BA.txt | 2 +- data/lang/en_UK.txt | 2 +- data/lang/es_ES.txt | 4 ++-- data/menu/options.men | 3 +++ data/menu/player_select.men | 3 +++ data/menu/title.men | 3 +++ source/enter_id.cpp | 8 +++++++- 7 files changed, 20 insertions(+), 5 deletions(-) diff --git a/data/lang/ba_BA.txt b/data/lang/ba_BA.txt index 52835d0..1a1963c 100644 --- a/data/lang/ba_BA.txt +++ b/data/lang/ba_BA.txt @@ -272,7 +272,7 @@ CONFIGURACIO EN LINEA INTRODUEIX UN JAILER_ID ## 91 - ENTER ID -O DEIXA BUIT PER A +DEIXA BUIT PER A ## 92 - ENTER ID MODE FORA DE LINEA \ No newline at end of file diff --git a/data/lang/en_UK.txt b/data/lang/en_UK.txt index de4f865..9c1dd07 100644 --- a/data/lang/en_UK.txt +++ b/data/lang/en_UK.txt @@ -272,7 +272,7 @@ ONLINE CONFIGURATION PLEASE ENTER AN ID ## 91 - ENTER ID -OR LEAVE BLANK FOR +LEAVE BLANK FOR ## 92 - ENTER ID OFFLINE MODE \ No newline at end of file diff --git a/data/lang/es_ES.txt b/data/lang/es_ES.txt index 0cf8e32..464dc95 100644 --- a/data/lang/es_ES.txt +++ b/data/lang/es_ES.txt @@ -272,7 +272,7 @@ CONFIGURACION ONLNE INTRODUCE UN JAILER_ID ## 91 - ENTER ID -O DEJA EN BLANCO PARA +DEJA EN BLANCO PARA ## 92 - ENTER ID -MODO OFFLINE \ No newline at end of file +MODO SIN CONEXION \ No newline at end of file diff --git a/data/menu/options.men b/data/menu/options.men index c49156c..8c728aa 100644 --- a/data/menu/options.men +++ b/data/menu/options.men @@ -21,6 +21,9 @@ centerY=96 selector_color=229,28,35,255 selector_text_color=255,241,118 +selector_color=255,122,0,255 +selector_text_color=127,61,0,255 + defaultActionWhenCancel=14 [item] diff --git a/data/menu/player_select.men b/data/menu/player_select.men index cf5dae0..e7eb603 100644 --- a/data/menu/player_select.men +++ b/data/menu/player_select.men @@ -17,6 +17,9 @@ centerX=128 selector_color=229,28,35,0 selector_text_color=255,180,0 +selector_color=255,122,0,255 +selector_text_color=127,61,0,255 + defaultActionWhenCancel=3 [item] diff --git a/data/menu/title.men b/data/menu/title.men index b82f2f9..7beb729 100644 --- a/data/menu/title.men +++ b/data/menu/title.men @@ -17,6 +17,9 @@ centerX=128 selector_color=229,28,35,0 selector_text_color=255,180,0 +selector_color=255,122,0,255 +selector_text_color=127,61,0,255 + defaultActionWhenCancel=3 [item] diff --git a/source/enter_id.cpp b/source/enter_id.cpp index 5fd27f4..136e206 100644 --- a/source/enter_id.cpp +++ b/source/enter_id.cpp @@ -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;