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

Method BuildingScreen

game/ui/city/buildingscreen.cpp:48–56  ·  view source on GitHub ↗

namespace

Source from the content-addressed store, hash-verified

46}
47} // namespace
48BuildingScreen::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
58BuildingScreen::~BuildingScreen() = default;
59

Callers

nothing calls this directly

Calls 4

trFunction · 0.85
getPlayerBalanceMethod · 0.80
getFormMethod · 0.45
setTextMethod · 0.45

Tested by

no test coverage detected