| 611 | } |
| 612 | |
| 613 | void Renderer::RenderPauseMenu(Menu menu) |
| 614 | { |
| 615 | int y = 0; |
| 616 | auto pauseOption = g_Gui.GetSelectedOption(); |
| 617 | auto plainColor = g_GameFlow->GetSettings()->UI.PlainTextColor; |
| 618 | |
| 619 | switch (g_Gui.GetMenuToDisplay()) |
| 620 | { |
| 621 | case Menu::Pause: |
| 622 | |
| 623 | // Setup needed parameters |
| 624 | y = MenuVerticalPause; |
| 625 | |
| 626 | // Header |
| 627 | AddString(MenuCenterEntry, y, g_GameFlow->GetString(STRING_ACTIONS_PAUSE), g_GameFlow->GetSettings()->UI.HeaderTextColor, SF_Center()); |
| 628 | GetNextBlockPosition(&y); |
| 629 | |
| 630 | // Statistics |
| 631 | AddString(MenuCenterEntry, y, g_GameFlow->GetString(STRING_STATISTICS), plainColor, SF_Center(pauseOption == 0)); |
| 632 | GetNextLinePosition(&y); |
| 633 | |
| 634 | // Options |
| 635 | AddString(MenuCenterEntry, y, g_GameFlow->GetString(STRING_OPTIONS), plainColor, SF_Center(pauseOption == 1)); |
| 636 | GetNextLinePosition(&y); |
| 637 | |
| 638 | // Exit to title |
| 639 | AddString(MenuCenterEntry, y, g_GameFlow->GetString(STRING_EXIT_TO_TITLE), plainColor, SF_Center(pauseOption == 2)); |
| 640 | break; |
| 641 | |
| 642 | case Menu::Statistics: |
| 643 | DrawStatistics(); |
| 644 | break; |
| 645 | |
| 646 | case Menu::Options: |
| 647 | case Menu::GeneralActions: |
| 648 | case Menu::VehicleActions: |
| 649 | case Menu::QuickActions: |
| 650 | case Menu::MenuActions: |
| 651 | case Menu::Display: |
| 652 | case Menu::OtherSettings: |
| 653 | RenderOptionsMenu(menu, MenuVerticalOptionsPause); |
| 654 | break; |
| 655 | } |
| 656 | |
| 657 | DrawLines2D(); |
| 658 | DrawAllStrings(); |
| 659 | } |
| 660 | |
| 661 | void Renderer::RenderLoadSaveMenu() |
| 662 | { |
nothing calls this directly
no test coverage detected