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 extern char _config_language_file[MAX_PATH];
10 static const char *_support8bppmodes = "no|system|hardware";
12 static const SettingDescGlobVarList _misc_settings[] = {
16 SDTG_LIST = SDTG_LIST($name, $type, $length, $flags, $guiflags, $var, $def, $str, $strhelp, $strval, $proc, $from, $to, $cat),
17 SDTG_MMANY = SDTG_MMANY($name, $type, $flags, $guiflags, $var, $def, $full, $str, $strhelp, $strval, $proc, $from, $to, $cat),
18 SDTG_OMANY = SDTG_OMANY($name, $type, $flags, $guiflags, $var, $def, $max, $full, $str, $strhelp, $strval, $proc, $from, $to, $cat),
19 SDTG_STR = SDTG_STR($name, $type, $flags, $guiflags, $var, $def, $str, $strhelp, $strval, $proc, $from, $to, $cat),
20 SDTG_BOOL = SDTG_BOOL($name, $flags, $guiflags, $var, $def, $str, $strhelp, $strval, $proc, $from, $to, $cat),
21 SDTG_VAR = SDTG_VAR($name, $type, $flags, $guiflags, $var, $def, $min, $max, $interval, $str, $strhelp, $strval, $proc, $from, $to, $cat),
25 flags = SLF_NOT_IN_SAVE | SLF_NO_NETWORK_SYNC
29 strhelp = STR_CONFIG_SETTING_NO_EXPLANATION_AVAILABLE_HELPTEXT
40 name = ""display_opt""
43 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)
44 full = ""SHOW_TOWN_NAMES|SHOW_STATION_NAMES|SHOW_SIGNS|FULL_ANIMATION||FULL_DETAIL|WAYPOINTS|SHOW_COMPETITOR_SIGNS""
53 name = ""support8bpp""
58 full = _support8bppmodes
62 name = ""graphicsset""
64 var = BaseGraphics::ini_set
71 var = BaseSounds::ini_set
78 var = BaseMusic::ini_set
83 name = ""videodriver""
85 var = _ini_videodriver
90 name = ""musicdriver""
92 var = _ini_musicdriver
97 name = ""sounddriver""
99 var = _ini_sounddriver
112 var = _config_language_file
116 ; workaround for implicit lengthof() in SDTG_LIST
118 name = ""resolution""
121 var = _cur_resolution
126 name = ""screenshot_format""
128 var = _screenshot_format_name
133 name = ""savegame_format""
135 var = _savegame_format
140 name = ""rightclick_emulate""
141 var = _rightclick_emulate
145 ifdef = HAS_TRUETYPE_FONT
146 name = ""small_font""
148 var = _freetype.small.font
152 ifdef = HAS_TRUETYPE_FONT
153 name = ""medium_font""
155 var = _freetype.medium.font
159 ifdef = HAS_TRUETYPE_FONT
160 name = ""large_font""
162 var = _freetype.large.font
166 ifdef = HAS_TRUETYPE_FONT
169 var = _freetype.mono.font
173 ifdef = HAS_TRUETYPE_FONT
174 name = ""small_size""
176 var = _freetype.small.size
182 ifdef = HAS_TRUETYPE_FONT
183 name = ""medium_size""
185 var = _freetype.medium.size
191 ifdef = HAS_TRUETYPE_FONT
192 name = ""large_size""
194 var = _freetype.large.size
200 ifdef = HAS_TRUETYPE_FONT
203 var = _freetype.mono.size
209 ifdef = HAS_TRUETYPE_FONT
211 var = _freetype.small.aa
215 ifdef = HAS_TRUETYPE_FONT
217 var = _freetype.medium.aa
221 ifdef = HAS_TRUETYPE_FONT
223 var = _freetype.large.aa
227 ifdef = HAS_TRUETYPE_FONT
229 var = _freetype.mono.aa
233 name = ""sprite_cache_size_px""
235 var = _sprite_cache_size
242 name = ""player_face""
244 var = _company_manager_face
251 name = ""transparency_options""
253 var = _transparency_opt
260 name = ""transparency_locks""
262 var = _transparency_lock
269 name = ""invisibility_options""
271 var = _invisibility_opt
280 var = _keyboard_opt[0]
285 name = ""keyboard_caps""
287 var = _keyboard_opt[1]
292 name = ""last_newgrf_count""
294 var = _settings_client.gui.last_newgrf_count
304 def = ZOOM_LVL_OUT_4X
306 max = ZOOM_LVL_OUT_4X
313 def = ZOOM_LVL_OUT_4X
315 max = ZOOM_LVL_OUT_4X