]> icculus.org git repositories - divverent/nexuiz.git/blob - scmenu/data.menu
Adding my current version of the scmenu to the nexuiz cvs.
[divverent/nexuiz.git] / scmenu / data.menu
1 // Property of Alientrap
2 //
3 // Cvar Definitions
4 Item Container Data
5 {
6 #define DataLink_ZeroOneValue   Derive "::DataLink_ZeroOneValue" Value {}
7 #define DataLink_OnOffSwitch    Derive "::DataLink_OnOffSwitch" Switch {}
8         // v_color prefix and other color controlling cvars
9         Item Container Color
10         {
11                 // normal options
12                 Item Data_Cvar Gamma
13                 {
14                         cvarName        "v_gamma"
15                         defValue        1.0
16                         Item DataLink_Value Value
17                         {
18                                 minValue        0.0
19                                 maxValue        4.0
20                                 stepValue       0.05
21                                 link            "##up"
22                         }
23                 }
24                 Item Data_Cvar Brightness
25                 {
26                         cvarName        "v_brightness"
27                         defValue        0.0
28                         Item DataLink_Value Value
29                         {
30                                 minValue        0.0
31                                 maxValue        3.0
32                                 stepValue       0.05
33                                 link            "##up"
34                         }
35                 }
36                 Item Data_Cvar Contrast
37                 {
38                         cvarName        "v_contrast"
39                         defValue        1.0
40                         Item DataLink_Value Value
41                         {
42                                 minValue        0.0
43                                 maxValue        3.0
44                                 stepValue       0.05
45                                 link            "##up"
46                         }
47                 }
48                 Item Data_Cvar HWGamma // read-only
49                 {
50                         cvarName        "v_hwgamma"
51                         defValue        1.0
52                         Derive DataLink_OnOffSwitch Switch
53                         {
54                                 link            "##up"
55                         }
56                 }
57                 // extended options
58                 Item Container Extended
59                 {
60                         Item Data_Cvar Active
61                         {
62                                 cvarName        "v_color_enable"
63                                 defValue        0.0
64                                 Derive DataLink_OnOffSwitch Switch
65                                 {
66                                         link            "##up"
67                                 }
68                         }
69                         Item Container Low
70                         {
71                                 Item Data_Cvar Red
72                                 {
73                                         cvarName        "v_color_black_r"
74                                         defValue        0.0
75                                         [DataLink_ZeroOneValue]
76                                 }
77                                 Item Data_Cvar Green
78                                 {
79                                         cvarName        "v_color_black_g"
80                                         defValue        0.0
81                                         [DataLink_ZeroOneValue]
82                                 }
83                                 Item Data_Cvar Blue
84                                 {
85                                         cvarName        "v_color_black_b"
86                                         defValue        0.0
87                                         [DataLink_ZeroOneValue]
88                                 }
89                         }
90                         Item Container Mid
91                         {
92                                 Item Data_Cvar Red
93                                 {
94                                         cvarName        "v_color_grey_r"
95                                         defValue        0.5
96                                         [DataLink_ZeroOneValue]
97                                 }
98                                 Item Data_Cvar Green
99                                 {
100                                         cvarName        "v_color_grey_g"
101                                         defValue        0.5
102                                         [DataLink_ZeroOneValue]
103                                 }
104                                 Item Data_Cvar Blue
105                                 {
106                                         cvarName        "v_color_grey_b"
107                                         defValue        0.5
108                                         [DataLink_ZeroOneValue]
109                                 }
110                         }
111                         Item Container High
112                         {
113                                 Item Data_Cvar Red
114                                 {
115                                         cvarName        "v_color_white_r"
116                                         defValue        1.0
117                                         [DataLink_ZeroOneValue]
118                                 }
119                                 Item Data_Cvar Green
120                                 {
121                                         cvarName        "v_color_white_g"
122                                         defValue        1.0
123                                         [DataLink_ZeroOneValue]
124                                 }
125                                 Item Data_Cvar Blue
126                                 {
127                                         cvarName        "v_color_white_b"
128                                         defValue        1.0
129                                         [DataLink_ZeroOneValue]
130                                 }
131                         }
132                 }
133         }
134         Item Container Player
135         {
136                 Item Data_Nex_Name Name
137                 {
138                         defValue        "NexPlayer"
139                         Item DataLink_Text Text
140                         {
141                                 maxValue        32
142                                 link            "##up"
143                         }
144                 }
145                 Item Data_Nex_Avatar Avatar
146                 {
147                 }
148         }
149         Item Container Key
150         {
151                 Item Data_Nex_Key Forward
152                 {
153                         target  "+forward"
154                 }
155                 Item Data_Nex_Key Backward
156                 {
157                         target  "+back"
158                 }
159                 Item Data_Nex_Key StrafeLeft
160                 {
161                         target  "+moveleft"
162                 }
163                 Item Data_Nex_Key StrafeRight
164                 {
165                         target  "+moveright"
166                 }
167                 Item Data_Nex_Key Jump
168                 {
169                         target  "+jump"
170                 }
171                 Item Data_Nex_Key Crouch
172                 {
173                         target  "+shift"
174                 }
175
176                 Item Data_Nex_Key FirePrimary
177                 {
178                         target  "+attack"
179                 }
180                 Item Data_Nex_Key FireSecondary
181                 {
182                         target  "+button3"
183                 }
184                 Item Data_Nex_Key PrevWeapon
185                 {
186                         target  "impulse 10"
187                 }
188                 Item Data_Nex_Key NextWeapon
189                 {
190                         target  "impulse 12"
191                 }
192                 Item Container Weapon
193                 {
194                         Item Data_Nex_Key Laser
195                         {
196                                 target  "impulse 1"
197                         }
198                         Item Data_Nex_Key Uzi
199                         {
200                                 target  "impulse 2"
201                         }
202                         Item Data_Nex_Key Shotgun
203                         {
204                                 target  "impulse 3"
205                         }
206                         Item Data_Nex_Key Grenade
207                         {
208                                 target  "impulse 4"
209                         }
210                         Item Data_Nex_Key Electro
211                         {
212                                 target  "impulse 5"
213                         }
214                         Item Data_Nex_Key CryLink
215                         {
216                                 target  "impulse 6"
217                         }
218                         Item Data_Nex_Key NexGun
219                         {
220                                 target  "impulse 7"
221                         }
222                         Item Data_Nex_Key Hagar
223                         {
224                                 target  "impulse 8"
225                         }
226                         Item Data_Nex_Key Rocket
227                         {
228                                 target  "impulse 9"
229                         }
230                 }
231
232                 Item Data_Nex_Key ShowScores
233                 {
234                         target  "+showscores"
235                 }
236         }
237         Item Container CreateGame
238         {
239                 Item Data_Nex_Map Map
240                 {
241                         defValue        0
242                 }
243                 Item Data_Cvar Hostname
244                 {
245                         cvarName        "hostname"
246                         defValue        "Nexuiz Server"
247
248                         Item DataLink_Text Text
249                         {
250                                 link            "##up"
251                                 maxValue        64
252                         }
253                 }
254                 Item Data_CvarCreateSave MaxPlayers
255                 {
256                         cvarName        "_nex_maxplayers"
257                         defValue        8
258
259                         Item DataLink_Value Value
260                         {
261                                 link            "##up"
262                                 minValue        1
263                                 stepValue       1
264                                 maxValue        32
265                         }
266                         Item DataLink_Text Text
267                         {
268                                 link            "##down"
269                                 maxValue        5
270
271                                 Item DataLink_TextValue TextValue
272                                 {
273                                         link    "##up prev"
274                                 }
275                         }
276                 }
277                 Item Data_Cvar TimeLimit
278                 {
279                         cvarName        "timelimit"
280                         defValue        0
281
282                         Item DataLink_Value Value
283                         {
284                                 maxValue        86400
285                                 link            "##up"
286                         }
287                         Item DataLink_Text Text
288                         {
289                                 maxValue        8
290                                 link            "##down"
291
292                                 Item DataLink_TextTime TextTime
293                                 {
294                                         link    "##up prev"
295                                 }
296                         }
297                 }
298                 Item Data_Cvar FragLimit
299                 {
300                         cvarName        "fraglimit"
301                         defValue        20
302
303                         Item DataLink_Value Value
304                         {
305                                 maxValue        999
306                                 link            "##up"
307                         }
308                         Item DataLink_Text Text
309                         {
310                                 maxValue        3
311                                 link            "##down"
312
313                                 Item DataLink_TextValue TextValue
314                                 {
315                                         link    "##up prev"
316                                 }
317                         }
318                 }
319                 Item Data_Cvar ServerProgs
320                 {
321                         cvarName        "sv_progs"
322                         defValue        "progs.dat"
323
324                         Item DataLink_Nex_ModSwitch Switch
325                         {
326                                 link    "##up"
327                         }
328                 }
329                 Item Data_CvarCreateSave NumBots
330                 {
331                         // TODO: add support for this in FrikQcc
332                         cvarName        "nex_numbots"
333                         defValue        8
334
335                         Item DataLink_Value Value
336                         {
337                                 maxValue        16
338                                 link            "##up"
339                         }
340                         Item DataLink_Text Text
341                         {
342                                 maxValue        5
343                                 link            "##down"
344
345                                 Item DataLink_TextValue TextValue
346                                 {
347                                         link    "##up prev"
348                                 }
349                         }
350                 }
351                 Item Data_CvarCreateSave BotSkill
352                 {
353                         // TODO: add support for this in FrikQcc
354                         cvarName        "nex_botskill"
355                         // from 0 to 3
356                         defValue        0
357
358                         Item DataLink_ValueSwitch Switch
359                         {
360                                 minValue        0
361                                 stepValue       1
362                                 maxValue        3
363                                 descList        "'Beginner''Easy''Medium''Hard'"
364
365                                 link            "##up"
366                         }
367                 }
368                 Item Data_Cvar PublicServer
369                 {
370                         cvarName        "sv_public"
371                         defValue        1
372
373                         Item DataLink_ValueSwitch Switch
374                         {
375                                 maxValue        1
376                                 descList        "'Disabled''Enabled'"
377
378                                 link            "##up"
379                         }
380                 }
381         }
382         Item Container JoinGame
383         {
384                 Item Data_Container QueryString
385                 {
386                         Item DataLink_Text Text
387                         {
388                                 maxValue        1024
389                                 link            "##up"
390                         }
391                 }
392         }
393         Item Container Video
394         {
395                 Item Data_Nex_Resolution Resolution
396                 {
397                         defValue        "800 600"
398
399                         Item DataLink_TextSwitch Switch
400                         {
401                                 valueList       "'320 240' '640 480' '800 600' '1024 768' '1280 970' '1600 1200'"
402                                 descList        "'320x240' '640x480' '800x600' '1024x768' '1280x970' '1600x1200'"
403                                 link            "##up"
404                         }
405                 }
406                 Item Data_Cvar BPP
407                 {
408                         cvarName        "vid_bitsperpixel"
409
410                         Item DataLink_TextSwitch Switch
411                         {
412                                 valueList       "'16' '32'"
413                                 descList        "'16-bit' '32-bit'"
414                                 link            "##up"
415                         }
416                 }
417                 Item Data_Cvar Fullscreen
418                 {
419                         cvarName        "vid_fullscreen"
420
421                         Derive DataLink_OnOffSwitch Switch
422                         {
423                                 link    "##up"
424                         }
425                 }
426         }
427         Item Container Sound
428         {
429                 Item Data_Cvar CDVolume
430                 {
431                         cvarName        "bgmvolume"
432                         defValue        0.5
433
434                         [DataLink_ZeroOneValue]
435                 }
436                 Item Data_Cvar GameVolume
437                 {
438                         cvarName        "volume"
439                         defValue        1
440
441                         [DataLink_ZeroOneValue]
442                 }
443                 Item Data_Cvar AmbientVolume
444                 {
445                         cvarName        "snd_staticvolume"
446                         defValue        0.5
447
448                         [DataLink_ZeroOneValue]
449                 }
450                 Item Data_Cvar SwapStereo
451                 {
452                         cvarName        "snd_swapstereo"
453                         defValue        0
454
455                         [DataLink_OnOffSwitch]
456                 }
457         }
458 }