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]
extern char _config_language_file[MAX_PATH];
static const SettingDescGlobVarList _misc_settings[] = {
[post-amble]
};
[templates]
2011-03-06 15:51:44 +00:00
SDTG_LIST = SDTG_LIST($name, $type, $length, $flags, $guiflags, $var, $def, $str, $strval, $proc, $from, $to),
SDTG_MMANY = SDTG_MMANY($name, $type, $flags, $guiflags, $var, $def, $full, $str, $strval, $proc, $from, $to),
SDTG_STR = SDTG_STR($name, $type, $flags, $guiflags, $var, $def, $str, $strval, $proc, $from, $to),
SDTG_BOOL = SDTG_BOOL($name, $flags, $guiflags, $var, $def, $str, $strval, $proc, $from, $to),
SDTG_VAR = SDTG_VAR($name, $type, $flags, $guiflags, $var, $def, $min, $max, $interval, $str, $strval, $proc, $from, $to),
2011-03-05 10:47:49 +00:00
SDTG_END = SDTG_END()
2011-03-03 21:04:17 +00:00
2011-03-05 10:12:03 +00:00
[defaults]
2011-03-05 11:34:31 +00:00
flags = SLF_NOT_IN_SAVE | SLF_NO_NETWORK_SYNC
2011-03-05 10:12:03 +00:00
guiflags = 0
interval = 0
str = STR_NULL
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
2011-03-05 10:12:03 +00:00
2011-03-03 21:04:17 +00:00
[SDTG_MMANY]
name = ""display_opt""
type = SLE_UINT8
var = _display_opt
2011-08-01 18:41:21 +00:00
def = (1 << DO_SHOW_TOWN_NAMES | 1 << DO_SHOW_STATION_NAMES | 1 << DO_SHOW_SIGNS | 1 << DO_FULL_ANIMATION | 1 << DO_FULL_DETAIL | 1 << DO_SHOW_WAYPOINT_NAMES | 1 << DO_SHOW_COMPETITOR_SIGNS)
full = ""SHOW_TOWN_NAMES|SHOW_STATION_NAMES|SHOW_SIGNS|FULL_ANIMATION||FULL_DETAIL|WAYPOINTS|SHOW_COMPETITOR_SIGNS""
2011-03-03 21:04:17 +00:00
[SDTG_BOOL]
name = ""news_ticker_sound""
var = _news_ticker_sound
def = true
[SDTG_BOOL]
name = ""fullscreen""
var = _fullscreen
def = false
[SDTG_STR]
name = ""graphicsset""
type = SLE_STRQ
var = BaseGraphics::ini_set
def = NULL
[SDTG_STR]
name = ""soundsset""
type = SLE_STRQ
var = BaseSounds::ini_set
def = NULL
[SDTG_STR]
name = ""musicset""
type = SLE_STRQ
var = BaseMusic::ini_set
def = NULL
[SDTG_STR]
name = ""videodriver""
type = SLE_STRQ
var = _ini_videodriver
def = NULL
[SDTG_STR]
name = ""musicdriver""
type = SLE_STRQ
var = _ini_musicdriver
def = NULL
[SDTG_STR]
name = ""sounddriver""
type = SLE_STRQ
var = _ini_sounddriver
def = NULL
[SDTG_STR]
name = ""blitter""
type = SLE_STRQ
var = _ini_blitter
def = NULL
[SDTG_STR]
name = ""language""
type = SLE_STRB
var = _config_language_file
def = NULL
; workaround for implicit lengthof() in SDTG_LIST
2011-03-05 10:47:49 +00:00
[SDTG_LIST]
2011-03-03 21:04:17 +00:00
name = ""resolution""
type = SLE_INT
length = 2
var = _cur_resolution
def = ""640,480""
[SDTG_STR]
name = ""screenshot_format""
type = SLE_STRB
var = _screenshot_format_name
def = NULL
[SDTG_STR]
name = ""savegame_format""
type = SLE_STRB
var = _savegame_format
def = NULL
[SDTG_BOOL]
name = ""rightclick_emulate""
var = _rightclick_emulate
def = false
[SDTG_STR]
ifdef = WITH_FREETYPE
name = ""small_font""
type = SLE_STRB
var = _freetype.small_font
def = NULL
[SDTG_STR]
ifdef = WITH_FREETYPE
name = ""medium_font""
type = SLE_STRB
var = _freetype.medium_font
def = NULL
[SDTG_STR]
ifdef = WITH_FREETYPE
name = ""large_font""
type = SLE_STRB
var = _freetype.large_font
def = NULL
2011-11-20 11:56:51 +00:00
[SDTG_STR]
ifdef = WITH_FREETYPE
name = ""mono_font""
type = SLE_STRB
var = _freetype.mono_font
def = NULL
2011-03-03 21:04:17 +00:00
[SDTG_VAR]
ifdef = WITH_FREETYPE
name = ""small_size""
type = SLE_UINT
var = _freetype.small_size
def = 8
min = 0
max = 72
[SDTG_VAR]
ifdef = WITH_FREETYPE
name = ""medium_size""
type = SLE_UINT
var = _freetype.medium_size
def = 10
min = 0
max = 72
[SDTG_VAR]
ifdef = WITH_FREETYPE
name = ""large_size""
type = SLE_UINT
var = _freetype.large_size
def = 16
min = 0
max = 72
2011-11-20 11:56:51 +00:00
[SDTG_VAR]
ifdef = WITH_FREETYPE
2011-11-20 19:06:27 +00:00
name = ""mono_size""
2011-11-20 11:56:51 +00:00
type = SLE_UINT
var = _freetype.mono_size
def = 10
min = 0
max = 72
2011-03-03 21:04:17 +00:00
[SDTG_BOOL]
ifdef = WITH_FREETYPE
name = ""small_aa""
var = _freetype.small_aa
def = false
[SDTG_BOOL]
ifdef = WITH_FREETYPE
name = ""medium_aa""
var = _freetype.medium_aa
def = false
[SDTG_BOOL]
ifdef = WITH_FREETYPE
name = ""large_aa""
var = _freetype.large_aa
def = false
2011-11-20 11:56:51 +00:00
[SDTG_BOOL]
ifdef = WITH_FREETYPE
name = ""mono_aa""
var = _freetype.mono_aa
def = false
2011-03-03 21:04:17 +00:00
[SDTG_VAR]
name = ""sprite_cache_size""
type = SLE_UINT
var = _sprite_cache_size
2011-11-24 12:38:48 +00:00
def = 64
2011-03-03 21:04:17 +00:00
min = 1
2011-11-24 12:38:48 +00:00
max = 512
2011-03-03 21:04:17 +00:00
[SDTG_VAR]
name = ""player_face""
type = SLE_UINT32
var = _company_manager_face
def = 0
min = 0
max = 0xFFFFFFFF
[SDTG_VAR]
name = ""transparency_options""
type = SLE_UINT
var = _transparency_opt
def = 0
min = 0
max = 0x1FF
[SDTG_VAR]
name = ""transparency_locks""
type = SLE_UINT
var = _transparency_lock
def = 0
min = 0
max = 0x1FF
[SDTG_VAR]
name = ""invisibility_options""
type = SLE_UINT
var = _invisibility_opt
def = 0
min = 0
max = 0xFF
[SDTG_STR]
name = ""keyboard""
type = SLE_STRB
var = _keyboard_opt[0]
def = NULL
[SDTG_STR]
name = ""keyboard_caps""
type = SLE_STRB
var = _keyboard_opt[1]
def = NULL
2011-11-14 21:41:23 +00:00
[SDTG_VAR]
name = ""last_newgrf_count""
type = SLE_UINT32
var = _settings_client.gui.last_newgrf_count
def = 100
min = 0
max = UINT32_MAX
2011-03-03 21:04:17 +00:00
[SDTG_END]