* Changes landscape type and sets genworld window dirty * @param landscape new landscape type */
| 67 | * @param landscape new landscape type |
| 68 | */ |
| 69 | void SetNewLandscapeType(LandscapeType landscape) |
| 70 | { |
| 71 | _settings_newgame.game_creation.landscape = landscape; |
| 72 | InvalidateWindowClassesData(WC_SELECT_GAME); |
| 73 | InvalidateWindowClassesData(WC_GENERATE_LANDSCAPE); |
| 74 | } |
| 75 | |
| 76 | /** Widgets of GenerateLandscapeWindow when generating world */ |
| 77 | static constexpr std::initializer_list<NWidgetPart> _nested_generate_landscape_widgets = { |
no test coverage detected