// Scorelist
// -----------------------------------------------------------------------
- std::ifstream highscore_file_r{data["game_constants"]["highscore_file"].get<std::string>()};
+ std::ifstream highscore_file_r{
+ data["game_constants"]["highscore_file"].get<std::string>()};
std::string csv_content{};
int index{0};
- for (std::string one_line; std::getline(highscore_file_r, one_line); csv_content += std::to_string(index) + ". " + one_line + "p \n")
+ for (std::string one_line; std::getline(highscore_file_r, one_line);
+ csv_content += std::to_string(index) + ". " + one_line + "p \n")
{
++index;
}
}
// mouse placement
- mouse_r.setPosition(((S_WIDTH / 2) + 45 - 30*(menu_index - 1)), ((S_HEIGHT / 2) + 60 + 50*(menu_index - 1)));
- mouse_l.setPosition(((S_WIDTH / 2) - 73 + 30*(menu_index - 1)), ((S_HEIGHT / 2) + 60 + 50*(menu_index - 1)));
+ mouse_r.setPosition(((S_WIDTH / 2) + 45 - 30*(menu_index - 1)),
+ ((S_HEIGHT / 2) + 60 + 50*(menu_index - 1)));
+
+ mouse_l.setPosition(((S_WIDTH / 2) - 73 + 30*(menu_index - 1)),
+ ((S_HEIGHT / 2) + 60 + 50*(menu_index - 1)));
}