From: Ingo Ruhnke Date: Sun, 10 Aug 2014 01:29:44 +0000 (+0200) Subject: Highlight the currently active profile in ProfileMenu X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=094e387d04508f6af3291945c4f57bc6f700d339;p=supertux.git Highlight the currently active profile in ProfileMenu --- diff --git a/src/supertux/menu/profile_menu.cpp b/src/supertux/menu/profile_menu.cpp index a4cf4775b..e616c7343 100644 --- a/src/supertux/menu/profile_menu.cpp +++ b/src/supertux/menu/profile_menu.cpp @@ -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();