| 16 | { |
| 17 | |
| 18 | NotificationScreen::NotificationScreen(sp<GameState> state, CityView &cityView, |
| 19 | const UString &message, GameEventType eventType) |
| 20 | : Stage(), menuform(ui().getForm("notification")), eventType(eventType), state(state) |
| 21 | { |
| 22 | menuform->findControlTyped<Label>("TEXT_NOTIFICATION")->setText(message); |
| 23 | |
| 24 | menuform->findControl("BUTTON_PAUSE") |
| 25 | ->addCallback(FormEventType::ButtonClick, [&cityView](Event *) { |
| 26 | cityView.zoomLastEvent(); |
| 27 | cityView.setUpdateSpeed(CityUpdateSpeed::Pause); |
| 28 | fw().stageQueueCommand({StageCmd::Command::POP}); |
| 29 | }); |
| 30 | } |
| 31 | |
| 32 | NotificationScreen::NotificationScreen(sp<GameState> state, BattleView &battleView, |
| 33 | const UString &message, GameEventType eventType) |
nothing calls this directly
no test coverage detected