Debian Codegraph @

mp-pak0/ui/options.menu

raw
1 /*
2 ===========================================================================
3 Copyright (C) 2007 Open Arena Team
4
5 This file is part of Open Arena.
6
7 Open Arena is free software; you can redistribute it
8 and/or modify it under the terms of the GNU General Public License as
9 published by the Free Software Foundation; either version 2 of the License,
10 or (at your option) any later version.
11
12 Open Arena is distributed in the hope that it will be
13 useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
16
17 You should have received a copy of the GNU General Public License
18 along with Open Arena; if not, write to the Free Software
19 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
20 ===========================================================================
21 */
22
23 #include "ui/menudef.h"
24
25 // classic H*L style menu
26
27 {
28 menuDef {
29 name options
30 visible 0
31 fullscreen 1
32 background MP_BACKGROUND
33 focusColor MP_FOCUSCOLOR
34 rect 0 0 640 480
35 outOfBoundsClick
36 style 0
37 onEsc {
38 close options;
39 open configuration;
40 }
41
42 itemDef {
43 name titleness
44 text "Game Options"
45 style 0
46 type 0
47 textstyle 6
48 textscale 1
49 rect 0 65 1 1
50 textalign 0
51 textalignx 48
52 textaligny 40
53 forecolor MP_TITLECOLOR
54 visible 1
55 }
56
57 // The Bar of Buttons
58
59 itemDef {
60 name button1
61 text "Apply"
62 style 0
63 type 1
64 textstyle 3
65 textscale 0.3
66 rect 52 145 163 34
67 textalign 0
68 textalignx 5
69 textaligny 20
70 backcolor 0 0 0 0
71 forecolor MP_TEXTCOLOR
72 visible 1
73 action
74 {
75 play "ui/assets/select.wav";
76 close options;
77 open configuration;
78 }
79 }
80
81 itemDef {
82 name button2
83 text "Done"
84 style 0
85 type 1
86 textstyle 3
87 textscale 0.3
88 rect 52 177 163 34
89 textalign 0
90 textalignx 5
91 textaligny 20
92 forecolor MP_TEXTCOLOR
93 visible 1
94 action
95 {
96 play "ui/assets/select.wav";
97 close options;
98 open configuration;
99 }
100 }
101 // the audio controls
102
103 itemDef {
104 name crosshair
105 text "Crosshair: "
106 ownerdraw UI_CROSSHAIR
107 forecolor MP_TEXTCOLOR
108 backcolor 0 0 0 0
109 textstyle 6
110 textscale .25
111 rect 212 180 20 20
112 textalign 0
113 textalignx 6
114 textaligny 18
115 visible 1
116 }
117
118
119 itemDef {
120 name simpleitems
121 type ITEM_TYPE_YESNO
122 style 0
123 text "Simple Items: "
124 cvar "cg_simpleitems"
125 textstyle 6
126 textscale .22
127 rect 212 287 150 24
128 textalign 0
129 textalignx 6
130 textaligny 18
131 forecolor MP_TEXTCOLOR
132 backcolor 0 0 0 0
133 visible 1
134 }
135
136 itemDef {
137 name shadows
138 type ITEM_TYPE_YESNO
139 style 0
140 text "Marks on Walls: "
141 cvar "cg_marks"
142 textstyle 6
143 textscale .22
144 rect 54 287 116 24
145 textalign 0
146 textalignx 6
147 textaligny 20
148 forecolor MP_TEXTCOLOR
149 backcolor 0 0 0 0
150 visible 1
151 }
152
153
154 // other buttons
155
156 itemDef {
157 name frares
158 type ITEM_TYPE_YESNO
159 text "Floating Scores: "
160 cvar "cg_scorePlums"
161 style 0
162 textstyle 6
163 textscale .22
164 rect 54 311 116 24
165 textalign 0
166 textalignx 6
167 textaligny 20
168 forecolor MP_TEXTCOLOR
169 backcolor 0 0 0 0
170 visible 1
171 }
172
173 itemDef {
174 name pure
175 type ITEM_TYPE_MULTI
176 text "Ejecting Brass: "
177 cvar "cg_brassTime"
178 cvarFloatList { "High" 2500 "Medium" 1250 "Low" 625 "Off" 0 }
179 textstyle 6
180 textscale .22
181 rect 54 335 116 24
182 textalign 0
183 textalignx 6
184 textaligny 20
185 forecolor MP_TEXTCOLOR
186 backcolor 0 0 0 0
187 visible 1
188 }
189
190 itemDef {
191 name ded
192 type ITEM_TYPE_YESNO
193 text "Dynamic Lights: "
194 style 0
195 cvar "r_dynamiclight"
196 textstyle 6
197 textscale .22
198 rect 54 359 116 24
199 textalign 0
200 textalignx 6
201 textaligny 20
202 forecolor MP_TEXTCOLOR
203 backcolor 0 0 0 0
204 visible 1
205 }
206
207 // row 2 of other buttons
208
209 itemDef {
210 name fraglimit
211 type ITEM_TYPE_YESNO
212 text "Identify Target: "
213 style 0
214 cvar "cg_drawCrosshairNames"
215 textstyle 6
216 textscale .22
217 rect 215 311 116 24
218 textalign 0
219 textalignx 6
220 textaligny 20
221 forecolor MP_TEXTCOLOR
222 backcolor 0 0 0 0
223 visible 1
224 }
225
226 itemDef {
227 name timelimit
228 type ITEM_TYPE_YESNO
229 text "Draw Gun: "
230 style 0
231 cvar "cg_drawGun"
232 textstyle 6
233 textscale .22
234 rect 215 335 116 24
235 textalign 0
236 textalignx 6
237 textaligny 20
238 forecolor MP_TEXTCOLOR
239 backcolor 0 0 0 0
240 visible 1
241 }
242
243 itemDef {
244 name caplimit
245 type ITEM_TYPE_YESNO
246 text "Low Quality Sky: "
247 cvar "r_fastsky"
248 style 0
249 maxchars 5
250 textstyle 6
251 textscale .22
252 textstyle 6
253 textscale .22
254 rect 215 359 116 24
255 textalign 0
256 textalignx 6
257 textaligny 20
258 forecolor MP_TEXTCOLOR
259 backcolor 0 0 0 0
260 visible 1
261 }
262
263 itemDef {
264 name minplayers
265 type ITEM_TYPE_YESNO
266 text "Sync Every Frame: "
267 cvar "weapon 5"
268 style 0
269 maxchars 2
270 textstyle 6
271 textscale .22
272 textstyle 6
273 textscale .22
274 rect 215 383 116 24
275 textalign 0
276 textalignx 6
277 textaligny 20
278 forecolor MP_TEXTCOLOR
279 backcolor 0 0 0 0
280 visible 1
281 }
282
283 itemDef {
284 name bloom
285 type ITEM_TYPE_YESNO
286 text "Force Models: "
287 cvar "cg_forceModel"
288 style 0
289 maxchars 2
290 textstyle 6
291 textscale .22
292 textstyle 6
293 textscale .22
294 rect 54 407 116 24
295 textalign 0
296 textalignx 6
297 textaligny 20
298 forecolor MP_TEXTCOLOR
299 backcolor 0 0 0 0
300 visible 1
301 }
302
303 itemDef {
304 name minfayers
305 type ITEM_TYPE_YESNO
306 text "Draw Team Overlay: "
307 cvar "cg_drawTeamOverlay"
308 style 0
309 maxchars 2
310 textstyle 6
311 textscale .22
312 textstyle 6
313 textscale .22
314 rect 54 383 116 24
315 textalign 0
316 textalignx 6
317 textaligny 20
318 forecolor MP_TEXTCOLOR
319 backcolor 0 0 0 0
320 visible 1
321 }
322
323 itemDef {
324 name stencilbuffer
325 style 0
326 type ITEM_TYPE_YESNO
327 text "Auto Download: "
328 cvar "cl_allowdownload"
329 textstyle 6
330 textscale .22
331 rect 215 407 116 24
332 textalign 0
333 textalignx 6
334 textaligny 20
335 forecolor MP_TEXTCOLOR
336 backcolor 0 0 0 0
337 visible 1
338 }
339
340 itemDef {
341 name timer
342 style 0
343 type ITEM_TYPE_YESNO
344 text "Show Timer: "
345 cvar "cg_drawTimer"
346 rect 376 287 116 24
347 textstyle 6
348 textscale .22
349 textalign 0
350 textalignx 6
351 textaligny 20
352 forecolor MP_TEXTCOLOR
353 backcolor 0 0 0 0
354 visible 1
355 }
356
357 itemDef {
358 name voice
359 style 0
360 type ITEM_TYPE_YESNO
361 text "Voices Off: "
362 cvar "cg_NoVoiceChats"
363 rect 376 311 116 24
364 textstyle 6
365 textscale .22
366 textalign 0
367 textalignx 6
368 textaligny 20
369 forecolor MP_TEXTCOLOR
370 backcolor 0 0 0 0
371 visible 1
372 }
373
374 itemDef {
375 name taunts
376 style 0
377 type ITEM_TYPE_YESNO
378 text "Taunts Off: "
379 cvar "cg_NoTaunt"
380 rect 376 335 116 24
381 textstyle 6
382 textscale .22
383 textalign 0
384 textalignx 6
385 textaligny 20
386 forecolor MP_TEXTCOLOR
387 backcolor 0 0 0 0
388 visible 1
389 }
390
391 itemDef {
392 name vtext
393 style 0
394 type ITEM_TYPE_YESNO
395 text "Voice Text Off: "
396 cvar "cg_NoVoiceText"
397 rect 376 359 116 24
398 textstyle 6
399 textscale .22
400 textalign 0
401 textalignx 6
402 textaligny 20
403 forecolor MP_TEXTCOLOR
404 backcolor 0 0 0 0
405 visible 1
406 }
407
408 itemDef {
409 name tchat
410 style 0
411 type ITEM_TYPE_YESNO
412 text "Team Chats Only: "
413 cvar "cg_teamChatsOnly"
414 rect 376 383 116 24
415 textstyle 6
416 textscale .22
417 textalign 0
418 textalignx 6
419 textaligny 20
420 forecolor MP_TEXTCOLOR
421 backcolor 0 0 0 0
422 visible 1
423 }
424
425 itemDef {
426 name status
427 type ITEM_TYPE_MULTI
428 text "Status Bar: "
429 cvar "cg_hudfiles"
430 cvarStrList { Normal "ui/hud.txt" Small "ui/hud2.txt" }
431 rect 376 407 116 24
432 textstyle 6
433 textscale .22
434 textalign 0
435 textalignx 6
436 textaligny 20
437 forecolor MP_TEXTCOLOR
438 backcolor 0 0 0 0
439 visible 1
440 }
441
442
443 }
444 }