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/>.
8 static bool CheckInterval
(int32 p1
);
9 static bool InvalidateDetailsWindow
(int32 p1
);
10 static bool UpdateIntervalTrains
(int32 p1
);
11 static bool UpdateIntervalRoadVeh
(int32 p1
);
12 static bool UpdateIntervalShips
(int32 p1
);
13 static bool UpdateIntervalAircraft
(int32 p1
);
15 static const SettingDesc _company_settings[] = {
19 SDT_BOOL = SDT_BOOL($base, $var, $flags, $guiflags, $def, $str, $strhelp, $strval, $proc, $from, $to, $cat),
20 SDT_VAR = SDT_VAR($base, $var, $type, $flags, $guiflags, $def, $min, $max, $interval, $str, $strhelp, $strval, $proc, $from, $to, $cat),
25 guiflags = SGF_PER_COMPANY
28 strhelp = STR_CONFIG_SETTING_NO_EXPLANATION_AVAILABLE_HELPTEXT
39 base = CompanySettings
42 str = STR_CONFIG_SETTING_AUTORENEW_VEHICLE
43 strhelp = STR_CONFIG_SETTING_AUTORENEW_VEHICLE_HELPTEXT
47 base = CompanySettings
48 var = engine_renew_months
50 guiflags = SGF_PER_COMPANY | SGF_DISPLAY_ABS
54 str = STR_CONFIG_SETTING_AUTORENEW_MONTHS
55 strhelp = STR_CONFIG_SETTING_AUTORENEW_MONTHS_HELPTEXT
56 strval = STR_CONFIG_SETTING_AUTORENEW_MONTHS_VALUE_BEFORE
59 base = CompanySettings
60 var = engine_renew_money
62 guiflags = SGF_PER_COMPANY | SGF_CURRENCY
66 str = STR_CONFIG_SETTING_AUTORENEW_MONEY
67 strhelp = STR_CONFIG_SETTING_AUTORENEW_MONEY_HELPTEXT
68 strval = STR_JUST_CURRENCY_LONG
71 base = CompanySettings
72 var = renew_keep_length
76 base = CompanySettings
77 var = vehicle.servint_ispercent
79 str = STR_CONFIG_SETTING_SERVINT_ISPERCENT
80 strhelp = STR_CONFIG_SETTING_SERVINT_ISPERCENT_HELPTEXT
84 base = CompanySettings
85 var = vehicle.servint_trains
87 guiflags = SGF_PER_COMPANY | SGF_0ISDISABLED
91 str = STR_CONFIG_SETTING_SERVINT_TRAINS
92 strhelp = STR_CONFIG_SETTING_SERVINT_TRAINS_HELPTEXT
93 strval = STR_CONFIG_SETTING_SERVINT_VALUE
94 proc = UpdateIntervalTrains
97 base = CompanySettings
98 var = vehicle.servint_roadveh
100 guiflags = SGF_PER_COMPANY | SGF_0ISDISABLED
104 str = STR_CONFIG_SETTING_SERVINT_ROAD_VEHICLES
105 strhelp = STR_CONFIG_SETTING_SERVINT_ROAD_VEHICLES_HELPTEXT
106 strval = STR_CONFIG_SETTING_SERVINT_VALUE
107 proc = UpdateIntervalRoadVeh
110 base = CompanySettings
111 var = vehicle.servint_ships
113 guiflags = SGF_PER_COMPANY | SGF_0ISDISABLED
117 str = STR_CONFIG_SETTING_SERVINT_SHIPS
118 strhelp = STR_CONFIG_SETTING_SERVINT_SHIPS_HELPTEXT
119 strval = STR_CONFIG_SETTING_SERVINT_VALUE
120 proc = UpdateIntervalShips
123 base = CompanySettings
124 var = vehicle.servint_aircraft
126 guiflags = SGF_PER_COMPANY | SGF_0ISDISABLED
130 str = STR_CONFIG_SETTING_SERVINT_AIRCRAFT
131 strhelp = STR_CONFIG_SETTING_SERVINT_AIRCRAFT_HELPTEXT
132 strval = STR_CONFIG_SETTING_SERVINT_VALUE
133 proc = UpdateIntervalAircraft