Add: INR currency (#8136)
[openttd-github.git] / src / table / misc_settings.ini
blobc9441459ffbbcfb7b05ec86caf5ee87ff05f2da6
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 extern char _config_language_file[MAX_PATH];
10 static const char *_support8bppmodes = "no|system|hardware";
12 static const SettingDescGlobVarList _misc_settings[] = {
13 [post-amble]
15 [templates]
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),
22 SDTG_END = SDTG_END()
24 [defaults]
25 flags = SLF_NOT_IN_SAVE | SLF_NO_NETWORK_SYNC
26 guiflags = SGF_NONE
27 interval = 0
28 str = STR_NULL
29 strhelp = STR_CONFIG_SETTING_NO_EXPLANATION_AVAILABLE_HELPTEXT
30 strval = STR_NULL
31 proc = nullptr
32 load = nullptr
33 from = SL_MIN_VERSION
34 to = SL_MAX_VERSION
35 cat = SC_ADVANCED
39 [SDTG_MMANY]
40 name = ""display_opt""
41 type = SLE_UINT8
42 var = _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""
46 [SDTG_BOOL]
47 name = ""fullscreen""
48 var = _fullscreen
49 def = false
50 cat = SC_BASIC
52 [SDTG_OMANY]
53 name = ""support8bpp""
54 type = SLE_UINT8
55 var = _support8bpp
56 def = 0
57 max = 2
58 full = _support8bppmodes
59 cat = SC_BASIC
61 [SDTG_STR]
62 name = ""graphicsset""
63 type = SLE_STRQ
64 var = BaseGraphics::ini_set
65 def = nullptr
66 cat = SC_BASIC
68 [SDTG_STR]
69 name = ""soundsset""
70 type = SLE_STRQ
71 var = BaseSounds::ini_set
72 def = nullptr
73 cat = SC_BASIC
75 [SDTG_STR]
76 name = ""musicset""
77 type = SLE_STRQ
78 var = BaseMusic::ini_set
79 def = nullptr
80 cat = SC_BASIC
82 [SDTG_STR]
83 name = ""videodriver""
84 type = SLE_STRQ
85 var = _ini_videodriver
86 def = nullptr
87 cat = SC_EXPERT
89 [SDTG_STR]
90 name = ""musicdriver""
91 type = SLE_STRQ
92 var = _ini_musicdriver
93 def = nullptr
94 cat = SC_EXPERT
96 [SDTG_STR]
97 name = ""sounddriver""
98 type = SLE_STRQ
99 var = _ini_sounddriver
100 def = nullptr
101 cat = SC_EXPERT
103 [SDTG_STR]
104 name = ""blitter""
105 type = SLE_STRQ
106 var = _ini_blitter
107 def = nullptr
109 [SDTG_STR]
110 name = ""language""
111 type = SLE_STRB
112 var = _config_language_file
113 def = nullptr
114 cat = SC_BASIC
116 ; workaround for implicit lengthof() in SDTG_LIST
117 [SDTG_LIST]
118 name = ""resolution""
119 type = SLE_INT
120 length = 2
121 var = _cur_resolution
122 def = ""640,480""
123 cat = SC_BASIC
125 [SDTG_STR]
126 name = ""screenshot_format""
127 type = SLE_STRB
128 var = _screenshot_format_name
129 def = nullptr
130 cat = SC_EXPERT
132 [SDTG_STR]
133 name = ""savegame_format""
134 type = SLE_STRB
135 var = _savegame_format
136 def = nullptr
137 cat = SC_EXPERT
139 [SDTG_BOOL]
140 name = ""rightclick_emulate""
141 var = _rightclick_emulate
142 def = false
144 [SDTG_STR]
145 ifdef = HAS_TRUETYPE_FONT
146 name = ""small_font""
147 type = SLE_STRB
148 var = _freetype.small.font
149 def = nullptr
151 [SDTG_STR]
152 ifdef = HAS_TRUETYPE_FONT
153 name = ""medium_font""
154 type = SLE_STRB
155 var = _freetype.medium.font
156 def = nullptr
158 [SDTG_STR]
159 ifdef = HAS_TRUETYPE_FONT
160 name = ""large_font""
161 type = SLE_STRB
162 var = _freetype.large.font
163 def = nullptr
165 [SDTG_STR]
166 ifdef = HAS_TRUETYPE_FONT
167 name = ""mono_font""
168 type = SLE_STRB
169 var = _freetype.mono.font
170 def = nullptr
172 [SDTG_VAR]
173 ifdef = HAS_TRUETYPE_FONT
174 name = ""small_size""
175 type = SLE_UINT
176 var = _freetype.small.size
177 def = 0
178 min = 0
179 max = 72
181 [SDTG_VAR]
182 ifdef = HAS_TRUETYPE_FONT
183 name = ""medium_size""
184 type = SLE_UINT
185 var = _freetype.medium.size
186 def = 0
187 min = 0
188 max = 72
190 [SDTG_VAR]
191 ifdef = HAS_TRUETYPE_FONT
192 name = ""large_size""
193 type = SLE_UINT
194 var = _freetype.large.size
195 def = 0
196 min = 0
197 max = 72
199 [SDTG_VAR]
200 ifdef = HAS_TRUETYPE_FONT
201 name = ""mono_size""
202 type = SLE_UINT
203 var = _freetype.mono.size
204 def = 0
205 min = 0
206 max = 72
208 [SDTG_BOOL]
209 ifdef = HAS_TRUETYPE_FONT
210 name = ""small_aa""
211 var = _freetype.small.aa
212 def = false
214 [SDTG_BOOL]
215 ifdef = HAS_TRUETYPE_FONT
216 name = ""medium_aa""
217 var = _freetype.medium.aa
218 def = false
220 [SDTG_BOOL]
221 ifdef = HAS_TRUETYPE_FONT
222 name = ""large_aa""
223 var = _freetype.large.aa
224 def = false
226 [SDTG_BOOL]
227 ifdef = HAS_TRUETYPE_FONT
228 name = ""mono_aa""
229 var = _freetype.mono.aa
230 def = false
232 [SDTG_VAR]
233 name = ""sprite_cache_size_px""
234 type = SLE_UINT
235 var = _sprite_cache_size
236 def = 128
237 min = 1
238 max = 512
239 cat = SC_EXPERT
241 [SDTG_VAR]
242 name = ""player_face""
243 type = SLE_UINT32
244 var = _company_manager_face
245 def = 0
246 min = 0
247 max = 0xFFFFFFFF
248 cat = SC_BASIC
250 [SDTG_VAR]
251 name = ""transparency_options""
252 type = SLE_UINT
253 var = _transparency_opt
254 def = 0
255 min = 0
256 max = 0x1FF
257 cat = SC_BASIC
259 [SDTG_VAR]
260 name = ""transparency_locks""
261 type = SLE_UINT
262 var = _transparency_lock
263 def = 0
264 min = 0
265 max = 0x1FF
266 cat = SC_BASIC
268 [SDTG_VAR]
269 name = ""invisibility_options""
270 type = SLE_UINT
271 var = _invisibility_opt
272 def = 0
273 min = 0
274 max = 0xFF
275 cat = SC_BASIC
277 [SDTG_STR]
278 name = ""keyboard""
279 type = SLE_STRB
280 var = _keyboard_opt[0]
281 def = nullptr
282 cat = SC_EXPERT
284 [SDTG_STR]
285 name = ""keyboard_caps""
286 type = SLE_STRB
287 var = _keyboard_opt[1]
288 def = nullptr
289 cat = SC_EXPERT
291 [SDTG_VAR]
292 name = ""last_newgrf_count""
293 type = SLE_UINT32
294 var = _settings_client.gui.last_newgrf_count
295 def = 100
296 min = 0
297 max = UINT32_MAX
298 cat = SC_EXPERT
300 [SDTG_VAR]
301 name = ""gui_zoom""
302 type = SLE_UINT8
303 var = _gui_zoom
304 def = ZOOM_LVL_OUT_4X
305 min = ZOOM_LVL_MIN
306 max = ZOOM_LVL_OUT_4X
307 cat = SC_BASIC
309 [SDTG_VAR]
310 name = ""font_zoom""
311 type = SLE_UINT8
312 var = _font_zoom
313 def = ZOOM_LVL_OUT_4X
314 min = ZOOM_LVL_MIN
315 max = ZOOM_LVL_OUT_4X
316 cat = SC_BASIC
318 [SDTG_END]