Skip to content

Commit

Permalink
Highlight the currently active profile in ProfileMenu
Browse files Browse the repository at this point in the history
  • Loading branch information
Grumbel committed Aug 10, 2014
1 parent ade3954 commit 094e387
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions src/supertux/menu/profile_menu.cpp
Expand Up @@ -28,11 +28,18 @@ ProfileMenu::ProfileMenu()
{
add_label(_("Select Profile"));
add_hl();
for(int i = 0; i < 5; ++i)
for(int i = 1; i <= 5; ++i)
{
std::ostringstream out;
out << "Profile " << i+1;
add_entry(i+1, out.str());
if (i == g_config->profile)
{
out << "[Profile " << i << "]";
}
else
{
out << "Profile " << i;
}
add_entry(i, out.str());
}

add_hl();
Expand Down

0 comments on commit 094e387

Please sign in to comment.