| 143 | }; |
| 144 | |
| 145 | static void updateDisplayNotice(Gfx::DrawingContext& drawingCtx) |
| 146 | { |
| 147 | auto tr = Gfx::TextRenderer(drawingCtx); |
| 148 | |
| 149 | drawingCtx.clearSingle(PaletteIndex::black0); |
| 150 | |
| 151 | const auto pos = Ui::Point(Ui::width() / 2, Ui::height() / 2); |
| 152 | |
| 153 | tr.drawStringCentredWrapped(pos + Ui::Point(0, -80), Ui::width(), Colour::black, StringIds::intro_notice_0); |
| 154 | tr.drawStringCentredWrapped(pos, Ui::width(), Colour::black, StringIds::intro_notice_1); |
| 155 | |
| 156 | auto noticePos = pos + Ui::Point(0, 80); |
| 157 | for (auto& noticeId : kIntroNoticeStrings) |
| 158 | { |
| 159 | tr.drawStringCentred(noticePos, Colour::black, noticeId); |
| 160 | noticePos += Ui::Point(0, 10); |
| 161 | } |
| 162 | |
| 163 | if (_introTicks == 0) |
| 164 | { |
| 165 | Gfx::loadPalette(ImageIds::default_palette, 0xFF); |
| 166 | } |
| 167 | _introTicks++; |
| 168 | |
| 169 | if (MultiPlayer::hasFlag(MultiPlayer::flag_8) || MultiPlayer::hasFlag(MultiPlayer::flag_9)) |
| 170 | { |
| 171 | if (_introTicks >= 160) |
| 172 | { |
| 173 | _state = State::end; |
| 174 | } |
| 175 | } |
| 176 | else |
| 177 | { |
| 178 | if (_introTicks >= 1440) |
| 179 | { |
| 180 | _state = State::end; |
| 181 | } |
| 182 | } |
| 183 | } |
| 184 | static void updateDisplayNoticeBeginReset(Gfx::DrawingContext& drawingCtx) |
| 185 | { |
| 186 | _introTicks = 0; |
no test coverage detected