]> icculus.org git repositories - divverent/nexuiz.git/blob - menu/xplayer.menu
-Added the second half of the Create Game menu.
[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 475"
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 232"
330         pos             "0 243"
331         size            "270 232"
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 // creategame options frame
340 {
341         type            ITEM_WINDOW
342         name            creategame_opt
343         parent          creategame
344         origin          "436 0" //270+175
345         clip_pos        "270 0" 
346         clip_size       "350 475"
347 }
348 //////
349 // Server Name
350 ////
351 // Text
352 {
353         type            ITEM_TEXTBUTTON
354         name            creategame_opt_server_name_text
355         parent          creategame_opt
356         text            "Server Name"
357         pos             "0 0 0"
358         origin          "0 0 0"
359         //font_size     "10 10 0"
360         alignment       16              // TEXT_ALIGN_RIGHTPOS
361         flag            256             // FLAG_AUTOSETCLICK
362         key             nex_redirect_key
363 }
364 // Editbox
365 {
366         type            ITEM_EDITBOX
367         name            creategame_opt_server_name_edit
368         parent          creategame_opt_server_name_text
369         //pos           "10 0 0"
370         pos             "10 0 0"
371         //font_size     "10 10 0"
372         flag            260             // FLAG_AUTOSETCLICK | FLAG_NOSELECT
373         text            "xxx-game (.)(.)" //please remove this somewhen - I dont have the power to ^_^
374         maxlen          15
375         refresh         nex_xp_hostname
376 }
377 //////
378 // Game Mode
379 ////
380 // Text
381 {
382         type    ITEM_TEXTBUTTON
383         name            creategame_opt_gamemode_text
384         parent          creategame_opt
385         text            "Game Mode"
386         pos             "0 15 0"
387         origin          "0 15 0"
388         //font_size     "10 10 0"
389         alignment       16              // TEXT_ALIGN_RIGHTPOS
390         flag            256             // FLAG_AUTOSETCLICK
391         key                     nex_redirect_key
392 }
393 // Switch
394 {
395         type    ITEM_TEXTSWITCH
396         name            creategame_opt_gamemode_switch
397         parent          creategame_opt_gamemode_text
398         //pos           "10 15 0"
399         pos             "10 0 0"
400         //font_size     "10 10 0"
401         flag            260             // FLAG_AUTOSETCLICK | FLAG_NOSELECT
402         text            "'Deathmatch' 'Instagib' 'DarkArena' 'HeadHunter' 'SlowMo' 'Speedy' 'GrapplingHook'"
403         value           0
404         switchchange    nex_xp_gamemode
405 }
406 // max frags
407 {
408         type            ITEM_TEXTBUTTON
409         name            creategame_opt_maxfrag_text
410         parent          creategame_opt
411         text            "Frag Limit"
412         pos             "0 30 0"
413         //font_size     "10 10 0"
414         alignment       16              // TEXT_ALIGN_RIGHTPOS
415         flag            256             // FLAG_AUTOSETCLICK
416         key             nex_redirect_key
417 }
418 // Switch
419 {
420         type            ITEM_EDITBOX
421         name            creategame_opt_maxfrag_switch
422         parent          creategame_opt_maxfrag_text
423         pos             "10 30 0"
424         //font_size     "10 10 0"
425         flag            260             // FLAG_AUTOSETCLICK | FLAG_NOSELECT
426         maxlen          3
427         text            "0"
428         refresh         nex_xp_maxfrags
429 }
430 // max time
431 {
432         type            ITEM_TEXTBUTTON
433         name            creategame_opt_maxtime_text
434         parent          creategame_opt
435         text            "Time Limit"
436         pos             "0 45 0"
437         //font_size     "10 10 0"
438         alignment       16              // TEXT_ALIGN_RIGHTPOS
439         flag            256             // FLAG_AUTOSETCLICK
440         key                     nex_redirect_key
441 }
442 // Switch
443 {
444         type            ITEM_EDITBOX
445         name            creategame_opt_maxtime_switch
446         parent          creategame_opt_maxtime_text
447         pos             "10 45 0"
448         //font_size     "10 10 0"
449         flag            260             // FLAG_AUTOSETCLICK | FLAG_NOSELECT
450         maxlen          3
451         text            "0"
452         refresh         nex_xp_maxtime
453 }
454 // max bots
455 {
456         type            ITEM_TEXTBUTTON
457         name            creategame_opt_maxbots_text
458         parent          creategame_opt
459         text            "Bot Count"
460         pos             "0 60 0"
461         //font_size     "10 10 0"
462         alignment       16              // TEXT_ALIGN_RIGHTPOS
463         flag            256             // FLAG_AUTOSETCLICK
464         key             nex_redirect_key
465 }
466 // Switch
467 {
468         type            ITEM_EDITBOX
469         name            creategame_opt_maxbots_switch
470         parent          creategame_opt_maxbots_text
471         pos             "10 60 0"
472         //font_size     "10 10 0"
473         flag            260             // FLAG_AUTOSETCLICK | FLAG_NOSELECT
474         maxlen          2
475         text            "0"
476         refresh         nex_xp_maxbots
477 }
478 //////
479 // Skill Level
480 ////
481 // Text
482 {
483         type            ITEM_TEXTBUTTON
484         name            creategame_opt_skilllevel_text
485         parent          creategame_opt
486         text            "Skill Level"
487         pos             "0 75 0"
488         //font_size     "10 10 0"
489         alignment       16              // TEXT_ALIGN_RIGHTPOS
490         flag            256             // FLAG_AUTOSETCLICK
491         key                     nex_redirect_key
492 }
493 // Switch
494 {
495         type            ITEM_TEXTSWITCH
496         name            creategame_opt_skilllevel_switch
497         parent          creategame_opt_skilllevel_text
498         pos             "10 75 0"
499         //font_size     "10 10 0"
500         flag            260             // FLAG_AUTOSETCLICK | FLAG_NOSELECT
501         text            "'N00b' 'Normal' 'Hard'"
502         value           1
503         switchchange    nex_xp_skilllevel
504         init            nex_xp_skilllevel
505 }
506 // max clients
507 {
508         type            ITEM_TEXTBUTTON
509         name            creategame_opt_maxclients_text
510         parent          creategame_opt
511         text            "Max Clients"
512         pos                     "0 90 0"
513         //font_size     "10 10 0"
514         alignment       16              // TEXT_ALIGN_RIGHTPOS
515         flag            256             // FLAG_AUTOSETCLICK
516         key                     nex_redirect_key
517 }
518 // Switch
519 {
520         type            ITEM_EDITBOX
521         name            creategame_opt_maxclients_switch
522         parent          creategame_opt_maxclients_text
523         pos                     "10 90 0"
524         //font_size     "10 10 0"
525         flag            260             // FLAG_AUTOSETCLICK | FLAG_NOSELECT
526         maxlen          2
527         text            "16"
528         refresh         nex_xp_maxclients
529 }
530 // start
531 {
532         type            ITEM_TEXTBUTTON
533         name            creategame_opt_start
534         parent          creategame_opt
535         pos             "0 115"
536         flag            256             // FLAG_AUTOSETCLICK
537         alignment       8
538         text            "Start Game"
539         action          nex_xp_start
540 }
541
542 // multiplayer server list
543 {
544         type    ITEM_WINDOW
545         name    serverlist
546 }
547 // link the background_rect
548 {
549         type    ITEM_PICTURE
550         name    serverlist_background
551         picture "gfx/m_slist_bg"
552         parent  serverlist
553 }
554 // info text 1
555 {
556         type    ITEM_TEXT
557         name    serverlist_info1
558         parent  serverlist
559         text    "INFO TEXT 1"
560         pos             "0 20"
561         size    "1024 11"
562         font_size "11 11"
563         alignment 1
564         refresh slist_info1
565         flag    0
566 }
567 {
568         type    ITEM_TEXT
569         name    serverlist_info2
570         parent  serverlist
571         text    "INFO TEXT 2"
572         pos             "0 32"
573         font_size "11 11"
574         size    "1024 11"
575         alignment 1
576         refresh slist_info2
577         flag    0
578 }
579 // clip rect for the slist
580 {
581         type    ITEM_WINDOW
582         name    serverlist_cliprect
583         parent  serverlist
584         flag    512
585         size    "940 600"
586         origin  "50 50"
587 }
588 {
589         type    ITEM_CUSTOM
590         name    serverlist_slist
591         parent  serverlist_cliprect
592         draw    slist_draw
593         init    slist_init
594         key             slist_key
595         refresh slist_refresh
596         flag    256 //FLAG_AUTOSETCLICK
597
598         font_size "11 11"
599
600         // this specifies the text bar drawing behavior
601         color   "1 1 1"
602         alpha   1
603         drawflag 0
604
605         //this specifies the selection bar drawing behavior
606         color_selected "1 0 0"
607         alpha_selected 0.2
608         drawflag_selected 0
609 }
610