La pantalla de cambio de jailer_id ya está en multilenguaje
This commit is contained in:
@@ -259,8 +259,20 @@ ha iniciat la sesio
|
|||||||
## 86 - NOTIFICACIONES
|
## 86 - NOTIFICACIONES
|
||||||
Punts enviats:
|
Punts enviats:
|
||||||
|
|
||||||
## 86 - NOTIFICACIONES
|
## 87 - NOTIFICACIONES
|
||||||
No s'ha pogut
|
No s'ha pogut
|
||||||
|
|
||||||
## 87 - NOTIFICACIONES
|
## 88 - NOTIFICACIONES
|
||||||
enviar la puntuacio
|
enviar la puntuacio
|
||||||
|
|
||||||
|
## 89 - ENTER ID
|
||||||
|
CONFIGURACIO EN LINEA
|
||||||
|
|
||||||
|
## 90 - ENTER ID
|
||||||
|
INTRODUEIX UN JAILER_ID
|
||||||
|
|
||||||
|
## 91 - ENTER ID
|
||||||
|
O DEIXA BUIT PER A
|
||||||
|
|
||||||
|
## 92 - ENTER ID
|
||||||
|
MODE FORA DE LINEA
|
||||||
@@ -259,8 +259,20 @@ is logged in
|
|||||||
## 86 - NOTIFICACIONES
|
## 86 - NOTIFICACIONES
|
||||||
Score submitted
|
Score submitted
|
||||||
|
|
||||||
## 86 - NOTIFICACIONES
|
## 87 - NOTIFICACIONES
|
||||||
Failed to send
|
Failed to send
|
||||||
|
|
||||||
## 87 - NOTIFICACIONES
|
## 88 - NOTIFICACIONES
|
||||||
score to online server
|
score to online server
|
||||||
|
|
||||||
|
## 89 - ENTER ID
|
||||||
|
ONLINE CONFIGURATION
|
||||||
|
|
||||||
|
## 90 - ENTER ID
|
||||||
|
PLEASE ENTER AN ID
|
||||||
|
|
||||||
|
## 91 - ENTER ID
|
||||||
|
OR LEAVE BLANK FOR
|
||||||
|
|
||||||
|
## 92 - ENTER ID
|
||||||
|
OFFLINE MODE
|
||||||
@@ -259,8 +259,20 @@ ha iniciado la sesion
|
|||||||
## 86 - NOTIFICACIONES
|
## 86 - NOTIFICACIONES
|
||||||
Puntos enviados:
|
Puntos enviados:
|
||||||
|
|
||||||
## 86 - NOTIFICACIONES
|
## 87 - NOTIFICACIONES
|
||||||
No se ha podido
|
No se ha podido
|
||||||
|
|
||||||
## 87 - NOTIFICACIONES
|
## 88 - NOTIFICACIONES
|
||||||
enviar la puntuacion
|
enviar la puntuacion
|
||||||
|
|
||||||
|
## 89 - ENTER ID
|
||||||
|
CONFIGURACION ONLNE
|
||||||
|
|
||||||
|
## 90 - ENTER ID
|
||||||
|
INTRODUCE UN JAILER_ID
|
||||||
|
|
||||||
|
## 91 - ENTER ID
|
||||||
|
O DEJA EN BLANCO PARA
|
||||||
|
|
||||||
|
## 92 - ENTER ID
|
||||||
|
MODO OFFLINE
|
||||||
@@ -741,7 +741,8 @@ void Director::initOnline()
|
|||||||
#else
|
#else
|
||||||
const std::string caption = options->online.jailerID;
|
const std::string caption = options->online.jailerID;
|
||||||
#endif
|
#endif
|
||||||
screen->showNotification(caption, lang->getText(85), 12);
|
//screen->showNotification(caption, lang->getText(85), 12);
|
||||||
|
screen->showNotification(caption, lang->getText(85));
|
||||||
if (options->console)
|
if (options->console)
|
||||||
{
|
{
|
||||||
std::cout << caption << std::endl;
|
std::cout << caption << std::endl;
|
||||||
|
|||||||
@@ -180,9 +180,6 @@ void EnterID::render()
|
|||||||
// Prepara para empezar a dibujar en la textura de juego
|
// Prepara para empezar a dibujar en la textura de juego
|
||||||
screen->start();
|
screen->start();
|
||||||
|
|
||||||
// Limpia la pantalla
|
|
||||||
screen->clean();
|
|
||||||
|
|
||||||
// Dibuja la textura con el texto en pantalla
|
// Dibuja la textura con el texto en pantalla
|
||||||
SDL_RenderCopy(renderer, textTexture, nullptr, nullptr);
|
SDL_RenderCopy(renderer, textTexture, nullptr, nullptr);
|
||||||
|
|
||||||
@@ -203,13 +200,13 @@ void EnterID::iniTexts()
|
|||||||
texts.push_back({"", stringToColor(options->palette, "white")});
|
texts.push_back({"", stringToColor(options->palette, "white")});
|
||||||
texts.push_back({"", stringToColor(options->palette, "white")});
|
texts.push_back({"", stringToColor(options->palette, "white")});
|
||||||
texts.push_back({"", stringToColor(options->palette, "white")});
|
texts.push_back({"", stringToColor(options->palette, "white")});
|
||||||
texts.push_back({"ONLINE CONFIGURATION:", stringToColor(options->palette, "red")});
|
|
||||||
texts.push_back({"", stringToColor(options->palette, "white")});
|
texts.push_back({"", stringToColor(options->palette, "white")});
|
||||||
texts.push_back({"YOU HAVE NOT SPECIFIED ANY ID", stringToColor(options->palette, "white")});
|
|
||||||
texts.push_back({"FOR THE ONLINE SERVICE", stringToColor(options->palette, "white")});
|
|
||||||
texts.push_back({"", stringToColor(options->palette, "white")});
|
texts.push_back({"", stringToColor(options->palette, "white")});
|
||||||
texts.push_back({"PLEASE ENTER AN ID OR", stringToColor(options->palette, "white")});
|
texts.push_back({lang->getText(89), stringToColor(options->palette, "red")});
|
||||||
texts.push_back({"LEAVE BLANK FOR OFFLINE MODE", stringToColor(options->palette, "white")});
|
texts.push_back({"", stringToColor(options->palette, "white")});
|
||||||
|
texts.push_back({lang->getText(90), stringToColor(options->palette, "white")});
|
||||||
|
texts.push_back({lang->getText(91), stringToColor(options->palette, "white")});
|
||||||
|
texts.push_back({lang->getText(92), stringToColor(options->palette, "white")});
|
||||||
texts.push_back({"", stringToColor(options->palette, "white")});
|
texts.push_back({"", stringToColor(options->palette, "white")});
|
||||||
texts.push_back({"", stringToColor(options->palette, "white")});
|
texts.push_back({"", stringToColor(options->palette, "white")});
|
||||||
texts.push_back({"", stringToColor(options->palette, "white")});
|
texts.push_back({"", stringToColor(options->palette, "white")});
|
||||||
@@ -233,8 +230,7 @@ void EnterID::fillTexture()
|
|||||||
|
|
||||||
// Rellena la textura de texto
|
// Rellena la textura de texto
|
||||||
SDL_SetRenderTarget(renderer, textTexture);
|
SDL_SetRenderTarget(renderer, textTexture);
|
||||||
color_t c = stringToColor(options->palette, "black");
|
SDL_SetRenderDrawColor(renderer, bgColor.r, bgColor.g, bgColor.b, 0xFF);
|
||||||
SDL_SetRenderDrawColor(renderer, c.r, c.g, c.b, 0xFF);
|
|
||||||
SDL_RenderClear(renderer);
|
SDL_RenderClear(renderer);
|
||||||
|
|
||||||
// Escribe el texto en la textura
|
// Escribe el texto en la textura
|
||||||
|
|||||||
@@ -20,7 +20,7 @@
|
|||||||
class Lang
|
class Lang
|
||||||
{
|
{
|
||||||
private:
|
private:
|
||||||
Asset *mAsset; // Objeto que gestiona todos los ficheros de recursos
|
Asset *mAsset; // Objeto que gestiona todos los ficheros de recursos
|
||||||
std::string mTextStrings[MAX_TEXT_STRINGS]; // Vector con los textos
|
std::string mTextStrings[MAX_TEXT_STRINGS]; // Vector con los textos
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|||||||
Reference in New Issue
Block a user