| 34 | BaseBuyScreen::~BaseBuyScreen() = default; |
| 35 | |
| 36 | void BaseBuyScreen::begin() |
| 37 | { |
| 38 | baseView = form->findControlTyped<Graphic>("GRAPHIC_BASE_VIEW"); |
| 39 | |
| 40 | form->findControlTyped<Label>("TEXT_FUNDS")->setText(state->getPlayerBalance()); |
| 41 | |
| 42 | auto text = form->findControlTyped<Label>("TEXT_PRICE"); |
| 43 | text->setText(format(tr("This Building will cost $%d"), price)); |
| 44 | |
| 45 | form->findControlTyped<Graphic>("GRAPHIC_MINIMAP") |
| 46 | ->setImage(BaseGraphics::drawMinimap(state, *base->building)); |
| 47 | } |
| 48 | |
| 49 | void BaseBuyScreen::pause() {} |
| 50 |
nothing calls this directly
no test coverage detected