(svn r27950) -Merge: Documentation updates from 1.7 branch
[openttd.git] / src / table / company_settings.ini
blob71b95cc393ec406dca564a8a48b2fec2041f6927
1 ; $Id$
3 ; This file is part of OpenTTD.
4 ; 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.
5 ; 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.
6 ; 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/>.
9 [pre-amble]
10 static bool CheckInterval(int32 p1);
11 static bool InvalidateDetailsWindow(int32 p1);
12 static bool UpdateIntervalTrains(int32 p1);
13 static bool UpdateIntervalRoadVeh(int32 p1);
14 static bool UpdateIntervalShips(int32 p1);
15 static bool UpdateIntervalAircraft(int32 p1);
17 static const SettingDesc _company_settings[] = {
18 [post-amble]
20 [templates]
21 SDT_BOOL = SDT_BOOL($base, $var, $flags, $guiflags, $def, $str, $strhelp, $strval, $proc, $from, $to, $cat),
22 SDT_VAR = SDT_VAR($base, $var, $type, $flags, $guiflags, $def, $min, $max, $interval, $str, $strhelp, $strval, $proc, $from, $to, $cat),
23 SDT_END = SDT_END()
25 [defaults]
26 flags = 0
27 guiflags = SGF_PER_COMPANY
28 interval = 0
29 str = STR_NULL
30 strhelp = STR_CONFIG_SETTING_NO_EXPLANATION_AVAILABLE_HELPTEXT
31 strval = STR_NULL
32 proc = NULL
33 load = NULL
34 from = 0
35 to = SL_MAX_VERSION
36 cat = SC_ADVANCED
40 [SDT_BOOL]
41 base = CompanySettings
42 var = engine_renew
43 def = false
44 str = STR_CONFIG_SETTING_AUTORENEW_VEHICLE
45 strhelp = STR_CONFIG_SETTING_AUTORENEW_VEHICLE_HELPTEXT
47 [SDT_VAR]
48 base = CompanySettings
49 var = engine_renew_months
50 type = SLE_INT16
51 guiflags = SGF_PER_COMPANY | SGF_DISPLAY_ABS
52 def = 6
53 min = -12
54 max = 12
55 str = STR_CONFIG_SETTING_AUTORENEW_MONTHS
56 strhelp = STR_CONFIG_SETTING_AUTORENEW_MONTHS_HELPTEXT
57 strval = STR_CONFIG_SETTING_AUTORENEW_MONTHS_VALUE_BEFORE
59 [SDT_VAR]
60 base = CompanySettings
61 var = engine_renew_money
62 type = SLE_UINT
63 guiflags = SGF_PER_COMPANY | SGF_CURRENCY
64 def = 100000
65 min = 0
66 max = 2000000
67 str = STR_CONFIG_SETTING_AUTORENEW_MONEY
68 strhelp = STR_CONFIG_SETTING_AUTORENEW_MONEY_HELPTEXT
69 strval = STR_JUST_CURRENCY_LONG
71 [SDT_BOOL]
72 base = CompanySettings
73 var = renew_keep_length
74 def = false
76 [SDT_BOOL]
77 base = CompanySettings
78 var = vehicle.servint_ispercent
79 def = false
80 str = STR_CONFIG_SETTING_SERVINT_ISPERCENT
81 strhelp = STR_CONFIG_SETTING_SERVINT_ISPERCENT_HELPTEXT
82 proc = CheckInterval
84 [SDT_VAR]
85 base = CompanySettings
86 var = vehicle.servint_trains
87 type = SLE_UINT16
88 guiflags = SGF_PER_COMPANY | SGF_0ISDISABLED
89 def = 150
90 min = 5
91 max = 800
92 str = STR_CONFIG_SETTING_SERVINT_TRAINS
93 strhelp = STR_CONFIG_SETTING_SERVINT_TRAINS_HELPTEXT
94 strval = STR_CONFIG_SETTING_SERVINT_VALUE
95 proc = UpdateIntervalTrains
97 [SDT_VAR]
98 base = CompanySettings
99 var = vehicle.servint_roadveh
100 type = SLE_UINT16
101 guiflags = SGF_PER_COMPANY | SGF_0ISDISABLED
102 def = 150
103 min = 5
104 max = 800
105 str = STR_CONFIG_SETTING_SERVINT_ROAD_VEHICLES
106 strhelp = STR_CONFIG_SETTING_SERVINT_ROAD_VEHICLES_HELPTEXT
107 strval = STR_CONFIG_SETTING_SERVINT_VALUE
108 proc = UpdateIntervalRoadVeh
110 [SDT_VAR]
111 base = CompanySettings
112 var = vehicle.servint_ships
113 type = SLE_UINT16
114 guiflags = SGF_PER_COMPANY | SGF_0ISDISABLED
115 def = 360
116 min = 5
117 max = 800
118 str = STR_CONFIG_SETTING_SERVINT_SHIPS
119 strhelp = STR_CONFIG_SETTING_SERVINT_SHIPS_HELPTEXT
120 strval = STR_CONFIG_SETTING_SERVINT_VALUE
121 proc = UpdateIntervalShips
123 [SDT_VAR]
124 base = CompanySettings
125 var = vehicle.servint_aircraft
126 type = SLE_UINT16
127 guiflags = SGF_PER_COMPANY | SGF_0ISDISABLED
128 def = 100
129 min = 5
130 max = 800
131 str = STR_CONFIG_SETTING_SERVINT_AIRCRAFT
132 strhelp = STR_CONFIG_SETTING_SERVINT_AIRCRAFT_HELPTEXT
133 strval = STR_CONFIG_SETTING_SERVINT_VALUE
134 proc = UpdateIntervalAircraft
136 [SDT_END]