| 21 | { |
| 22 | |
| 23 | BaseSelectScreen::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 | |
| 35 | BaseSelectScreen::~BaseSelectScreen() = default; |
| 36 |
nothing calls this directly
no test coverage detected