Prints the hints mode welcome screen.
| 396 | |
| 397 | // Prints the hints mode welcome screen. |
| 398 | void hints_starting_screen() |
| 399 | { |
| 400 | string text = getHintString("welcome"); |
| 401 | _replace_static_tags(text); |
| 402 | trim_string(text); |
| 403 | |
| 404 | auto prompt_ui = make_shared<Text>(formatted_string::parse_string(text)); |
| 405 | prompt_ui->set_wrap_text(true); |
| 406 | #ifdef USE_TILE_LOCAL |
| 407 | prompt_ui->max_size().width = 800; |
| 408 | #else |
| 409 | prompt_ui->max_size().width = 80; |
| 410 | #endif |
| 411 | |
| 412 | bool done = false; |
| 413 | auto popup = make_shared<ui::Popup>(prompt_ui); |
| 414 | popup->on_keydown_event([&](const KeyEvent&) { return done = true; }); |
| 415 | |
| 416 | mouse_control mc(MOUSE_MODE_MORE); |
| 417 | ui::run_layout(std::move(popup), done); |
| 418 | } |
| 419 | |
| 420 | // Called each turn from _input. Better name welcome. |
| 421 | void hints_new_turn() |
no test coverage detected