From e205ca8b708a1f2a3c326e07690cd76756aeac44 Mon Sep 17 00:00:00 2001 From: Tyler Trahan Date: Thu, 4 Jan 2024 06:39:18 -0500 Subject: [PATCH] Change: Move tree-related settings to a new Environment->Trees page --- src/lang/english.txt | 1 + src/settings_gui.cpp | 7 +++++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/lang/english.txt b/src/lang/english.txt index 8e82e582ec..5ef207455b 100644 --- a/src/lang/english.txt +++ b/src/lang/english.txt @@ -2062,6 +2062,7 @@ STR_CONFIG_SETTING_ENVIRONMENT_AUTHORITIES :Authorities STR_CONFIG_SETTING_ENVIRONMENT_TOWNS :Towns STR_CONFIG_SETTING_ENVIRONMENT_INDUSTRIES :Industries STR_CONFIG_SETTING_ENVIRONMENT_CARGODIST :Cargo distribution +STR_CONFIG_SETTING_ENVIRONMENT_TREES :Trees STR_CONFIG_SETTING_AI :Competitors STR_CONFIG_SETTING_AI_NPC :Computer players STR_CONFIG_SETTING_NETWORK :Network diff --git a/src/settings_gui.cpp b/src/settings_gui.cpp index caa260fc5a..9e7a0d88cc 100644 --- a/src/settings_gui.cpp +++ b/src/settings_gui.cpp @@ -1941,7 +1941,6 @@ static SettingsContainer &GetSettingsTree() genworld->Add(new SettingEntry("game_creation.snow_line_height")); genworld->Add(new SettingEntry("game_creation.desert_coverage")); genworld->Add(new SettingEntry("game_creation.amount_of_rivers")); - genworld->Add(new SettingEntry("game_creation.tree_placer")); genworld->Add(new SettingEntry("vehicle.road_side")); genworld->Add(new SettingEntry("economy.larger_towns")); genworld->Add(new SettingEntry("economy.initial_city_size")); @@ -2000,8 +1999,12 @@ static SettingsContainer &GetSettingsTree() cdist->Add(new SettingEntry("linkgraph.short_path_saturation")); } + SettingsPage *trees = environment->Add(new SettingsPage(STR_CONFIG_SETTING_ENVIRONMENT_TREES)); + { + trees->Add(new SettingEntry("game_creation.tree_placer")); + trees->Add(new SettingEntry("construction.extra_tree_placement")); + } environment->Add(new SettingEntry("station.modified_catchment")); - environment->Add(new SettingEntry("construction.extra_tree_placement")); } SettingsPage *ai = main->Add(new SettingsPage(STR_CONFIG_SETTING_AI));