Add: INR currency (#8136)
[openttd-github.git] / src / table / company_settings.ini
blob86035b9d7730f35e13a3033ad7b45999b583e1f2
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 [pre-amble]
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[] = {
16 [post-amble]
18 [templates]
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),
21 SDT_END = SDT_END()
23 [defaults]
24 flags = 0
25 guiflags = SGF_PER_COMPANY
26 interval = 0
27 str = STR_NULL
28 strhelp = STR_CONFIG_SETTING_NO_EXPLANATION_AVAILABLE_HELPTEXT
29 strval = STR_NULL
30 proc = nullptr
31 load = nullptr
32 from = SL_MIN_VERSION
33 to = SL_MAX_VERSION
34 cat = SC_ADVANCED
38 [SDT_BOOL]
39 base = CompanySettings
40 var = engine_renew
41 def = false
42 str = STR_CONFIG_SETTING_AUTORENEW_VEHICLE
43 strhelp = STR_CONFIG_SETTING_AUTORENEW_VEHICLE_HELPTEXT
44 cat = SC_BASIC
46 [SDT_VAR]
47 base = CompanySettings
48 var = engine_renew_months
49 type = SLE_INT16
50 guiflags = SGF_PER_COMPANY | SGF_DISPLAY_ABS
51 def = 6
52 min = -12
53 max = 12
54 str = STR_CONFIG_SETTING_AUTORENEW_MONTHS
55 strhelp = STR_CONFIG_SETTING_AUTORENEW_MONTHS_HELPTEXT
56 strval = STR_CONFIG_SETTING_AUTORENEW_MONTHS_VALUE_BEFORE
58 [SDT_VAR]
59 base = CompanySettings
60 var = engine_renew_money
61 type = SLE_UINT
62 guiflags = SGF_PER_COMPANY | SGF_CURRENCY
63 def = 100000
64 min = 0
65 max = 2000000
66 str = STR_CONFIG_SETTING_AUTORENEW_MONEY
67 strhelp = STR_CONFIG_SETTING_AUTORENEW_MONEY_HELPTEXT
68 strval = STR_JUST_CURRENCY_LONG
70 [SDT_BOOL]
71 base = CompanySettings
72 var = renew_keep_length
73 def = false
75 [SDT_BOOL]
76 base = CompanySettings
77 var = vehicle.servint_ispercent
78 def = false
79 str = STR_CONFIG_SETTING_SERVINT_ISPERCENT
80 strhelp = STR_CONFIG_SETTING_SERVINT_ISPERCENT_HELPTEXT
81 proc = CheckInterval
83 [SDT_VAR]
84 base = CompanySettings
85 var = vehicle.servint_trains
86 type = SLE_UINT16
87 guiflags = SGF_PER_COMPANY | SGF_0ISDISABLED
88 def = 150
89 min = 5
90 max = 800
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
96 [SDT_VAR]
97 base = CompanySettings
98 var = vehicle.servint_roadveh
99 type = SLE_UINT16
100 guiflags = SGF_PER_COMPANY | SGF_0ISDISABLED
101 def = 150
102 min = 5
103 max = 800
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
109 [SDT_VAR]
110 base = CompanySettings
111 var = vehicle.servint_ships
112 type = SLE_UINT16
113 guiflags = SGF_PER_COMPANY | SGF_0ISDISABLED
114 def = 360
115 min = 5
116 max = 800
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
122 [SDT_VAR]
123 base = CompanySettings
124 var = vehicle.servint_aircraft
125 type = SLE_UINT16
126 guiflags = SGF_PER_COMPANY | SGF_0ISDISABLED
127 def = 100
128 min = 5
129 max = 800
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
135 [SDT_END]