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

Method BaseSelectScreen

game/ui/city/baseselectscreen.cpp:23–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21{
22
23BaseSelectScreen::BaseSelectScreen(sp<GameState> state, Vec3<float> centerPos)
24 : CityTileView(*state->current_city->map, Vec3<int>{TILE_X_CITY, TILE_Y_CITY, TILE_Z_CITY},
25 Vec2<int>{STRAT_TILE_X, STRAT_TILE_Y}, TileViewMode::Strategy,
26 state->current_city->cityViewScreenCenter, *state),
27 menuform(ui().getForm("city/baseselect")), state(state)
28{
29 this->centerPos = centerPos;
30 this->menuform->findControl("BUTTON_OK")
31 ->addCallback(FormEventType::ButtonClick,
32 [](Event *) { fw().stageQueueCommand({StageCmd::Command::POP}); });
33}
34
35BaseSelectScreen::~BaseSelectScreen() = default;
36

Callers

nothing calls this directly

Calls 4

addCallbackMethod · 0.80
findControlMethod · 0.80
stageQueueCommandMethod · 0.80
getFormMethod · 0.45

Tested by

no test coverage detected