namespace
| 46 | } |
| 47 | } // namespace |
| 48 | BuildingScreen::BuildingScreen(sp<GameState> state, sp<Building> building) |
| 49 | : Stage(), menuform(ui().getForm("city/building")), state(state), building(building) |
| 50 | { |
| 51 | menuform->findControlTyped<Label>("TEXT_FUNDS")->setText(state->getPlayerBalance()); |
| 52 | menuform->findControlTyped<Label>("TEXT_BUILDING_NAME")->setText(tr(building->name)); |
| 53 | menuform->findControlTyped<Label>("TEXT_OWNER_NAME")->setText(tr(building->owner->name)); |
| 54 | menuform->findControlTyped<Label>("TEXT_BUILDING_FUNCTION") |
| 55 | ->setText(tr(building->function->name)); |
| 56 | } |
| 57 | |
| 58 | BuildingScreen::~BuildingScreen() = default; |
| 59 |
nothing calls this directly
no test coverage detected