|
|
|
@ -563,10 +563,8 @@ static constexpr NWidgetPart _nested_scen_edit_land_gen_widgets[] = {
|
|
|
|
|
SetFill(1, 0), SetDataTip(STR_TERRAFORM_SE_NEW_WORLD, STR_TERRAFORM_TOOLTIP_GENERATE_RANDOM_LAND), SetPadding(0, 2, 0, 2),
|
|
|
|
|
NWidget(WWT_TEXTBTN, COLOUR_GREY, WID_ETT_RESET_LANDSCAPE), SetMinimalSize(160, 12),
|
|
|
|
|
SetFill(1, 0), SetDataTip(STR_TERRAFORM_RESET_LANDSCAPE, STR_TERRAFORM_RESET_LANDSCAPE_TOOLTIP), SetPadding(1, 2, 0, 2),
|
|
|
|
|
NWidget(NWID_SELECTION, INVALID_COLOUR, WID_ETT_SHOW_PUBLIC_ROADS),
|
|
|
|
|
NWidget(WWT_TEXTBTN, COLOUR_GREY, WID_ETT_PUBLIC_ROADS), SetMinimalSize(160, 12),
|
|
|
|
|
SetFill(1, 0), SetDataTip(STR_TERRAFORM_PUBLIC_ROADS, STR_TERRAFORM_PUBLIC_ROADS_TOOLTIP), SetPadding(1, 2, 0, 2),
|
|
|
|
|
EndContainer(),
|
|
|
|
|
NWidget(WWT_TEXTBTN, COLOUR_GREY, WID_ETT_PUBLIC_ROADS), SetMinimalSize(160, 12),
|
|
|
|
|
SetFill(1, 0), SetDataTip(STR_TERRAFORM_PUBLIC_ROADS, STR_TERRAFORM_PUBLIC_ROADS_TOOLTIP), SetPadding(1, 2, 0, 2),
|
|
|
|
|
NWidget(NWID_SPACER), SetMinimalSize(0, 2),
|
|
|
|
|
EndContainer(),
|
|
|
|
|
};
|
|
|
|
@ -713,8 +711,10 @@ struct ScenarioEditorLandscapeGenerationWindow : Window {
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
case WID_ETT_PUBLIC_ROADS: { // Build public roads
|
|
|
|
|
extern void GeneratePublicRoads();
|
|
|
|
|
GeneratePublicRoads();
|
|
|
|
|
extern void GeneratePublicRoads(PublicRoadsConstruction build_mode);
|
|
|
|
|
PublicRoadsConstruction build_mode = _settings_game.game_creation.build_public_roads;
|
|
|
|
|
if (build_mode == PRC_NONE) build_mode = PRC_WITH_CURVES;
|
|
|
|
|
GeneratePublicRoads(build_mode);
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -807,8 +807,6 @@ struct ScenarioEditorLandscapeGenerationWindow : Window {
|
|
|
|
|
{
|
|
|
|
|
NWidgetStacked *show_desert = this->GetWidget<NWidgetStacked>(WID_ETT_SHOW_PLACE_DESERT);
|
|
|
|
|
show_desert->SetDisplayedPlane(_settings_game.game_creation.landscape == LT_TROPIC ? 0 : SZSP_NONE);
|
|
|
|
|
NWidgetStacked *show_public_roads = this->GetWidget<NWidgetStacked>(WID_ETT_SHOW_PUBLIC_ROADS);
|
|
|
|
|
show_public_roads->SetDisplayedPlane(_settings_game.game_creation.build_public_roads != 0 ? 0 : SZSP_NONE);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
static HotkeyList hotkeys;
|
|
|
|
|