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/>.
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[] = {
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),
27 guiflags = SGF_PER_COMPANY
30 strhelp = STR_CONFIG_SETTING_NO_EXPLANATION_AVAILABLE_HELPTEXT
41 base = CompanySettings
44 str = STR_CONFIG_SETTING_AUTORENEW_VEHICLE
45 strhelp = STR_CONFIG_SETTING_AUTORENEW_VEHICLE_HELPTEXT
48 base = CompanySettings
49 var = engine_renew_months
51 guiflags = SGF_PER_COMPANY | SGF_DISPLAY_ABS
55 str = STR_CONFIG_SETTING_AUTORENEW_MONTHS
56 strhelp = STR_CONFIG_SETTING_AUTORENEW_MONTHS_HELPTEXT
57 strval = STR_CONFIG_SETTING_AUTORENEW_MONTHS_VALUE_BEFORE
60 base = CompanySettings
61 var = engine_renew_money
63 guiflags = SGF_PER_COMPANY | SGF_CURRENCY
67 str = STR_CONFIG_SETTING_AUTORENEW_MONEY
68 strhelp = STR_CONFIG_SETTING_AUTORENEW_MONEY_HELPTEXT
69 strval = STR_JUST_CURRENCY_LONG
72 base = CompanySettings
73 var = renew_keep_length
77 base = CompanySettings
78 var = vehicle.servint_ispercent
80 str = STR_CONFIG_SETTING_SERVINT_ISPERCENT
81 strhelp = STR_CONFIG_SETTING_SERVINT_ISPERCENT_HELPTEXT
85 base = CompanySettings
86 var = vehicle.servint_trains
88 guiflags = SGF_PER_COMPANY | SGF_0ISDISABLED
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
98 base = CompanySettings
99 var = vehicle.servint_roadveh
101 guiflags = SGF_PER_COMPANY | SGF_0ISDISABLED
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
111 base = CompanySettings
112 var = vehicle.servint_ships
114 guiflags = SGF_PER_COMPANY | SGF_0ISDISABLED
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
124 base = CompanySettings
125 var = vehicle.servint_aircraft
127 guiflags = SGF_PER_COMPANY | SGF_0ISDISABLED
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