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

Method AlertScreen

game/ui/city/alertscreen.cpp:25–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23{
24
25AlertScreen::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
34AlertScreen::~AlertScreen() = default;
35

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