git repos / blockattack-game

commit 47515b6a

Poul Sander · 2019-02-13 18:16
47515b6a2f5d08fc98f09ba1ed1d73407e4dfc73 patch · browse files
parent 49541fac314fb97d0b629f1c11679d04433afa45

Different headers for the highscore list

Changed files

M source/code/ScoresDisplay.cpp before
diff --git a/source/code/ScoresDisplay.cpp b/source/code/ScoresDisplay.cpp index 429b0d0..39cf03d 100644 --- a/source/code/ScoresDisplay.cpp +++ b/source/code/ScoresDisplay.cpp
@@ -64,7 +64,23 @@ void ScoresDisplay::DrawBackgroundAndCalcPlacements() {
void ScoresDisplay::DrawHighscores(int x, int y, bool endless, int level = 0) {
DrawBackgroundAndCalcPlacements();
if (endless) {
- std::string header = SPrintStringF(_("Endless (%s):"), std::to_string(level).c_str());
+ std::string header;
+ switch (level) {
+ case 1:
+ header = _("Endless (Fast):");
+ break;
+ case 2:
+ header = _("Endless (Faster):");
+ break;
+ case 3:
+ header = _("Endless (Even faster):");
+ break;
+ case 4:
+ header = _("Endless (Fastest):");
+ break;
+ default:
+ header = _("Endless:");
+ };
Write(globalData.screen, x+100,y+100, header.c_str() );
}
else {