]> icculus.org git repositories - divverent/nexuiz.git/blob - menu/xplayer.menu
-Added support to some of Toddd's sounds.
[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 // multiplayer map frame
273 {
274         type            ITEM_WINDOW
275         name            multiplayer_map
276         parent          multiplayer
277         clip_pos        "0 0"
278         clip_size       "270 475"
279         reinit          nex_xp_enummaps
280 }
281 // <<
282 {
283         type            ITEM_TEXTBUTTON
284         name            multiplayer_map_prev
285         parent          multiplayer_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            multiplayer_map_name
295         parent          multiplayer_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            multiplayer_map_next
308         parent          multiplayer_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            multiplayer_map_picture
318         parent          multiplayer_map
319         pos             "0 11"
320         size            "270 232"
321         picture         "gfx/m_top_singleplayer"
322 }       
323 // info box
324 {
325         type            ITEM_CUSTOM
326         name            multiplayer_map_info
327         parent          multiplayer_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 // multiplayer options frame
340 {
341         type            ITEM_WINDOW
342         name            multiplayer_opt
343         parent          multiplayer
344         clip_pos        "0 0 0"
345         clip_size       "350 475"
346 }
347
348
349 // multiplayer server list
350 {
351         type    ITEM_WINDOW
352         name    serverlist
353 }
354 // link the background_rect
355 {
356         type    ITEM_PICTURE
357         name    serverlist_background
358         picture "gfx/m_slist_bg"
359         parent  serverlist
360 }
361 // info text 1
362 {
363         type    ITEM_TEXT
364         name    serverlist_info1
365         parent  serverlist
366         text    "INFO TEXT 1"
367         pos             "0 20"
368         size    "1024 11"
369         font_size "11 11"
370         alignment 1
371         refresh slist_info1
372         flag    0
373 }
374 {
375         type    ITEM_TEXT
376         name    serverlist_info2
377         parent  serverlist
378         text    "INFO TEXT 2"
379         pos             "0 32"
380         font_size "11 11"
381         size    "1024 11"
382         alignment 1
383         refresh slist_info2
384         flag    0
385 }
386 // clip rect for the slist
387 {
388         type    ITEM_WINDOW
389         name    serverlist_cliprect
390         parent  serverlist
391         flag    512
392         size    "940 600"
393         origin  "50 50"
394 }
395 {
396         type    ITEM_CUSTOM
397         name    serverlist_slist
398         parent  serverlist_cliprect
399         draw    slist_draw
400         init    slist_init
401         key             slist_key
402         refresh slist_refresh
403         flag    256 //FLAG_AUTOSETCLICK
404
405         font_size "11 11"
406
407         // this specifies the text bar drawing behavior
408         color   "1 1 1"
409         alpha   1
410         drawflag 0
411
412         //this specifies the selection bar drawing behavior
413         color_selected "1 0 0"
414         alpha_selected 0.2
415         drawflag_selected 0
416 }
417