2011-03-06 09:54:20 +00:00
; $Id$
;
; This file is part of OpenTTD.
; 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.
; 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.
; 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/>.
;
2011-03-03 21:04:17 +00:00
[pre-amble]
2011-03-06 10:35:40 +00:00
static bool CheckInterval(int32 p1);
static bool InvalidateDetailsWindow(int32 p1);
2011-03-03 21:04:17 +00:00
static const SettingDesc _company_settings[] = {
[post-amble]
};
[templates]
2012-11-08 10:04:00 +00:00
SDT_BOOL = SDT_BOOL($base, $var, $flags, $guiflags, $def, $str, $strhelp, $strval, $proc, $from, $to, $cat),
SDT_VAR = SDT_VAR($base, $var, $type, $flags, $guiflags, $def, $min, $max, $interval, $str, $strhelp, $strval, $proc, $from, $to, $cat),
2011-03-03 21:04:17 +00:00
SDT_END = SDT_END()
2011-03-05 10:12:03 +00:00
[defaults]
flags = 0
2011-03-05 11:34:31 +00:00
guiflags = SGF_PER_COMPANY
2011-03-05 10:12:03 +00:00
interval = 0
str = STR_NULL
2012-05-12 10:09:00 +00:00
strhelp = STR_CONFIG_SETTING_NO_EXPLANATION_AVAILABLE_HELPTEXT
2011-03-06 15:51:44 +00:00
strval = STR_NULL
2011-03-05 10:12:03 +00:00
proc = NULL
load = NULL
2011-03-05 10:20:49 +00:00
from = 0
to = SL_MAX_VERSION
2012-11-08 10:04:00 +00:00
cat = SC_ADVANCED
2011-03-05 10:12:03 +00:00
2011-03-03 21:04:17 +00:00
[SDT_BOOL]
base = CompanySettings
var = engine_renew
def = false
str = STR_CONFIG_SETTING_AUTORENEW_VEHICLE
2012-05-12 10:09:56 +00:00
strhelp = STR_CONFIG_SETTING_AUTORENEW_VEHICLE_HELPTEXT
2011-03-03 21:04:17 +00:00
[SDT_VAR]
base = CompanySettings
var = engine_renew_months
type = SLE_INT16
2012-05-06 15:03:45 +00:00
guiflags = SGF_PER_COMPANY | SGF_DISPLAY_ABS
2011-03-03 21:04:17 +00:00
def = 6
min = -12
max = 12
str = STR_CONFIG_SETTING_AUTORENEW_MONTHS
2012-05-12 10:09:56 +00:00
strhelp = STR_CONFIG_SETTING_AUTORENEW_MONTHS_HELPTEXT
2012-05-06 15:03:45 +00:00
strval = STR_CONFIG_SETTING_AUTORENEW_MONTHS_VALUE_BEFORE
2011-03-03 21:04:17 +00:00
[SDT_VAR]
base = CompanySettings
var = engine_renew_money
type = SLE_UINT
2011-03-05 11:34:31 +00:00
guiflags = SGF_PER_COMPANY | SGF_CURRENCY
2011-03-03 21:04:17 +00:00
def = 100000
min = 0
max = 2000000
str = STR_CONFIG_SETTING_AUTORENEW_MONEY
2012-05-12 10:09:56 +00:00
strhelp = STR_CONFIG_SETTING_AUTORENEW_MONEY_HELPTEXT
2012-05-06 14:56:13 +00:00
strval = STR_JUST_CURRENCY_LONG
2011-03-03 21:04:17 +00:00
[SDT_BOOL]
base = CompanySettings
var = renew_keep_length
def = false
[SDT_BOOL]
base = CompanySettings
var = vehicle.servint_ispercent
def = false
str = STR_CONFIG_SETTING_SERVINT_ISPERCENT
2012-05-12 10:09:56 +00:00
strhelp = STR_CONFIG_SETTING_SERVINT_ISPERCENT_HELPTEXT
2011-03-03 21:04:17 +00:00
proc = CheckInterval
[SDT_VAR]
base = CompanySettings
var = vehicle.servint_trains
type = SLE_UINT16
2011-03-05 11:34:31 +00:00
guiflags = SGF_PER_COMPANY | SGF_0ISDISABLED
2011-03-03 21:04:17 +00:00
def = 150
min = 5
max = 800
str = STR_CONFIG_SETTING_SERVINT_TRAINS
2012-05-12 10:09:56 +00:00
strhelp = STR_CONFIG_SETTING_SERVINT_TRAINS_HELPTEXT
2012-05-06 14:56:13 +00:00
strval = STR_CONFIG_SETTING_SERVINT_VALUE
2011-03-03 21:04:17 +00:00
proc = InvalidateDetailsWindow
[SDT_VAR]
base = CompanySettings
var = vehicle.servint_roadveh
type = SLE_UINT16
2011-03-05 11:34:31 +00:00
guiflags = SGF_PER_COMPANY | SGF_0ISDISABLED
2011-03-03 21:04:17 +00:00
def = 150
min = 5
max = 800
str = STR_CONFIG_SETTING_SERVINT_ROAD_VEHICLES
2012-05-12 10:09:56 +00:00
strhelp = STR_CONFIG_SETTING_SERVINT_ROAD_VEHICLES_HELPTEXT
2012-05-06 14:56:13 +00:00
strval = STR_CONFIG_SETTING_SERVINT_VALUE
2011-03-03 21:04:17 +00:00
proc = InvalidateDetailsWindow
[SDT_VAR]
base = CompanySettings
var = vehicle.servint_ships
type = SLE_UINT16
2011-03-05 11:34:31 +00:00
guiflags = SGF_PER_COMPANY | SGF_0ISDISABLED
2011-03-03 21:04:17 +00:00
def = 360
min = 5
max = 800
str = STR_CONFIG_SETTING_SERVINT_SHIPS
2012-05-12 10:09:56 +00:00
strhelp = STR_CONFIG_SETTING_SERVINT_SHIPS_HELPTEXT
2012-05-06 14:56:13 +00:00
strval = STR_CONFIG_SETTING_SERVINT_VALUE
2011-03-03 21:04:17 +00:00
proc = InvalidateDetailsWindow
[SDT_VAR]
base = CompanySettings
var = vehicle.servint_aircraft
type = SLE_UINT16
2011-03-05 11:34:31 +00:00
guiflags = SGF_PER_COMPANY | SGF_0ISDISABLED
2011-03-03 21:04:17 +00:00
def = 100
min = 5
max = 800
str = STR_CONFIG_SETTING_SERVINT_AIRCRAFT
2012-05-12 10:09:56 +00:00
strhelp = STR_CONFIG_SETTING_SERVINT_AIRCRAFT_HELPTEXT
2012-05-06 14:56:13 +00:00
strval = STR_CONFIG_SETTING_SERVINT_VALUE
2011-03-03 21:04:17 +00:00
proc = InvalidateDetailsWindow
[SDT_END]
};