1 ; This file is part of OpenTTD.
2 ; OpenTTD is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2.
3 ; OpenTTD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
4 ; See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with OpenTTD. If not, see <http://www.gnu.org/licenses/>.
7 ; Economy settings as stored in the main configuration file ("openttd.cfg")
8 ; and in the savegame PATS chunk.
11 static void TownFoundingChanged
(int32 new_value
);
13 static const SettingVariant _economy_settings_table[] = {
17 SDT_BOOL = SDT_BOOL(GameSettings, $var, $flags, $def, $str, $strhelp, $strval, $pre_cb, $post_cb, $from, $to, $cat, $extra, $startup),
18 SDT_VAR = SDT_VAR(GameSettings, $var, $type, $flags, $def, $min, $max, $interval, $str, $strhelp, $strval, $pre_cb, $post_cb, $from, $to, $cat, $extra, $startup),
21 SDT_VAR = static_assert($max <= MAX_$type, "Maximum value for GameSettings.$var exceeds storage size");
27 strhelp = STR_CONFIG_SETTING_NO_EXPLANATION_AVAILABLE_HELPTEXT
40 var = economy.town_layout
43 flags = SF_GUI_DROPDOWN
48 str = STR_CONFIG_SETTING_TOWN_LAYOUT
49 strhelp = STR_CONFIG_SETTING_TOWN_LAYOUT_HELPTEXT
50 strval = STR_CONFIG_SETTING_TOWN_LAYOUT_DEFAULT
51 post_cb = TownFoundingChanged
54 var = economy.allow_town_roads
58 str = STR_CONFIG_SETTING_ALLOW_TOWN_ROADS
59 strhelp = STR_CONFIG_SETTING_ALLOW_TOWN_ROADS_HELPTEXT
62 var = economy.found_town
65 flags = SF_GUI_DROPDOWN
70 str = STR_CONFIG_SETTING_TOWN_FOUNDING
71 strhelp = STR_CONFIG_SETTING_TOWN_FOUNDING_HELPTEXT
72 strval = STR_CONFIG_SETTING_TOWN_FOUNDING_FORBIDDEN
73 post_cb = TownFoundingChanged
77 var = economy.allow_town_level_crossings
81 str = STR_CONFIG_SETTING_ALLOW_TOWN_LEVEL_CROSSINGS
82 strhelp = STR_CONFIG_SETTING_ALLOW_TOWN_LEVEL_CROSSINGS_HELPTEXT
85 var = economy.town_cargogen_mode
87 from = SLV_TOWN_CARGOGEN
88 flags = SF_GUI_DROPDOWN
93 str = STR_CONFIG_SETTING_TOWN_CARGOGENMODE
94 strhelp = STR_CONFIG_SETTING_TOWN_CARGOGENMODE_HELPTEXT
95 strval = STR_CONFIG_SETTING_TOWN_CARGOGENMODE_ORIGINAL
99 var = economy.station_noise_level
101 flags = SF_NO_NETWORK
103 str = STR_CONFIG_SETTING_NOISE_LEVEL
104 strhelp = STR_CONFIG_SETTING_NOISE_LEVEL_HELPTEXT
105 post_cb = [](auto new_value) { InvalidateWindowClassesData(WC_TOWN_VIEW, new_value); }
108 var = economy.inflation
109 flags = SF_NO_NETWORK
111 str = STR_CONFIG_SETTING_INFLATION
112 strhelp = STR_CONFIG_SETTING_INFLATION_HELPTEXT
116 var = economy.multiple_industry_per_town
118 str = STR_CONFIG_SETTING_MULTIPINDTOWN
119 strhelp = STR_CONFIG_SETTING_MULTIPINDTOWN_HELPTEXT
124 str = STR_CONFIG_SETTING_BRIBE
125 strhelp = STR_CONFIG_SETTING_BRIBE_HELPTEXT
126 post_cb = [](auto) { InvalidateWindowClassesData(WC_TOWN_AUTHORITY); }
130 var = economy.exclusive_rights
133 str = STR_CONFIG_SETTING_ALLOW_EXCLUSIVE
134 strhelp = STR_CONFIG_SETTING_ALLOW_EXCLUSIVE_HELPTEXT
135 post_cb = [](auto) { InvalidateWindowClassesData(WC_TOWN_AUTHORITY); }
139 var = economy.fund_buildings
142 str = STR_CONFIG_SETTING_ALLOW_FUND_BUILDINGS
143 strhelp = STR_CONFIG_SETTING_ALLOW_FUND_BUILDINGS_HELPTEXT
144 post_cb = [](auto) { InvalidateWindowClassesData(WC_TOWN_AUTHORITY); }
148 var = economy.fund_roads
151 str = STR_CONFIG_SETTING_ALLOW_FUND_ROAD
152 strhelp = STR_CONFIG_SETTING_ALLOW_FUND_ROAD_HELPTEXT
153 post_cb = [](auto) { InvalidateWindowClassesData(WC_TOWN_AUTHORITY); }
157 var = economy.give_money
160 str = STR_CONFIG_SETTING_ALLOW_GIVE_MONEY
161 strhelp = STR_CONFIG_SETTING_ALLOW_GIVE_MONEY_HELPTEXT
167 flags = SF_GUI_DROPDOWN
171 str = STR_CONFIG_SETTING_ECONOMY_TYPE
172 strhelp = STR_CONFIG_SETTING_ECONOMY_TYPE_HELPTEXT
173 strval = STR_CONFIG_SETTING_ECONOMY_TYPE_ORIGINAL
174 post_cb = [](auto) { InvalidateWindowClassesData(WC_INDUSTRY_VIEW); }
178 var = economy.allow_shares
180 str = STR_CONFIG_SETTING_ALLOW_SHARES
181 strhelp = STR_CONFIG_SETTING_ALLOW_SHARES_HELPTEXT
182 post_cb = [](auto) { InvalidateWindowClassesData(WC_COMPANY); }
185 var = economy.min_years_for_shares
187 from = SLV_TRADING_AGE
192 str = STR_CONFIG_SETTING_MIN_YEARS_FOR_SHARES
193 strhelp = STR_CONFIG_SETTING_MIN_YEARS_FOR_SHARES_HELPTEXT
194 strval = STR_JUST_INT
198 var = economy.feeder_payment_share
204 str = STR_CONFIG_SETTING_FEEDER_PAYMENT_SHARE
205 strhelp = STR_CONFIG_SETTING_FEEDER_PAYMENT_SHARE_HELPTEXT
206 strval = STR_CONFIG_SETTING_PERCENTAGE
210 var = economy.town_growth_rate
213 flags = SF_GUI_DROPDOWN
217 str = STR_CONFIG_SETTING_TOWN_GROWTH
218 strhelp = STR_CONFIG_SETTING_TOWN_GROWTH_HELPTEXT
219 strval = STR_CONFIG_SETTING_TOWN_GROWTH_NONE
222 var = economy.larger_towns
225 flags = SF_GUI_0_IS_SPECIAL
230 str = STR_CONFIG_SETTING_LARGER_TOWNS
231 strhelp = STR_CONFIG_SETTING_LARGER_TOWNS_HELPTEXT
232 strval = STR_CONFIG_SETTING_LARGER_TOWNS_VALUE
235 var = economy.initial_city_size
242 str = STR_CONFIG_SETTING_CITY_SIZE_MULTIPLIER
243 strhelp = STR_CONFIG_SETTING_CITY_SIZE_MULTIPLIER_HELPTEXT
244 strval = STR_JUST_COMMA
247 var = economy.mod_road_rebuild
253 var = economy.dist_local_authority
261 var = economy.town_noise_population[0]
270 var = economy.town_noise_population[1]
279 var = economy.town_noise_population[2]
288 var = economy.town_noise_population[3]
296 var = economy.infrastructure_maintenance
299 str = STR_CONFIG_SETTING_INFRASTRUCTURE_MAINTENANCE
300 strhelp = STR_CONFIG_SETTING_INFRASTRUCTURE_MAINTENANCE_HELPTEXT
301 post_cb = [](auto) { InvalidateWindowClassesData(WC_COMPANY_INFRASTRUCTURE); }