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

Method LocationScreen

game/ui/components/locationscreen.cpp:23–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21{
22
23LocationScreen::LocationScreen(sp<GameState> state, sp<Agent> agent)
24 : Stage(), menuform(ui().getForm("city/location")), state(state), agent(agent)
25{
26 if (agent->currentBuilding)
27 {
28 building = agent->currentBuilding;
29 }
30 menuform->findControlTyped<Label>("CAPTION")->setText(tr("AGENT LOCATION"));
31 menuform->findControlTyped<Graphic>("BG")->setImage(
32 fw().data->loadImage("xcom3/ufodata/location.pcx"));
33}
34
35LocationScreen::LocationScreen(sp<GameState> state, sp<Vehicle> vehicle)
36 : Stage(), menuform(ui().getForm("city/location")), state(state), vehicle(vehicle)

Callers

nothing calls this directly

Calls 5

trFunction · 0.85
getFormMethod · 0.45
setTextMethod · 0.45
setImageMethod · 0.45
loadImageMethod · 0.45

Tested by

no test coverage detected