From 204225a3d5843d8889a88e596f119d1b22ffafd3 Mon Sep 17 00:00:00 2001 From: grorp Date: Wed, 1 Jan 2025 17:56:25 +0100 Subject: [PATCH] Remove direct keychange/touchscreenlayout from pause menu now redundant and we need space --- src/client/game_formspec.cpp | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) diff --git a/src/client/game_formspec.cpp b/src/client/game_formspec.cpp index 5ff9e9e9d..1417b1fc5 100644 --- a/src/client/game_formspec.cpp +++ b/src/client/game_formspec.cpp @@ -96,16 +96,6 @@ struct LocalFormspecHandler : public TextDest return; } - if (fields.find("btn_key_config") != fields.end()) { - g_gamecallback->keyConfig(); - return; - } - - if (fields.find("btn_touchscreen_layout") != fields.end()) { - g_gamecallback->touchscreenLayout(); - return; - } - if (fields.find("btn_exit_menu") != fields.end()) { g_gamecallback->disconnect(); return; @@ -353,13 +343,7 @@ void GameFormSpec::showPauseMenu() } #endif #endif - if (g_touchcontrols) { - os << "button_exit[4," << (ypos++) << ";3,0.5;btn_touchscreen_layout;" - << strgettext("Touchscreen Layout") << "]"; - } else { - os << "button_exit[4," << (ypos++) << ";3,0.5;btn_key_config;" - << strgettext("Controls") << "]"; - } + os << "button_exit[4," << (ypos++) << ";3,0.5;btn_exit_menu;" << strgettext("Exit to Menu") << "]"; os << "button_exit[4," << (ypos++) << ";3,0.5;btn_exit_os;"