Limpieza y organización de código

This commit is contained in:
2022-10-19 10:34:33 +02:00
parent 7288792940
commit d5dfc952c2
13 changed files with 19 additions and 140 deletions

View File

@@ -40,29 +40,12 @@ Logo::Logo(SDL_Renderer *renderer, Screen *screen, Asset *asset, int subsection)
endLogo = 400;
postLogo = 20;
color_t c = stringToColor("black");
color.push_back(c);
c = stringToColor("blue");
color.push_back(c);
c = stringToColor("red");
color.push_back(c);
c = stringToColor("magenta");
color.push_back(c);
c = stringToColor("green");
color.push_back(c);
c = stringToColor("cyan");
color.push_back(c);
c = stringToColor("yellow");
color.push_back(c);
c = stringToColor("bright_white");
color.push_back(c);
// Inicializa el vector de colores
const std::vector<std::string> vColors = {"black", "blue", "red", "magenta", "green", "cyan", "yellow", "bright_white"};
for (auto v : vColors)
{
color.push_back(stringToColor(v));
}
// Cambia el color del borde
screen->setBorderColor(stringToColor("black"));