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 extern char _config_language_file[MAX_PATH];
12 static const char *_support8bppmodes = "no|system|hardware";
14 static const SettingDescGlobVarList _misc_settings[] = {
18 SDTG_LIST = SDTG_LIST($name, $type, $length, $flags, $guiflags, $var, $def, $str, $strhelp, $strval, $proc, $from, $to, $cat),
19 SDTG_MMANY = SDTG_MMANY($name, $type, $flags, $guiflags, $var, $def, $full, $str, $strhelp, $strval, $proc, $from, $to, $cat),
20 SDTG_OMANY = SDTG_OMANY($name, $type, $flags, $guiflags, $var, $def, $max, $full, $str, $strhelp, $strval, $proc, $from, $to, $cat),
21 SDTG_STR = SDTG_STR($name, $type, $flags, $guiflags, $var, $def, $str, $strhelp, $strval, $proc, $from, $to, $cat),
22 SDTG_BOOL = SDTG_BOOL($name, $flags, $guiflags, $var, $def, $str, $strhelp, $strval, $proc, $from, $to, $cat),
23 SDTG_VAR = SDTG_VAR($name, $type, $flags, $guiflags, $var, $def, $min, $max, $interval, $str, $strhelp, $strval, $proc, $from, $to, $cat),
27 flags = SLF_NOT_IN_SAVE | SLF_NO_NETWORK_SYNC
31 strhelp = STR_CONFIG_SETTING_NO_EXPLANATION_AVAILABLE_HELPTEXT
42 name = ""display_opt""
45 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)
46 full = ""SHOW_TOWN_NAMES|SHOW_STATION_NAMES|SHOW_SIGNS|FULL_ANIMATION||FULL_DETAIL|WAYPOINTS|SHOW_COMPETITOR_SIGNS""
55 name = ""support8bpp""
60 full = _support8bppmodes
64 name = ""graphicsset""
66 var = BaseGraphics::ini_set
73 var = BaseSounds::ini_set
80 var = BaseMusic::ini_set
85 name = ""videodriver""
87 var = _ini_videodriver
92 name = ""musicdriver""
94 var = _ini_musicdriver
99 name = ""sounddriver""
101 var = _ini_sounddriver
114 var = _config_language_file
118 ; workaround for implicit lengthof() in SDTG_LIST
120 name = ""resolution""
123 var = _cur_resolution
128 name = ""screenshot_format""
130 var = _screenshot_format_name
135 name = ""savegame_format""
137 var = _savegame_format
142 name = ""rightclick_emulate""
143 var = _rightclick_emulate
147 ifdef = WITH_FREETYPE
148 name = ""small_font""
150 var = _freetype.small.font
154 ifdef = WITH_FREETYPE
155 name = ""medium_font""
157 var = _freetype.medium.font
161 ifdef = WITH_FREETYPE
162 name = ""large_font""
164 var = _freetype.large.font
168 ifdef = WITH_FREETYPE
171 var = _freetype.mono.font
175 ifdef = WITH_FREETYPE
176 name = ""small_size""
178 var = _freetype.small.size
184 ifdef = WITH_FREETYPE
185 name = ""medium_size""
187 var = _freetype.medium.size
193 ifdef = WITH_FREETYPE
194 name = ""large_size""
196 var = _freetype.large.size
202 ifdef = WITH_FREETYPE
205 var = _freetype.mono.size
211 ifdef = WITH_FREETYPE
213 var = _freetype.small.aa
217 ifdef = WITH_FREETYPE
219 var = _freetype.medium.aa
223 ifdef = WITH_FREETYPE
225 var = _freetype.large.aa
229 ifdef = WITH_FREETYPE
231 var = _freetype.mono.aa
235 name = ""sprite_cache_size_px""
237 var = _sprite_cache_size
244 name = ""player_face""
246 var = _company_manager_face
253 name = ""transparency_options""
255 var = _transparency_opt
262 name = ""transparency_locks""
264 var = _transparency_lock
271 name = ""invisibility_options""
273 var = _invisibility_opt
282 var = _keyboard_opt[0]
287 name = ""keyboard_caps""
289 var = _keyboard_opt[1]
294 name = ""last_newgrf_count""
296 var = _settings_client.gui.last_newgrf_count
306 def = ZOOM_LVL_OUT_4X
308 max = ZOOM_LVL_OUT_4X