Skip to content

Commit ea14109

Browse files
author
Semphris
committed
Moved rumbling setting to generic options menu
1 parent 9f4ea09 commit ea14109

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

src/supertux/menu/multiplayer_menu.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,6 @@ MultiplayerMenu::MultiplayerMenu()
3030
auto& automanage_item = add_toggle(-1, _("Auto-manage Players"), &g_config->multiplayer_auto_manage_players);
3131
automanage_item.set_help(_("Automatically add and remove players when controllers are plugged or unplugged"));
3232

33-
auto& buzz_item = add_toggle(-1, _("Enable Rumbling Controllers"), &g_config->multiplayer_buzz_controllers);
34-
buzz_item.set_help(_("Enable vibrating the game controllers.") + " " + _("This feature is currently only used in the options menu."));
35-
// ^ Separated both translation strings so the latter can be removed if it is
36-
// no longer true, without requiring a new round of translating
37-
3833
add_submenu(_("Manage Players"), MenuStorage::MULTIPLAYER_PLAYERS_MENU);
3934

4035
add_hl();

src/supertux/menu/options_menu.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ enum OptionsMenuIDs {
6868
MNID_MUSIC,
6969
MNID_SOUND_VOLUME,
7070
MNID_MUSIC_VOLUME,
71+
MNID_RUMBLING,
7172
MNID_DEVELOPER_MODE,
7273
MNID_CHRISTMAS_MODE,
7374
MNID_TRANSITIONS,
@@ -403,6 +404,11 @@ OptionsMenu::OptionsMenu(bool complete) :
403404
add_inactive( _("Music (disabled)"));
404405
}
405406

407+
// Separated both translation strings so the latter can be removed if it is
408+
// no longer true, without requiring a new round of translating
409+
add_toggle(MNID_RUMBLING, _("Enable Rumbling Controllers"), &g_config->multiplayer_buzz_controllers)
410+
.set_help(_("Enable vibrating the game controllers.") + " " + _("This feature is currently only used in the multiplayer options menu."));
411+
406412
add_submenu(_("Setup Keyboard"), MenuStorage::KEYBOARD_MENU)
407413
.set_help(_("Configure key-action mappings"));
408414

0 commit comments

Comments
 (0)