Debian Codegraph @

mp-pak0/ui/ingame.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 Open Arena; 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 "ui/assets/hover.wav"
32 shadowColor 0.0 0.0 0.0 0.25
33 }
34
35
36
37
38 menuDef {
39 name "ingame"
40 background "ui/assets/ingame"
41 fullScreen 0
42 rect 0 0 640 480
43 visible MENU_TRUE
44 focusColor MP_FOCUSCOLOR
45 onOpen {
46 setitemcolor fadebox backcolor 0 0 0 1 ;
47 uiScript stopRefresh ;
48 }
49
50 itemDef {
51 name titleness
52 text "Missionpack"
53 style 0
54 type 0
55 textstyle 6
56 textscale .5
57 rect 0 15 1 1
58 textalign 0
59 textalignx 48
60 textaligny 90
61 forecolor MP_TITLECOLOR
62 visible 1
63 }
64
65 // The Bar of Buttons
66
67 itemDef {
68 name button2
69 text "Back to Game"
70 style 0
71 type 1
72 textstyle 3
73 textscale 0.3
74 rect 73 110 163 34
75 textalign 0
76 textalignx 5
77 textaligny 20
78 forecolor MP_TEXTCOLOR
79 visible 1
80 action {
81 play "ui/assets/select.wav";
82 close ingame;
83 }
84 }
85
86 itemDef {
87 name button3
88 text "Disconnect"
89 style 0
90 type 1
91 textstyle 3
92 textscale 0.3
93 rect 73 142 163 34
94 textalign 0
95 textalignx 5
96 textaligny 20
97 forecolor MP_TEXTCOLOR
98 visible 1
99 action {
100 play "ui/assets/select.wav";
101 close ingame;
102 exec "disconnect";
103 }
104 }
105
106 itemDef {
107 name button4
108 text "Join Server"
109 style 0
110 type 1
111 textstyle 3
112 textscale 0.3
113 rect 73 174 163 34
114 textalign 0
115 textalignx 5
116 textaligny 20
117 forecolor MP_TEXTCOLOR
118 visible 1
119 action {
120 play "ui/assets/select.wav";
121 open ingame_joinserver;
122 close ingame;
123 }
124 }
125
126 itemDef {
127 name button5
128 text "Add Bot"
129 style 0
130 type 1
131 textstyle 3
132 textscale 0.3
133 rect 73 206 163 34
134 textalign 0
135 textalignx 5
136 textaligny 20
137 forecolor MP_TEXTCOLOR
138 visible 1
139 action {
140 play "ui/assets/select.wav";
141 open ingame_addbot;
142 close ingame;
143 }
144 }
145
146 /*
147 itemDef {
148 name button6
149 text "Configuration"
150 style 0
151 type 1
152 textstyle 3
153 textscale 0.3
154 rect 73 238 163 34
155 textalign 0
156 textalignx 5
157 textaligny 20
158 forecolor MP_TEXTCOLOR
159 visible 1
160 action {
161 play "ui/assets/select.wav";
162 open ingame_configuration;
163 close ingame;
164 }
165 }
166
167 itemDef {
168 name button7
169 text "Player"
170 style 0
171 type 1
172 textstyle 3
173 textscale 0.3
174 rect 73 270 163 34
175 textalign 0
176 textalignx 5
177 textaligny 20
178 forecolor MP_TEXTCOLOR
179 visible 1
180 action {
181 play "ui/assets/select.wav";
182 open ingame_player;
183 close ingame;
184 }
185 }
186
187 itemDef {
188 name button8
189 text "Call Vote"
190 style 0
191 type 1
192 textstyle 3
193 textscale 0.3
194 rect 73 302 163 34
195 textalign 0
196 textalignx 5
197 textaligny 20
198 forecolor MP_TEXTCOLOR
199 visible 1
200 action {
201 play "ui/assets/select.wav";
202
203 }
204 }
205
206 itemDef {
207 name button9
208 text "Help"
209 style 0
210 type 1
211 textstyle 3
212 textscale 0.3
213 rect 73 334 163 34
214 textalign 0
215 textalignx 5
216 textaligny 20
217 forecolor MP_TEXTCOLOR
218 visible 1
219 action {
220 play "ui/assets/select.wav";
221 }
222 }
223 */
224 itemDef {
225 name button11
226 text "Quit"
227 style 0
228 type 1
229 textstyle 3
230 textscale 0.3
231 rect 73 366 163 34
232 textalign 0
233 textalignx 5
234 textaligny 20
235 forecolor MP_TEXTCOLOR
236 visible 1
237 action {
238 play "ui/assets/select.wav";
239 uiscript "quit";
240 }
241 }
242
243 itemDef {
244 name warning
245 text "Menus are missing and broken! Work in progress! :("
246 style 0
247 type 1
248 textstyle 6
249 textscale .2
250 rect 0 0 32 12
251 textalign 3
252 textalignx 20
253 textaligny 32
254 forecolor 1 1 1 1
255 visible 1
256 }
257 }
258 }
259 }