| 88 | } |
| 89 | |
| 90 | void Scene_End::CreateHelpWindow() { |
| 91 | std::string term_exit_message = ToString(lcf::Data::terms.exit_game_message); |
| 92 | if (term_exit_message.empty()) { |
| 93 | term_exit_message = "Do you really want to quit?"; |
| 94 | } |
| 95 | |
| 96 | int text_size = Text::GetSize(*Font::Default(), term_exit_message).width; |
| 97 | |
| 98 | int window_width = text_size + 16; |
| 99 | |
| 100 | help_window.reset(new Window_Help(Player::menu_offset_x + (MENU_WIDTH / 2) - (window_width / 2), |
| 101 | Player::menu_offset_y + 72, window_width, 32)); |
| 102 | help_window->SetText(term_exit_message, Font::ColorDefault, Text::AlignLeft, false); |
| 103 | |
| 104 | command_window->SetHelpWindow(help_window.get()); |
| 105 | } |
nothing calls this directly
no test coverage detected