Change: Remove scrollbar from town authority actions panel (#9928)
[openttd-github.git] / src / table / settings / economy_settings.ini
blobad2a74319dac22aecd13f47224e26d4b914121bb
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.
10 [pre-amble]
11 static void TownFoundingChanged(int32 new_value);
13 static const SettingVariant _economy_settings_table[] = {
14 [post-amble]
16 [templates]
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),
20 [validation]
21 SDT_VAR = static_assert($max <= MAX_$type, "Maximum value for GameSettings.$var exceeds storage size");
23 [defaults]
24 flags = SF_NONE
25 interval = 0
26 str = STR_NULL
27 strhelp = STR_CONFIG_SETTING_NO_EXPLANATION_AVAILABLE_HELPTEXT
28 strval = STR_NULL
29 pre_cb = nullptr
30 post_cb = nullptr
31 load = nullptr
32 from = SL_MIN_VERSION
33 to = SL_MAX_VERSION
34 cat = SC_ADVANCED
35 extra = 0
36 startup = false
39 [SDT_VAR]
40 var = economy.town_layout
41 type = SLE_UINT8
42 from = SLV_59
43 flags = SF_GUI_DROPDOWN
44 def = TL_ORIGINAL
45 min = TL_BEGIN
46 max = NUM_TLS - 1
47 interval = 1
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
53 [SDT_BOOL]
54 var = economy.allow_town_roads
55 from = SLV_113
56 flags = SF_NO_NETWORK
57 def = true
58 str = STR_CONFIG_SETTING_ALLOW_TOWN_ROADS
59 strhelp = STR_CONFIG_SETTING_ALLOW_TOWN_ROADS_HELPTEXT
61 [SDT_VAR]
62 var = economy.found_town
63 type = SLE_UINT8
64 from = SLV_128
65 flags = SF_GUI_DROPDOWN
66 def = TF_FORBIDDEN
67 min = TF_BEGIN
68 max = TF_END - 1
69 interval = 1
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
74 cat = SC_BASIC
76 [SDT_BOOL]
77 var = economy.allow_town_level_crossings
78 from = SLV_143
79 flags = SF_NO_NETWORK
80 def = true
81 str = STR_CONFIG_SETTING_ALLOW_TOWN_LEVEL_CROSSINGS
82 strhelp = STR_CONFIG_SETTING_ALLOW_TOWN_LEVEL_CROSSINGS_HELPTEXT
84 [SDT_VAR]
85 var = economy.town_cargogen_mode
86 type = SLE_UINT8
87 from = SLV_TOWN_CARGOGEN
88 flags = SF_GUI_DROPDOWN
89 def = TCGM_BITCOUNT
90 min = TCGM_BEGIN
91 max = TCGM_END - 1
92 interval = 1
93 str = STR_CONFIG_SETTING_TOWN_CARGOGENMODE
94 strhelp = STR_CONFIG_SETTING_TOWN_CARGOGENMODE_HELPTEXT
95 strval = STR_CONFIG_SETTING_TOWN_CARGOGENMODE_ORIGINAL
96 cat = SC_ADVANCED
98 [SDT_BOOL]
99 var = economy.station_noise_level
100 from = SLV_96
101 flags = SF_NO_NETWORK
102 def = false
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); }
107 [SDT_BOOL]
108 var = economy.inflation
109 flags = SF_NO_NETWORK
110 def = false
111 str = STR_CONFIG_SETTING_INFLATION
112 strhelp = STR_CONFIG_SETTING_INFLATION_HELPTEXT
113 cat = SC_BASIC
115 [SDT_BOOL]
116 var = economy.multiple_industry_per_town
117 def = false
118 str = STR_CONFIG_SETTING_MULTIPINDTOWN
119 strhelp = STR_CONFIG_SETTING_MULTIPINDTOWN_HELPTEXT
121 [SDT_BOOL]
122 var = economy.bribe
123 def = true
124 str = STR_CONFIG_SETTING_BRIBE
125 strhelp = STR_CONFIG_SETTING_BRIBE_HELPTEXT
126 post_cb = [](auto) { InvalidateWindowClassesData(WC_TOWN_AUTHORITY); }
127 cat = SC_BASIC
129 [SDT_BOOL]
130 var = economy.exclusive_rights
131 from = SLV_79
132 def = true
133 str = STR_CONFIG_SETTING_ALLOW_EXCLUSIVE
134 strhelp = STR_CONFIG_SETTING_ALLOW_EXCLUSIVE_HELPTEXT
135 post_cb = [](auto) { InvalidateWindowClassesData(WC_TOWN_AUTHORITY); }
136 cat = SC_BASIC
138 [SDT_BOOL]
139 var = economy.fund_buildings
140 from = SLV_165
141 def = true
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); }
145 cat = SC_BASIC
147 [SDT_BOOL]
148 var = economy.fund_roads
149 from = SLV_160
150 def = true
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); }
154 cat = SC_BASIC
156 [SDT_BOOL]
157 var = economy.give_money
158 from = SLV_79
159 def = true
160 str = STR_CONFIG_SETTING_ALLOW_GIVE_MONEY
161 strhelp = STR_CONFIG_SETTING_ALLOW_GIVE_MONEY_HELPTEXT
162 cat = SC_BASIC
164 [SDT_VAR]
165 var = economy.type
166 type = SLE_UINT8
167 flags = SF_GUI_DROPDOWN
168 def = ET_SMOOTH
169 min = ET_BEGIN
170 max = ET_END - 1
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); }
175 cat = SC_BASIC
177 [SDT_BOOL]
178 var = economy.allow_shares
179 def = false
180 str = STR_CONFIG_SETTING_ALLOW_SHARES
181 strhelp = STR_CONFIG_SETTING_ALLOW_SHARES_HELPTEXT
182 post_cb = [](auto) { InvalidateWindowClassesData(WC_COMPANY); }
184 [SDT_VAR]
185 var = economy.min_years_for_shares
186 type = SLE_UINT8
187 from = SLV_TRADING_AGE
188 def = 6
189 min = 0
190 max = 255
191 interval = 1
192 str = STR_CONFIG_SETTING_MIN_YEARS_FOR_SHARES
193 strhelp = STR_CONFIG_SETTING_MIN_YEARS_FOR_SHARES_HELPTEXT
194 strval = STR_JUST_INT
195 cat = SC_EXPERT
197 [SDT_VAR]
198 var = economy.feeder_payment_share
199 type = SLE_UINT8
200 from = SLV_134
201 def = 75
202 min = 0
203 max = 100
204 str = STR_CONFIG_SETTING_FEEDER_PAYMENT_SHARE
205 strhelp = STR_CONFIG_SETTING_FEEDER_PAYMENT_SHARE_HELPTEXT
206 strval = STR_CONFIG_SETTING_PERCENTAGE
207 cat = SC_EXPERT
209 [SDT_VAR]
210 var = economy.town_growth_rate
211 type = SLE_UINT8
212 from = SLV_54
213 flags = SF_GUI_DROPDOWN
214 def = 2
215 min = 0
216 max = 4
217 str = STR_CONFIG_SETTING_TOWN_GROWTH
218 strhelp = STR_CONFIG_SETTING_TOWN_GROWTH_HELPTEXT
219 strval = STR_CONFIG_SETTING_TOWN_GROWTH_NONE
221 [SDT_VAR]
222 var = economy.larger_towns
223 type = SLE_UINT8
224 from = SLV_54
225 flags = SF_GUI_0_IS_SPECIAL
226 def = 4
227 min = 0
228 max = 255
229 interval = 1
230 str = STR_CONFIG_SETTING_LARGER_TOWNS
231 strhelp = STR_CONFIG_SETTING_LARGER_TOWNS_HELPTEXT
232 strval = STR_CONFIG_SETTING_LARGER_TOWNS_VALUE
234 [SDT_VAR]
235 var = economy.initial_city_size
236 type = SLE_UINT8
237 from = SLV_56
238 def = 2
239 min = 1
240 max = 10
241 interval = 1
242 str = STR_CONFIG_SETTING_CITY_SIZE_MULTIPLIER
243 strhelp = STR_CONFIG_SETTING_CITY_SIZE_MULTIPLIER_HELPTEXT
244 strval = STR_JUST_COMMA
246 [SDT_BOOL]
247 var = economy.mod_road_rebuild
248 from = SLV_77
249 def = true
250 cat = SC_EXPERT
252 [SDT_VAR]
253 var = economy.dist_local_authority
254 type = SLE_UINT8
255 def = 20
256 min = 5
257 max = 60
258 cat = SC_EXPERT
260 [SDT_VAR]
261 var = economy.town_noise_population[0]
262 type = SLE_UINT16
263 from = SLV_96
264 def = 800
265 min = 200
266 max = 65535
267 cat = SC_EXPERT
269 [SDT_VAR]
270 var = economy.town_noise_population[1]
271 type = SLE_UINT16
272 from = SLV_96
273 def = 2000
274 min = 400
275 max = 65535
276 cat = SC_EXPERT
278 [SDT_VAR]
279 var = economy.town_noise_population[2]
280 type = SLE_UINT16
281 from = SLV_96
282 def = 4000
283 min = 800
284 max = 65535
285 cat = SC_EXPERT
287 [SDT_VAR]
288 var = economy.town_noise_population[3]
289 type = SLE_UINT16
290 def = 400
291 min = 100
292 max = 65535
293 cat = SC_EXPERT
295 [SDT_BOOL]
296 var = economy.infrastructure_maintenance
297 from = SLV_166
298 def = false
299 str = STR_CONFIG_SETTING_INFRASTRUCTURE_MAINTENANCE
300 strhelp = STR_CONFIG_SETTING_INFRASTRUCTURE_MAINTENANCE_HELPTEXT
301 post_cb = [](auto) { InvalidateWindowClassesData(WC_COMPANY_INFRASTRUCTURE); }
302 cat = SC_BASIC