| 72 | } |
| 73 | |
| 74 | bool IndexPage::OnNav(OptionsShell& shell, int idc) |
| 75 | { |
| 76 | switch (idc) |
| 77 | { |
| 78 | case 1101: // Audio |
| 79 | shell.PushPage(std::make_unique<AudioPage>()); |
| 80 | return true; |
| 81 | case 1102: // Display |
| 82 | shell.PushPage(std::make_unique<DisplayPage>()); |
| 83 | return true; |
| 84 | case 1103: // Graphics |
| 85 | shell.PushPage(std::make_unique<GraphicsPage>()); |
| 86 | return true; |
| 87 | case 1104: // Game |
| 88 | shell.PushPage(std::make_unique<GamePage>()); |
| 89 | return true; |
| 90 | case 1107: // Controls |
| 91 | shell.PushPage(std::make_unique<ControlsPage>()); |
| 92 | return true; |
| 93 | case 1108: // Difficulty |
| 94 | shell.PushPage(std::make_unique<DifficultyPage>()); |
| 95 | return true; |
| 96 | case 1105: // Credits / Close |
| 97 | if (!shell.ShouldShowCredits()) |
| 98 | { |
| 99 | shell.PopPage(); |
| 100 | return true; |
| 101 | } |
| 102 | PlayCreditsCutscene(&shell); |
| 103 | return true; |
| 104 | case 1106: // Close |
| 105 | shell.PopPage(); |
| 106 | return true; |
| 107 | } |
| 108 | return false; |
| 109 | } |
| 110 | |
| 111 | } // namespace Poseidon |
nothing calls this directly
no test coverage detected