]> icculus.org git repositories - divverent/nexuiz.git/blob - menu/xplayer.menu
grappling hook
[divverent/nexuiz.git] / menu / xplayer.menu
1 /*
2 Property of Alientrap
3
4 Singleplayer & Multiplayer menu
5 */
6 /*
7 template for map selection
8 */
9 /////////////////////////
10 // map selection window
11 // frame
12 /*{
13         type    ITEM_WINDOW
14         name    mapselection
15         origin  "0 30" // to allow easy editing of the posititons
16 }
17 {
18         type    ITEM_WINDOW
19         name    mapselection_frame
20         parent  mapselection
21         origin  "50 0"
22         clip_pos "50 0"
23         clip_size "500 1"
24         init    nex_xp_build_maplist
25 }
26 // label
27 {
28         type    ITEM_TEXT
29         name    mapselection_label
30         parent  mapselection
31         pos             "50 -30"
32         text    "Map Selection"
33 }
34 // prev button
35 {
36         type    ITEM_BUTTON
37         name    mapselection_prev
38         parent  mapselection
39         picture "gfx/m_arrow"
40         picture_selected "gfx/m_arrow"
41         picture_pressed "gfx/m_arrow"
42         color_selected  "0.5 0.5 1"
43         color_pressed   "1 0.2 0.2"
44         pos     "0 43.5"
45         size    "50 50"
46         action  nex_xp_prev
47 }
48 // next button
49 {
50         type    ITEM_BUTTON
51         name    mapselection_next
52         parent  mapselection
53         picture "gfx/m_arrow_i"
54         picture_selected "gfx/m_arrow_i"
55         picture_pressed "gfx/m_arrow_i"
56         color_selected  "0.5 0.5 1"
57         color_pressed   "1 0.2 0.2"
58         pos     "550 43.5"
59         size    "50 50"
60         action  nex_xp_next
61 }
62 // template used to create the different pictures
63 {
64         type    ITEM_PICTURE
65         name    mapselection_template_picture
66         parent  mapselection_frame
67         picture "gfx/m_nomap"
68         size    "125 125"
69         pos             "-166 0 0"
70         flag    256
71         action  nex_xp_click
72 }
73 {
74         type    ITEM_TEXT
75         name    mapselection_template_text
76         parent  mapselection_frame
77         text    template
78         alignment 1
79         font_size       "13 13 0"
80         pos             "-110 0 0"
81         flag    256
82         action  nex_xp_click
83         //size  "100 13 0"
84 }
85 {
86         type    ITEM_RECTANGLE
87         name    mapselection_selsquare
88         parent  mapselection_frame
89         color   "0.9 0.9 0.6" //"^1 0.5 0.5"
90         drawflag 2
91         //color "0.9 0.9 0"
92         //alpha "0.2"
93         size    "1 1"
94 }
95 //////////////////////
96 // create game
97 // multiplayer options (spawn server)
98 {
99         type    ITEM_WINDOW
100         name    multiplayer_frame
101         parent  multiplayer
102         origin  "150 250"
103         order   1
104 }
105 // map selection
106 {
107         type    ITEM_REFERENCE
108         name    multiplayer_mapselection
109         parent  multiplayer_frame
110         link    mapselection
111         origin  "-300 -225"
112         draw    nex_linkrelhack
113 }
114 // game name
115 {
116         type            ITEM_TEXTBUTTON
117         name            multiplayer_gamename_text
118         parent          multiplayer_frame
119         text            "Server Name"
120         pos                     "0 0 0"
121         //font_size     "10 10 0"
122         alignment       16              // TEXT_ALIGN_RIGHTPOS
123         flag            256             // FLAG_AUTOSETCLICK
124         key                     nex_redirect_key
125 }
126 // Switch
127 {
128         type            ITEM_EDITBOX
129         name            multiplayer_gamename_switch
130         parent          multiplayer_gamename_text
131         pos                     "10 0 0"
132         //font_size     "10 10 0"
133         flag            260             // FLAG_AUTOSETCLICK | FLAG_NOSELECT
134         text            "xxx-game (.)(.)"
135         maxlen          -1
136         refresh         nex_mp_hostname
137 }
138 // max frags
139 {
140         type            ITEM_TEXTBUTTON
141         name            multiplayer_maxfrag_text
142         parent          multiplayer_frame
143         text            "Frag Limit"
144         pos                     "0 15 0"
145         //font_size     "10 10 0"
146         alignment       16              // TEXT_ALIGN_RIGHTPOS
147         flag            256             // FLAG_AUTOSETCLICK
148         key                     nex_redirect_key
149 }
150 // Switch
151 {
152         type            ITEM_EDITBOX
153         name            multiplayer_maxfrag_switch
154         parent          multiplayer_maxfrag_text
155         pos                     "10 15 0"
156         //font_size     "10 10 0"
157         flag            260             // FLAG_AUTOSETCLICK | FLAG_NOSELECT
158         maxlen          3
159         text            "0"
160         refresh         nex_xp_maxfrags
161 }
162 // max time
163 {
164         type            ITEM_TEXTBUTTON
165         name            multiplayer_maxtime_text
166         parent          multiplayer_frame
167         text            "Time Limit"
168         pos                     "0 30 0"
169         //font_size     "10 10 0"
170         alignment       16              // TEXT_ALIGN_RIGHTPOS
171         flag            256             // FLAG_AUTOSETCLICK
172         key                     nex_redirect_key
173 }
174 // Switch
175 {
176         type            ITEM_EDITBOX
177         name            multiplayer_maxtime_switch
178         parent          multiplayer_maxtime_text
179         pos                     "10 30 0"
180         //font_size     "10 10 0"
181         flag            260             // FLAG_AUTOSETCLICK | FLAG_NOSELECT
182         maxlen          3
183         text            "0"
184         refresh         nex_xp_maxtime
185 }
186 // max clients
187 {
188         type            ITEM_TEXTBUTTON
189         name            multiplayer_maxclients_text
190         parent          multiplayer_frame
191         text            "Max Clients"
192         pos                     "0 45 0"
193         //font_size     "10 10 0"
194         alignment       16              // TEXT_ALIGN_RIGHTPOS
195         flag            256             // FLAG_AUTOSETCLICK
196         key                     nex_redirect_key
197 }
198 // Switch
199 {
200         type            ITEM_EDITBOX
201         name            multiplayer_maxclients_switch
202         parent          multiplayer_maxclients_text
203         pos                     "10 45 0"
204         //font_size     "10 10 0"
205         flag            260             // FLAG_AUTOSETCLICK | FLAG_NOSELECT
206         maxlen          2
207         text            "16"
208         refresh         nex_mp_maxclients
209 }
210 // max bots
211 {
212         type            ITEM_TEXTBUTTON
213         name            multiplayer_maxbots_text
214         parent          multiplayer_frame
215         text            "Max Bots"
216         pos                     "0 60 0"
217         //font_size     "10 10 0"
218         alignment       16              // TEXT_ALIGN_RIGHTPOS
219         flag            256             // FLAG_AUTOSETCLICK
220         key                     nex_redirect_key
221 }
222 // Switch
223 {
224         type            ITEM_EDITBOX
225         name            multiplayer_maxbots_switch
226         parent          multiplayer_maxbots_text
227         pos                     "10 60 0"
228         //font_size     "10 10 0"
229         flag            260             // FLAG_AUTOSETCLICK | FLAG_NOSELECT
230         maxlen          2
231         text            "0"
232         refresh         nex_xp_maxbots
233 }
234 //////
235 // Public Server
236 ////
237 // Text
238 {
239         type            ITEM_TEXTBUTTON
240         name            multiplayer_publicserv_text
241         parent          multiplayer_frame
242         text            "Public Server"
243         pos                     "0 75 0"
244         //font_size     "10 10 0"
245         alignment       16              // TEXT_ALIGN_RIGHTPOS
246         flag            256             // FLAG_AUTOSETCLICK
247         key                     nex_redirect_key
248 }
249 // Switch
250 {
251         type            ITEM_TEXTSWITCH
252         name            multiplayer_publicserv_switch
253         parent          multiplayer_publicserv_text
254         pos                     "10 75 0"
255         //font_size     "10 10 0"
256         flag            260             // FLAG_AUTOSETCLICK | FLAG_NOSELECT
257         text            "'No''Yes'"
258         value           1
259         switchchange nex_mp_publicserv
260 }
261 // start
262 {
263         type            ITEM_TEXTBUTTON
264         name            multiplayer_start
265         parent          multiplayer_frame
266         pos                     "0 105"
267         flag            256             // FLAG_AUTOSETCLICK
268         alignment       8
269         text            "Start Game"
270         action          nex_mp_start
271 }*/
272 // creategame map frame
273 {
274         type            ITEM_WINDOW
275         name            creategame_map
276         parent          creategame
277         clip_pos        "0 0"
278         clip_size       "270 445"
279         reinit          nex_xp_enummaps
280 }
281 // <<
282 {
283         type            ITEM_TEXTBUTTON
284         name            creategame_map_prev
285         parent          creategame_map
286         pos             "0 0"
287         size            "22 11"
288         text            "<<"
289         action          nex_xp_prev
290 }
291 // map name
292 {
293         type            ITEM_TEXT
294         name            creategame_map_name
295         parent          creategame_map
296         pos             "27 0"
297         clip_pos        "27 0"
298         size            "216 11"
299         clip_size       "216 11"
300         font_size       "11 11"
301         text            "Test"
302         alignment       1 // ALIGN_CENTER
303 }
304 // >>
305 {
306         type            ITEM_TEXTBUTTON
307         name            creategame_map_next
308         parent          creategame_map
309         pos             "248 0"
310         size            "22 11"
311         text            ">>"
312         action          nex_xp_next
313 }
314 // map picture
315 {
316         type            ITEM_PICTURE
317         name            creategame_map_picture
318         parent          creategame_map
319         pos             "0 11"
320         size            "270 232"
321         picture         "gfx/m_nomap"
322 }
323 // info box
324 {
325         type            ITEM_CUSTOM
326         name            creategame_map_info
327         parent          creategame_map
328         clip_pos        "0 243"
329         clip_size       "270 202"
330         pos             "0 243"
331         size            "270 202"
332         flag            4 // no select
333         drawflag        0
334         color           "1 1 1"
335         alpha           1
336         font_size       "9 9"
337         draw            nex_draw_text
338 }
339
340 // creategame options frame
341 {
342         type            ITEM_WINDOW
343         name            creategame_opt
344         parent          creategame
345         origin          "436 0" //270+175
346         clip_pos        "270 0"
347         clip_size       "350 445"
348 }
349 //////
350 // Server Name
351 ////
352 // Text
353 {
354         type            ITEM_TEXTBUTTON
355         name            creategame_opt_server_name_text
356         parent          creategame_opt
357         text            "Server Name"
358         pos             "0 0 0"
359         origin          "0 0 0"
360         //font_size     "10 10 0"
361         alignment       16              // TEXT_ALIGN_RIGHTPOS
362         flag            256             // FLAG_AUTOSETCLICK
363         key             nex_redirect_key
364 }
365 // Editbox
366 {
367         type            ITEM_EDITBOX
368         name            creategame_opt_server_name_edit
369         parent          creategame_opt_server_name_text
370         //pos           "10 0 0"
371         pos             "10 0 0"
372         //font_size     "10 10 0"
373         flag            260             // FLAG_AUTOSETCLICK | FLAG_NOSELECT
374         text            "xxx-game (.)(.)" //please remove this somewhen - I dont have the power to ^_^
375         maxlen          15
376         refresh         nex_xp_hostname
377 }
378 //////
379 // Game Mode
380 ////
381 // Text
382 {
383         type    ITEM_TEXTBUTTON
384         name            creategame_opt_gamemode_text
385         parent          creategame_opt
386         text            "Game Mode"
387         pos             "0 15 0"
388         origin          "0 15 0"
389         //font_size     "10 10 0"
390         alignment       16              // TEXT_ALIGN_RIGHTPOS
391         flag            256             // FLAG_AUTOSETCLICK
392         key                     nex_redirect_key
393 }
394 // Switch
395 {
396         type    ITEM_TEXTSWITCH
397         name            creategame_opt_gamemode_switch
398         parent          creategame_opt_gamemode_text
399         //pos           "10 15 0"
400         pos             "10 0 0"
401         //font_size     "10 10 0"
402         flag            260             // FLAG_AUTOSETCLICK | FLAG_NOSELECT
403         text            "'Deathmatch' 'Instagib' 'DarkArena' 'HeadHunter' 'SlowMo' 'Speedy' 'GrapplingHook'"
404         value           0
405         switchchange    nex_xp_gamemode
406 }
407 // max frags
408 {
409         type            ITEM_TEXTBUTTON
410         name            creategame_opt_maxfrag_text
411         parent          creategame_opt
412         text            "Frag Limit"
413         pos             "0 30 0"
414         //font_size     "10 10 0"
415         alignment       16              // TEXT_ALIGN_RIGHTPOS
416         flag            256             // FLAG_AUTOSETCLICK
417         key             nex_redirect_key
418 }
419 // Switch
420 {
421         type            ITEM_EDITBOX
422         name            creategame_opt_maxfrag_switch
423         parent          creategame_opt_maxfrag_text
424         pos             "10 30 0"
425         //font_size     "10 10 0"
426         flag            260     // FLAG_AUTOSETCLICK | FLAG_NOSELECT
427         maxlen          3
428         text            "0  "
429         refresh         nex_xp_maxfrags
430 }
431 // max time
432 {
433         type            ITEM_TEXTBUTTON
434         name            creategame_opt_maxtime_text
435         parent          creategame_opt
436         text            "Time Limit"
437         pos             "0 45 0"
438         //font_size     "10 10 0"
439         alignment       16              // TEXT_ALIGN_RIGHTPOS
440         flag            256             // FLAG_AUTOSETCLICK
441         key                     nex_redirect_key
442 }
443 // Switch
444 {
445         type            ITEM_EDITBOX
446         name            creategame_opt_maxtime_switch
447         parent          creategame_opt_maxtime_text
448         pos             "10 45 0"
449         //font_size     "10 10 0"
450         flag            260             // FLAG_AUTOSETCLICK | FLAG_NOSELECT
451         maxlen          3
452         text            "0  "
453         refresh         nex_xp_maxtime
454 }
455 // max bots
456 {
457         type            ITEM_TEXTBUTTON
458         name            creategame_opt_maxbots_text
459         parent          creategame_opt
460         text            "Bot Count"
461         pos             "0 60 0"
462         //font_size     "10 10 0"
463         alignment       16              // TEXT_ALIGN_RIGHTPOS
464         flag            256             // FLAG_AUTOSETCLICK
465         key             nex_redirect_key
466 }
467 // Switch
468 {
469         type            ITEM_EDITBOX
470         name            creategame_opt_maxbots_switch
471         parent          creategame_opt_maxbots_text
472         pos             "10 60 0"
473         //font_size     "10 10 0"
474         flag            260             // FLAG_AUTOSETCLICK | FLAG_NOSELECT
475         maxlen          2
476         text            "0 "
477         refresh         nex_xp_maxbots
478 }
479 //////
480 // Skill Level
481 ////
482 // Text
483 {
484         type            ITEM_TEXTBUTTON
485         name            creategame_opt_skilllevel_text
486         parent          creategame_opt
487         text            "Skill Level"
488         pos             "0 75 0"
489         //font_size     "10 10 0"
490         alignment       16              // TEXT_ALIGN_RIGHTPOS
491         flag            256             // FLAG_AUTOSETCLICK
492         key                     nex_redirect_key
493 }
494 // Switch
495 {
496         type            ITEM_TEXTSWITCH
497         name            creategame_opt_skilllevel_switch
498         parent          creategame_opt_skilllevel_text
499         pos             "10 75 0"
500         //font_size     "10 10 0"
501         flag            260             // FLAG_AUTOSETCLICK | FLAG_NOSELECT
502         text            "'N00b' 'Normal' 'Hard' 'Masochist'"
503         value           1
504         switchchange    nex_xp_skilllevel
505         init            nex_xp_skilllevel
506 }
507 // max clients
508 {
509         type            ITEM_TEXTBUTTON
510         name            creategame_opt_maxclients_text
511         parent          creategame_opt
512         text            "Max Clients"
513         pos                     "0 90 0"
514         //font_size     "10 10 0"
515         alignment       16              // TEXT_ALIGN_RIGHTPOS
516         flag            256             // FLAG_AUTOSETCLICK
517         key             nex_redirect_key
518 }
519 // Switch
520 {
521         type            ITEM_EDITBOX
522         name            creategame_opt_maxclients_switch
523         parent          creategame_opt_maxclients_text
524         pos                     "10 90 0"
525         //font_size     "10 10 0"
526         flag            260             // FLAG_AUTOSETCLICK | FLAG_NOSELECT
527         maxlen          2
528         text            "16"
529         refresh         nex_xp_maxclients
530 }
531 //////
532 // Public Server
533 ////
534 // Text
535 {
536         type            ITEM_TEXTBUTTON
537         name            creategame_opt_publicserv_text
538         parent          creategame_opt
539         text            "Public Server"
540         pos                     "0 105 0"
541         //font_size     "10 10 0"
542         alignment       16              // TEXT_ALIGN_RIGHTPOS
543         flag            256             // FLAG_AUTOSETCLICK
544         key                     nex_redirect_key
545 }
546 // Switch
547 {
548         type            ITEM_TEXTSWITCH
549         name            creategame_opt_publicserv_switch
550         parent          creategame_opt_publicserv_text
551         pos                     "10 105 0"
552         //font_size     "10 10 0"
553         flag            260             // FLAG_AUTOSETCLICK | FLAG_NOSELECT
554         text            "'No''Yes'"
555         value           1
556         switchchange   nex_xp_publicserv
557 }
558 // start
559 {
560         type            ITEM_TEXTBUTTON
561         name            creategame_opt_start
562         parent          creategame_opt
563         pos             "0 130"
564         flag            256             // FLAG_AUTOSETCLICK
565         alignment       8
566         text            "Start Game"
567         action          nex_xp_start
568 }
569
570 // multiplayer server list
571 {
572         type    ITEM_WINDOW
573         name    serverlist
574 }
575 // link the background_rect
576 {
577         type    ITEM_PICTURE
578         name    serverlist_background
579         picture "gfx/m_slist_bg"
580         parent  serverlist
581 }
582 // info text 1
583 {
584         type    ITEM_TEXT
585         name    serverlist_info1
586         parent  serverlist
587         text    "" // "INFO TEXT 1"
588         pos             "0 20"
589         size    "1024 11"
590         font_size "11 11"
591         alignment 1
592         refresh slist_info1
593         flag    0
594 }
595 {
596         type    ITEM_TEXT
597         name    serverlist_info2
598         parent  serverlist
599         text    "" //"INFO TEXT 2"
600         pos             "0 32"
601         font_size "11 11"
602         size    "1024 11"
603         alignment 1
604         refresh slist_info2
605         flag    0
606 }
607 // clip rect for the slist
608 {
609         type    ITEM_WINDOW
610         name    serverlist_cliprect
611         parent  serverlist
612         flag    512
613         size    "940 600"
614         origin  "50 50"
615 }
616 {
617         type    ITEM_CUSTOM
618         name    serverlist_slist
619         parent  serverlist_cliprect
620         draw    slist_draw
621         init    slist_init
622         key             slist_key
623         refresh slist_refresh
624         flag    256 //FLAG_AUTOSETCLICK
625
626         font_size "11 11"
627
628         // this specifies the text bar drawing behavior
629         color   "1 1 1"
630         alpha   1
631         drawflag 0
632
633         //this specifies the selection bar drawing behavior
634         color_selected "1 0 0"
635         alpha_selected 0.2
636         drawflag_selected 0
637 }
638