Debian Codegraph @

mp-pak0/ui/main.menu

raw
1 /*
2 ===========================================================================
3 Copyright (C) 2007 Open Arena Team
4
5 This file is part of Open Arena.
6
7 Open Arena is free software; you can redistribute it
8 and/or modify it under the terms of the GNU General Public License as
9 published by the Free Software Foundation; either version 2 of the License,
10 or (at your option) any later version.
11
12 Open Arena is distributed in the hope that it will be
13 useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
16
17 You should have received a copy of the GNU General Public License
18 along with Foobar; if not, write to the Free Software
19 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
20 ===========================================================================
21 */
22
23 #include "ui/menudef.h"
24
25 {
26 assetGlobalDef {
27 font "gfx/2d/bigchars" 16
28 smallFont "gfx/2d/bigchars" 12
29 bigFont "gfx/2d/bigchars" 20
30 cursor "ui/assets/cursor"
31 itemFocusSound MP_SND_HOVER
32 shadowColor 0.0 0.0 0.0 0.25
33 }
34
35
36
37
38
39 menuDef {
40 name "main"
41 background MP_BACKGROUND
42 fullScreen MENU_TRUE
43 rect 0 0 640 480
44 visible MENU_TRUE
45 focusColor MP_FOCUSCOLOR
46
47
48 onOpen {
49 setitemcolor fadebox backcolor 0 0 0 1 ;
50 playlooped "music/menu" ;
51 uiScript stopRefresh ;
52 }
53
54
55 itemDef {
56 name titleness
57 text MISSIONPACK_TITLE
58 style 0
59 type 0
60 textstyle 6
61 textscale 1
62 rect 0 65 1 1
63 textalign 0
64 textalignx 48
65 textaligny 90
66 forecolor MP_TITLECOLOR
67 visible 1
68 }
69
70 // The Bar of Buttons
71
72 itemDef {
73 name button2
74 text "New Game"
75 style 0
76 type 1
77 textstyle 3
78 textscale 0.3
79 rect 73 177 163 34
80 textalign 0
81 textalignx 5
82 textaligny 20
83 forecolor MP_TEXTCOLOR
84 visible 1
85 action
86 {
87 play MP_SND_SELECT;
88
89 }
90 }
91
92 itemDef {
93 name button3
94 text "Create Server"
95 style 0
96 type 1
97 textstyle 3
98 textscale 0.3
99 rect 73 209 163 34
100 textalign 0
101 textalignx 5
102 textaligny 20
103 forecolor MP_TEXTCOLOR
104 visible 1
105 action
106 {
107 play MP_SND_SELECT;
108 open createserver;
109 close menu;
110 }
111 }
112
113 itemDef {
114 name button4
115 text "Join Server"
116 style 0
117 type 1
118 textstyle 3
119 textscale 0.3
120 rect 73 241 163 34
121 textalign 0
122 textalignx 5
123 textaligny 20
124 forecolor MP_TEXTCOLOR
125 visible 1
126 action
127 {
128 play MP_SND_SELECT;
129 open joinserver;
130 close menu;
131 }
132 }
133
134 itemDef {
135 name button5
136 text "Configuration"
137 style 0
138 type 1
139 textstyle 3
140 textscale 0.3
141 rect 73 273 163 34
142 textalign 0
143 textalignx 5
144 textaligny 20
145 forecolor MP_TEXTCOLOR
146 visible 1
147 action
148 {
149 play MP_SND_SELECT;
150 open configuration;
151 close menu;
152 }
153 }
154
155 itemDef {
156 name button6
157 text "Player"
158 style 0
159 type 1
160 textstyle 3
161 textscale 0.3
162 rect 73 305 163 34
163 textalign 0
164 textalignx 5
165 textaligny 20
166 forecolor MP_TEXTCOLOR
167 visible 1
168 action
169 {
170 play MP_SND_SELECT;
171 open player;
172 close menu;
173 }
174 }
175 itemDef {
176 name button7
177 text "Custom game"
178 style 0
179 type 1
180 textstyle 3
181 textscale 0.3
182 rect 73 337 163 34
183 textalign 0
184 textalignx 5
185 textaligny 20
186 forecolor MP_TEXTCOLOR
187 visible 1
188 action
189 {
190 play MP_SND_SELECT;
191 }
192 }
193
194 itemDef {
195 name button8
196 text "Help"
197 style 0
198 type 1
199 textstyle 3
200 textscale 0.3
201 rect 73 369 163 34
202 textalign 0
203 textalignx 5
204 textaligny 20
205 forecolor MP_TEXTCOLOR
206 visible 1
207 action
208 {
209 play MP_SND_SELECT;
210 }
211 }
212
213 itemDef {
214 name button10
215 text "Quit"
216 style 0
217 type 1
218 textstyle 3
219 textscale 0.3
220 rect 73 433 163 34
221 textalign 0
222 textalignx 5
223 textaligny 20
224 forecolor MP_TEXTCOLOR
225 visible 1
226 action
227 {
228 play MP_SND_SELECT;
229 uiscript "quit";
230 }
231 }
232
233 itemDef {
234 name button9
235 text "Movies"
236 style 0
237 type 1
238 textstyle 3
239 textscale 0.3
240 rect 73 401 163 34
241 textalign 0
242 textalignx 5
243 textaligny 20
244 forecolor MP_TEXTCOLOR
245 visible 1
246 action
247 {
248 play MP_SND_SELECT;
249 }
250 }
251
252
253 itemDef {
254 name warning
255 text "WORK IN PROGRESS, lots of broken and missing menus; beware!"
256 style 0
257 type 1
258 textstyle 6
259 textscale .2
260 rect 0 0 32 12
261 textalign 3
262 textalignx 20
263 textaligny 32
264 forecolor 1 1 1 1
265 visible 1
266 }
267 }
268 }
269 }
270 }
271 }
272 }