+
+ add_submenu(_("Select Language"), language_menu.get())
+ ->set_help(_("Switch to another language"));
+
+ add_submenu(_("Select Profile"), get_profile_menu())
+ ->set_help(_("Switch between different savegames"));
+
+ add_toggle(MNID_SOUND, _("Profile on Startup"), config->sound_enabled)
+ ->set_help(_("Display the profile menu when the game is newly started"));
+
+ // FIXME: Implement me: if (get_parent() == main_menu)
+ add_toggle(MNID_FULLSCREEN,_("Fullscreen"), config->use_fullscreen)
+ ->set_help(_("Let the game cover the whole screen"));
+
+ MenuItem* aspect = add_string_select(MNID_ASPECTRATIO, _("Aspect Ratio"));
+ aspect->set_help(_("Adjust the aspect ratio"));
+
+ aspect->list.push_back("16:9");
+ aspect->list.push_back("16:10");
+ aspect->list.push_back("4:3");
+ aspect->list.push_back("5:4");
+
+ std::ostringstream out;
+ out << config->aspect_width << ":" << config->aspect_height;
+ std::string aspect_ratio = out.str();
+ for(std::vector<std::string>::iterator i = aspect->list.begin(); i != aspect->list.end(); ++i)
+ {
+ if(*i == aspect_ratio)
+ {
+ aspect_ratio.clear();
+ break;
+ }
+ }
+
+ if (!aspect_ratio.empty())
+ {
+ aspect->selected = aspect->list.size();
+ aspect->list.push_back(aspect_ratio);
+ }
+