MCPcopy Create free account
hub / github.com/OpenApoc/OpenApoc / begin

Method begin

game/ui/city/basebuyscreen.cpp:36–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34BaseBuyScreen::~BaseBuyScreen() = default;
35
36void 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
49void BaseBuyScreen::pause() {}
50

Callers

nothing calls this directly

Calls 5

formatFunction · 0.85
trFunction · 0.85
getPlayerBalanceMethod · 0.80
setTextMethod · 0.45
setImageMethod · 0.45

Tested by

no test coverage detected