Añadidos std:: a title.cpp

This commit is contained in:
2023-09-16 16:54:07 +02:00
parent 0ea7eb0b9c
commit cce0ccba76
2 changed files with 15 additions and 17 deletions

View File

@@ -38,9 +38,9 @@ Title::Title(SDL_Renderer *renderer, Screen *screen, Resource *resource, Asset *
// Crea el cartel de PRESS ENTER
#ifdef GAME_CONSOLE
const string caption = "PRESS START TO PLAY";
const std::string caption = "PRESS START TO PLAY";
#else
const string caption = "PRESS ENTER TO PLAY";
const std::string caption = "PRESS ENTER TO PLAY";
#endif
const color_t textColor = stringToColor(options->palette, "white");
const color_t strokeColor = stringToColor(options->palette, "bright_blue");
@@ -56,7 +56,7 @@ Title::Title(SDL_Renderer *renderer, Screen *screen, Resource *resource, Asset *
pressEnterSprite = new Sprite(128 - (pressEnterTexture->getWidth() / 2), 192 / 5 * 4, pressEnterTexture->getWidth(), pressEnterTexture->getHeight(), pressEnterTexture, renderer);
// Crea la textura con el listado de logros
const vector<cheevos_t> cheevosList = cheevos->list();
const std::vector<cheevos_t> cheevosList = cheevos->list();
const int iconSize = 16; // Altura del icono que representa a cada logro
const int cheevoHeight = iconSize + 2; // EL espacio que ocupa cada logro es igual a la altura del icono mas dos pixeles de separación
const int cheevosTextureWidth = 200;
@@ -258,7 +258,7 @@ void Title::renderMarquee()
// Dibuja la linea de información inferior
void Title::renderInfo()
{
const string loginText = options->online.enabled ? "OnLine: " + options->online.jailerID : "OnLine: OFF";
const std::string loginText = options->online.enabled ? "OnLine: " + options->online.jailerID : "OnLine: OFF";
infoText->writeDX(TXT_CENTER | TXT_COLOR, GAMECANVAS_FIRST_QUARTER_X, 1, loginText, 1, stringToColor(options->palette, "white"));
infoText->writeDX(TXT_CENTER | TXT_COLOR, GAMECANVAS_CENTER_X, 1, "H: Help", 1, stringToColor(options->palette, "white"));
infoText->writeDX(TXT_CENTER | TXT_COLOR, GAMECANVAS_THIRD_QUARTER_X, 1, "A: Achievements", 1, stringToColor(options->palette, "white"));