]> icculus.org git repositories - divverent/nexuiz.git/blob - menu/xplayer.menu
Fixing the CVS:
[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 // singleplayer stuff
97 // singleplayer options
98
99 // max frags
100 {
101         type            ITEM_TEXTBUTTON
102         name            singleplayer_maxfrag_text
103         parent          singleplayer
104         text            "Frag Limit"
105         pos                     "0 0 0"
106         //font_size     "10 10 0"
107         alignment       16              // TEXT_ALIGN_RIGHTPOS
108         flag            256             // FLAG_AUTOSETCLICK
109         key                     nex_redirect_key
110 }
111 // Switch
112 {
113         type            ITEM_EDITBOX
114         name            singleplayer_maxfrag_switch
115         parent          singleplayer_maxfrag_text
116         pos                     "10 0 0"
117         //font_size     "10 10 0"
118         flag            260             // FLAG_AUTOSETCLICK | FLAG_NOSELECT
119         maxlen          3
120         text            "0"
121         refresh         nex_xp_maxfrags
122 }
123 // max time
124 {
125         type            ITEM_TEXTBUTTON
126         name            singleplayer_maxtime_text
127         parent          singleplayer
128         text            "Time Limit"
129         pos                     "0 15 0"
130         //font_size     "10 10 0"
131         alignment       16              // TEXT_ALIGN_RIGHTPOS
132         flag            256             // FLAG_AUTOSETCLICK
133         key                     nex_redirect_key
134 }
135 // Switch
136 {
137         type            ITEM_EDITBOX
138         name            singleplayer_maxtime_switch
139         parent          singleplayer_maxtime_text
140         pos                     "10 15 0"
141         //font_size     "10 10 0"
142         flag            260             // FLAG_AUTOSETCLICK | FLAG_NOSELECT
143         maxlen          3
144         text            "0"
145         refresh         nex_xp_maxtime
146 }
147 // max bots
148 {
149         type            ITEM_TEXTBUTTON
150         name            singleplayer_maxbots_text
151         parent          singleplayer
152         text            "Max Bots"
153         pos                     "0 30 0"
154         //font_size     "10 10 0"
155         alignment       16              // TEXT_ALIGN_RIGHTPOS
156         flag            256             // FLAG_AUTOSETCLICK
157         key                     nex_redirect_key
158 }
159 // Switch
160 {
161         type            ITEM_EDITBOX
162         name            singleplayer_maxbots_switch
163         parent          singleplayer_maxbots_text
164         pos                     "10 30 0"
165         //font_size     "10 10 0"
166         flag            260             // FLAG_AUTOSETCLICK | FLAG_NOSELECT
167         maxlen          2
168         text            "4"
169         refresh         nex_xp_maxbots
170 }
171 // map selection
172 {
173         type    ITEM_REFERENCE
174         name    singleplayer_mapselection
175         parent  singleplayer
176         link    mapselection
177         origin  "-300 265"
178         draw    nex_linkrelhack
179 }
180 // start
181 {
182         type            ITEM_TEXTBUTTON
183         name            singleplayer_start
184         parent          singleplayer
185         pos                     "0 60"
186         flag            256             // FLAG_AUTOSETCLICK
187         alignment       8
188         text            "Start Game"
189         action          nex_sp_start
190 }
191 //////////////////////
192 // multiplayer stuff
193 // multiplayer selection
194 {
195         type    ITEM_TEXTBUTTON
196         name    multiplayer_create
197         parent  multiplayer
198         text    "Create Server"
199         pos             "0 0"
200         flag    256
201         action  nex_goto_createserver
202 }
203 {
204         type    ITEM_TEXTBUTTON
205         name    multiplayer_join
206         parent  multiplayer
207         text    "Join a Game"
208         pos             "150 0"
209         flag    256
210         action  nex_display_serverlist
211 }
212 // multiplayer options (spawn server)
213 {
214         type    ITEM_WINDOW
215         name    multiplayer_frame
216         parent  multiplayer
217         origin  "150 250"
218         order   1
219 }
220 // map selection
221 {
222         type    ITEM_REFERENCE
223         name    multiplayer_mapselection
224         parent  multiplayer_frame
225         link    mapselection
226         origin  "-300 -225"
227         draw    nex_linkrelhack
228 }
229 // game name
230 {
231         type            ITEM_TEXTBUTTON
232         name            multiplayer_gamename_text
233         parent          multiplayer_frame
234         text            "Server Name"
235         pos                     "0 0 0"
236         //font_size     "10 10 0"
237         alignment       16              // TEXT_ALIGN_RIGHTPOS
238         flag            256             // FLAG_AUTOSETCLICK
239         key                     nex_redirect_key
240 }
241 // Switch
242 {
243         type            ITEM_EDITBOX
244         name            multiplayer_gamename_switch
245         parent          multiplayer_gamename_text
246         pos                     "10 0 0"
247         //font_size     "10 10 0"
248         flag            260             // FLAG_AUTOSETCLICK | FLAG_NOSELECT
249         text            "xxx-game (.)(.)"
250         maxlen          -1
251         refresh         nex_mp_hostname
252 }
253 // max frags
254 {
255         type            ITEM_TEXTBUTTON
256         name            multiplayer_maxfrag_text
257         parent          multiplayer_frame
258         text            "Frag Limit"
259         pos                     "0 15 0"
260         //font_size     "10 10 0"
261         alignment       16              // TEXT_ALIGN_RIGHTPOS
262         flag            256             // FLAG_AUTOSETCLICK
263         key                     nex_redirect_key
264 }
265 // Switch
266 {
267         type            ITEM_EDITBOX
268         name            multiplayer_maxfrag_switch
269         parent          multiplayer_maxfrag_text
270         pos                     "10 15 0"
271         //font_size     "10 10 0"
272         flag            260             // FLAG_AUTOSETCLICK | FLAG_NOSELECT
273         maxlen          3
274         text            "0"
275         refresh         nex_xp_maxfrags
276 }
277 // max time
278 {
279         type            ITEM_TEXTBUTTON
280         name            multiplayer_maxtime_text
281         parent          multiplayer_frame
282         text            "Time Limit"
283         pos                     "0 30 0"
284         //font_size     "10 10 0"
285         alignment       16              // TEXT_ALIGN_RIGHTPOS
286         flag            256             // FLAG_AUTOSETCLICK
287         key                     nex_redirect_key
288 }
289 // Switch
290 {
291         type            ITEM_EDITBOX
292         name            multiplayer_maxtime_switch
293         parent          multiplayer_maxtime_text
294         pos                     "10 30 0"
295         //font_size     "10 10 0"
296         flag            260             // FLAG_AUTOSETCLICK | FLAG_NOSELECT
297         maxlen          3
298         text            "0"
299         refresh         nex_xp_maxtime
300 }
301 // max clients
302 {
303         type            ITEM_TEXTBUTTON
304         name            multiplayer_maxclients_text
305         parent          multiplayer_frame
306         text            "Max Clients"
307         pos                     "0 45 0"
308         //font_size     "10 10 0"
309         alignment       16              // TEXT_ALIGN_RIGHTPOS
310         flag            256             // FLAG_AUTOSETCLICK
311         key                     nex_redirect_key
312 }
313 // Switch
314 {
315         type            ITEM_EDITBOX
316         name            multiplayer_maxclients_switch
317         parent          multiplayer_maxclients_text
318         pos                     "10 45 0"
319         //font_size     "10 10 0"
320         flag            260             // FLAG_AUTOSETCLICK | FLAG_NOSELECT
321         maxlen          2
322         text            "16"
323         refresh         nex_mp_maxclients
324 }
325 // max bots
326 {
327         type            ITEM_TEXTBUTTON
328         name            multiplayer_maxbots_text
329         parent          multiplayer_frame
330         text            "Max Bots"
331         pos                     "0 60 0"
332         //font_size     "10 10 0"
333         alignment       16              // TEXT_ALIGN_RIGHTPOS
334         flag            256             // FLAG_AUTOSETCLICK
335         key                     nex_redirect_key
336 }
337 // Switch
338 {
339         type            ITEM_EDITBOX
340         name            multiplayer_maxbots_switch
341         parent          multiplayer_maxbots_text
342         pos                     "10 60 0"
343         //font_size     "10 10 0"
344         flag            260             // FLAG_AUTOSETCLICK | FLAG_NOSELECT
345         maxlen          2
346         text            "0"
347         refresh         nex_xp_maxbots
348 }
349 //////
350 // Public Server
351 ////
352 // Text
353 {
354         type            ITEM_TEXTBUTTON
355         name            multiplayer_publicserv_text
356         parent          multiplayer_frame
357         text            "Public Server"
358         pos                     "0 75 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 // Switch
365 {
366         type            ITEM_TEXTSWITCH
367         name            multiplayer_publicserv_switch
368         parent          multiplayer_publicserv_text
369         pos                     "10 75 0"
370         //font_size     "10 10 0"
371         flag            260             // FLAG_AUTOSETCLICK | FLAG_NOSELECT
372         text            "'No''Yes'"
373         value           1
374         switchchange nex_mp_publicserv
375 }
376 // start
377 {
378         type            ITEM_TEXTBUTTON
379         name            multiplayer_start
380         parent          multiplayer_frame
381         pos                     "0 105"
382         flag            256             // FLAG_AUTOSETCLICK
383         alignment       8
384         text            "Start Game"
385         action          nex_mp_start
386 }
387 // multiplayer server list
388 {
389         type    ITEM_WINDOW
390         name    serverlist
391 }
392 // link the background_rect
393 {
394         type    ITEM_PICTURE
395         name    serverlist_background
396         picture "gfx/m_slist_bg"
397         parent  serverlist
398 }
399 // info text 1
400 {
401         type    ITEM_TEXT
402         name    serverlist_info1
403         parent  serverlist
404         text    "INFO TEXT 1"
405         pos             "0 20"
406         size    "1024 11"
407         font_size "11 11"
408         alignment 1
409         refresh slist_info1
410         flag    0
411 }
412 {
413         type    ITEM_TEXT
414         name    serverlist_info2
415         parent  serverlist
416         text    "INFO TEXT 2"
417         pos             "0 32"
418         font_size "11 11"
419         size    "1024 11"
420         alignment 1
421         refresh slist_info2
422         flag    0
423 }
424 // clip rect for the slist
425 {
426         type    ITEM_WINDOW
427         name    serverlist_cliprect
428         parent  serverlist
429         flag    512
430         size    "940 600"
431         origin  "50 50"
432 }
433 {
434         type    ITEM_CUSTOM
435         name    serverlist_slist
436         parent  serverlist_cliprect
437         draw    slist_draw
438         init    slist_init
439         key             slist_key
440         refresh slist_refresh
441         flag    256 //FLAG_AUTOSETCLICK
442
443         font_size "11 11"
444
445         // this specifies the text bar drawing behavior
446         color   "1 1 1"
447         alpha   1
448         drawflag 0
449
450         //this specifies the selection bar drawing behavior
451         color_selected "1 0 0"
452         alpha_selected 0.2
453         drawflag_selected 0
454 }
455