Treballant en scoreboard::fillPanelTextures

This commit is contained in:
2025-02-06 20:58:15 +01:00
parent 44e4ca490d
commit 559210652f
11 changed files with 194 additions and 134 deletions

View File

@@ -395,7 +395,7 @@ void HiScoreTable::initBackground()
background_->setTransition(0.0f);
background_->setSunProgression(1.0f);
background_->setMoonProgression(0.0f);
background_fade_color_ = Color(0x00, 0x79, 0x6b);
background_fade_color_ = green_sky_color;
break;
}
@@ -405,7 +405,7 @@ void HiScoreTable::initBackground()
background_->setTransition(0.0f);
background_->setSunProgression(0.65f);
background_->setMoonProgression(0.0f);
background_fade_color_ = Color(0xff, 0x6b, 0x97);
background_fade_color_ = pink_sky_color;
break;
}
@@ -415,7 +415,7 @@ void HiScoreTable::initBackground()
background_->setTransition(0.0f);
background_->setSunProgression(0.0f);
background_->setMoonProgression(0.0f);
background_fade_color_ = Color(0x02, 0x88, 0xd1);
background_fade_color_ = blue_sky_color;
break;
}
@@ -427,10 +427,10 @@ void HiScoreTable::initBackground()
// Obtiene un color del vector de colores de entradas
Color HiScoreTable::getEntryColor(int counter_)
{
int cycle_length = entry_colors_.size() * 2 - 2; // Esto es 6 en este caso
int n = counter_ % cycle_length;
int cycle_length = entry_colors_.size() * 2 - 2;
size_t n = counter_ % cycle_length;
int index;
size_t index;
if (n < entry_colors_.size())
{
index = n; // Avanza: 0,1,2,3