Improve Pause menu

master
Maksim 2022-08-13 22:38:27 +02:00
parent a6299e1cb5
commit ee2ebbfb91
4 changed files with 17 additions and 12 deletions

View File

@ -4362,29 +4362,34 @@ void Game::showPauseMenu()
os << "formspec_version[1]" << SIZE_TAG os << "formspec_version[1]" << SIZE_TAG
<< "no_prepend[]" << "no_prepend[]"
<< "bgcolor[#00000060;true]" << "bgcolor[#00000060;true]"
<< "button_exit[3.5," << (ypos++) << ";4,0.5;btn_continue;"
<< strgettext("Continue") << "]"; << "style_type[image_button_exit,image_button;bgimg=gui_button.png;bgimg_middle=20;padding=-5]"
<< "style_type[image_button_exit,image_button:hovered;bgimg=gui_button_hovered.png;bgimg_middle=20]"
<< "style_type[image_button_exit,image_button:pressed;bgimg=gui_button_pressed.png;bgimg_middle=20]"
<< "image_button_exit[3.5," << (ypos++) << ";4,0.9;;btn_continue;"
<< strgettext("Continue") << ";;false]";
if (!simple_singleplayer_mode) { if (!simple_singleplayer_mode) {
os << "button[3.5," << (ypos++) << ";4,0.5;btn_change_password;" os << "image_button[3.5," << (ypos++) << ";4,0.9;;btn_change_password;"
<< strgettext("Change Password") << "]"; << strgettext("Change Password") << ";;false]";
} }
#if !defined(__ANDROID__) && !defined(__IOS__) #if !defined(__ANDROID__) && !defined(__IOS__)
#if USE_SOUND #if USE_SOUND
if (g_settings->getBool("enable_sound")) { if (g_settings->getBool("enable_sound")) {
os << "button_exit[3.5," << (ypos++) << ";4,0.5;btn_sound;" os << "image_button_exit[3.5," << (ypos++) << ";4,0.9;;btn_sound;"
<< strgettext("Sound Volume") << "]"; << strgettext("Sound Volume") << ";;false]";
} }
#endif #endif
os << "button_exit[3.5," << (ypos++) << ";4,0.5;btn_key_config;" os << "image_button_exit[3.5," << (ypos++) << ";4,0.9;;btn_key_config;"
<< strgettext("Change Keys") << "]"; << strgettext("Change Keys") << ";;false]";
#endif #endif
os << "button_exit[3.5," << (ypos++) << ";4,0.5;btn_exit_menu;" os << "image_button_exit[3.5," << (ypos++) << ";4,0.9;;btn_exit_menu;"
<< strgettext("Exit to Menu") << "]"; << strgettext("Exit to Menu") << ";;false]";
#ifndef __IOS__ #ifndef __IOS__
os << "button_exit[3.5," << (ypos++) << ";4,0.5;btn_exit_os;" os << "image_button_exit[3.5," << (ypos++) << ";4,0.9;;btn_exit_os;"
<< strgettext("Exit to OS") << "]" << strgettext("Exit to OS") << ";;false]";
#endif #endif
/* << "textarea[7.5,0.25;3.9,6.25;;" << control_text << ";]" /* << "textarea[7.5,0.25;3.9,6.25;;" << control_text << ";]"
<< "textarea[0.4,0.25;3.9,6.25;;" << PROJECT_NAME_C " " VERSION_STRING "\n" << "textarea[0.4,0.25;3.9,6.25;;" << PROJECT_NAME_C " " VERSION_STRING "\n"

Binary file not shown.

After

Width:  |  Height:  |  Size: 443 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 443 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 443 B