| 23 | { |
| 24 | |
| 25 | AlertScreen::AlertScreen(sp<GameState> state, sp<Building> building) |
| 26 | : Stage(), menuform(ui().getForm("city/alert")), state(state), building(building) |
| 27 | { |
| 28 | menuform->findControlTyped<Label>("TEXT_FUNDS")->setText(state->getPlayerBalance()); |
| 29 | menuform->findControlTyped<Label>("TEXT_OWNER_NAME")->setText(tr(building->owner->name)); |
| 30 | menuform->findControlTyped<Label>("TEXT_BUILDING_FUNCTION") |
| 31 | ->setText(tr(building->function->name)); |
| 32 | } |
| 33 | |
| 34 | AlertScreen::~AlertScreen() = default; |
| 35 |
nothing calls this directly
no test coverage detected