Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 382 lines (352 sloc) 7.742 kb
862116d First commit (v0.1)
eraesr@gmail.com authored
1 #include "ui/menudef.h"
2 {
3
4 assetGlobalDef {
5 font "fonts/font" 16 // font
6 smallFont "fonts/smallfont" 12 // font
7 bigFont "fonts/bigfont" 20 // font
8 cursor "ui/assets/3_cursor3" // cursor
9 gradientBar "ui/assets/gradientbar2.tga" // gradient bar
10 itemFocusSound "sound/misc/menu2.wav" // sound for item getting focus (via keyboard or mouse )
11
12 fadeClamp 1.0 // sets the fadeup alpha
13 fadeCycle 1 // how often fade happens in milliseconds
14 fadeAmount 0.1 // amount to adjust alpha per cycle
15
16 shadowColor 0.1 0.1 0.1 0.25 // shadow color
17 }
18
19
20 \\ INGAME MENU \\
21
22 menuDef {
23 name "ingame"
24 visible 0
25 fullScreen 0
26 outOfBoundsClick // this closes the window if it gets a click out of the rectangle
27 rect 0 0 640 480
28 focusColor 1 .75 0 1
29 disableColor .5 .5 .5 1
30
31 itemDef {
32 name "ingameRect"
33 visible 1
34 rect 0 0 620 26
35 style 0
36 border 1
37 bordercolor .5 .5 .5 1
38 forecolor 1 1 1 1
39 backcolor 0 0 .75 .5
40 visible 1
41 decoration
42 }
43 itemdef
44 {
45 name about
46 text "About"
47 rect 5 0 53 30
48 type 1
49 style WINDOW_STYLE_FILLED
50 background "ui/assets/button_back.tga"
51 textalign 1
52 textalignx 27
53 textaligny 22
54 textscale .25
55 forecolor 1 1 1 1
56 backcolor .0 .17 .0 1
57 visible 1
58 action { open ingame_about }
59 mouseEnter { setitemcolor about backcolor .1 .37 .1 1 }
60 mouseExit { setitemcolor about backcolor .0 .17 .0 1 }
61 }
62 itemdef
63 {
64 name aboutframe
65 style 3
66 rect 0 0 58 32
67 background "ui/assets/ingameframea.tga"
68 visible 1
69 decoration
70 }
71
72 itemDef {
73 name join
74 text "Join"
75 type 1
76 style WINDOW_STYLE_FILLED
77 background "ui/assets/button_back.tga"
78 cvarTest "ui_singleplayeractive"
79 disableCvar { "1" }
80 rect 58 0 58 30
81 textalign 1
82 textalignx 29
83 textaligny 22
84 textscale .25
85 forecolor 1 1 1 1
86 backcolor 0 .17 0 1
87 visible 1
88 action { open ingame_join }
89 mouseEnter { setitemcolor join backcolor .1 .37 .1 1 }
90 mouseExit { setitemcolor join backcolor 0 .17 0 1 }
91 }
92
93 itemdef
94 {
95 name joinframe
96 style 3
97 rect 58 0 58 32
98 background "ui/assets/ingameframe.tga"
99 visible 1
100 decoration
101 }
102
103
104 itemDef {
105 name orders
106 text "Orders"
107 type 1
108 style WINDOW_STYLE_FILLED
109 background "ui/assets/button_back.tga"
110 rect 116 0 58 30
111 textalign 1
112 textalignx 29
113 textaligny 22
114 textscale .25
115 cvarTest "g_gametype"
116 disableCvar { "0" ; "1" ; "2" ; "3" ; "8" }
117 visible 1
118 forecolor 1 1 1 1
119 backcolor 0 .17 0 1
120 action { open ingame_orders }
121 mouseEnter { setitemcolor orders backcolor .1 .37 .1 1 }
122 mouseExit { setitemcolor orders backcolor 0 .17 0 1 }
123 }
124
125 itemdef
126 {
127 name ordersframe
128 style 3
129 rect 116 0 58 32
130 background "ui/assets/ingameframe.tga"
131 visible 1
132 decoration
133 }
134
135 itemDef {
136 name addBot
137 text "Add Bot"
138 type 1
139 style WINDOW_STYLE_FILLED
140 background "ui/assets/button_back.tga"
141 rect 174 0 58 30
142 textalign 1
143 textalignx 29
144 textaligny 22
145 textscale .25
146 cvarTest "ui_singleplayeractive"
147 disableCvar { "1" }
148
149 forecolor 1 1 1 1
150 backcolor 0 .17 0 1
151 visible 1
152 action { open ingame_addbot }
153 mouseEnter { setitemcolor addBot backcolor .1 .37 .1 1 }
154 mouseExit { setitemcolor addBot backcolor 0 .17 0 1 }
155 }
156 itemdef
157 {
158 name addBotframe
159 style 3
160 rect 174 0 58 32
161 background "ui/assets/ingameframe.tga"
162 visible 1
163 decoration
164 }
165
166 itemDef {
167 name player
168 text "Player"
169 type 1
170 style WINDOW_STYLE_FILLED
171 background "ui/assets/button_back.tga"
172 rect 232 0 58 30
173 textalign 1
174 textalignx 29
175 textaligny 22
176 textscale .25
177 forecolor 1 1 1 1
178 backcolor 0 .17 0 1
179 visible 1
180 action { open ingame_player }
181 mouseEnter { setitemcolor player backcolor .1 .37 .1 1 }
182 mouseExit { setitemcolor player backcolor 0 .17 0 1 }
183 }
184 itemdef
185 {
186 name playerframe
187 style 3
188 rect 232 0 58 32
189 textalign 1
190 background "ui/assets/ingameframe.tga"
191 visible 1
192 decoration
193 }
194
195 itemDef {
196 name controls
197 text "Controls"
198 type 1
199 style WINDOW_STYLE_FILLED
200 background "ui/assets/button_back.tga"
201 rect 290 0 58 30
202 textalign 1
203 textalignx 29
204 textaligny 22
205 textscale .25
206 forecolor 1 1 1 1
207 backcolor 0 .17 0 1
208 visible 1
209 action { open ingame_controls }
210 mouseEnter { setitemcolor controls backcolor .1 .37 .1 1 }
211 mouseExit { setitemcolor controls backcolor 0 .17 0 1 }
212 }
213
214 itemdef
215 {
216 name controlsframe
217 style 3
218 rect 290 0 58 32
219 textalign 1
220 background "ui/assets/ingameframe.tga"
221 visible 1
222 decoration
223 }
224
225 itemDef {
226 name options
227 text "Options"
228 type 1
229 style WINDOW_STYLE_FILLED
230 background "ui/assets/button_back.tga"
231 rect 348 0 58 30
232 textalign 1
233 textalignx 29
234 textaligny 22
235 textscale .25
236 forecolor 1 1 1 1
237 backcolor 0 .17 0 1
238 visible 1
239 action { open ingame_options }
240 mouseEnter { setitemcolor options backcolor .1 .37 .1 1 }
241 mouseExit { setitemcolor options backcolor 0 .17 0 1 }
242 }
243
244 itemdef
245 {
246 name optionsframe
247 style 3
248 rect 348 0 58 32
249 textalign 1
250 background "ui/assets/ingameframe.tga"
251 visible 1
252 decoration
253 }
254
255 itemDef {
256 name system
257 text "System"
258 type 1
259 style WINDOW_STYLE_FILLED
260 background "ui/assets/button_back.tga"
261 rect 406 0 58 30
262 textalign 1
263 textalignx 29
264 textaligny 22
265 textscale .25
266 forecolor 1 1 1 1
267 backcolor 0 .17 0 1
268 visible 1
269 action { open ingame_system }
270 mouseEnter { setitemcolor system backcolor .1 .37 .1 1 }
271 mouseExit { setitemcolor system backcolor 0 .17 0 1 }
272 }
273
274 itemdef
275 {
276 name systemframe
277 style 3
278 rect 406 0 58 32
279 textalign 1
280 background "ui/assets/ingameframe.tga"
281 visible 1
282 decoration
283 }
284
285 itemDef {
286 name vote
287 text "Vote"
288 type 1
289 style WINDOW_STYLE_FILLED
290 background "ui/assets/button_back.tga"
291 cvarTest "ui_singleplayeractive"
292 disableCvar { "1" }
293
294 rect 464 0 58 30
295 textalign 1
296 textalignx 29
297 textaligny 22
298 textscale .25
299 forecolor 1 1 1 1
300 backcolor 0 .17 0 1
301 visible 1
302 action { open ingame_vote }
303 mouseEnter { setitemcolor vote backcolor .1 .37 .1 1 }
304 mouseExit { setitemcolor vote backcolor 0 .17 0 1 }
305 }
306 itemdef
307 {
308 name voteframe
309 style 3
310 rect 464 0 58 32
311 textalign 1
312 background "ui/assets/ingameframe.tga"
313 visible 1
314 decoration
315 }
316
317 itemDef {
318 name callvote
319 text "CallVote"
320 type 1
321 style WINDOW_STYLE_FILLED
322 background "ui/assets/button_back.tga"
323 cvarTest "ui_singleplayeractive"
324 disableCvar { "1" }
325
326 rect 522 0 58 30
327 textalign 1
328 textalignx 29
329 textaligny 22
330 textscale .25
331 forecolor 1 1 1 1
332 backcolor 0 .17 0 1
333 visible 1
334 action { open ingame_callvote }
335 mouseEnter { setitemcolor callvote backcolor .1 .37 .1 1 }
336 mouseExit { setitemcolor callvote backcolor 0 .17 0 1 }
337 }
338 itemdef
339 {
340 name callvoteframe
341 style 3
342 rect 522 0 58 32
343 textalign 1
344 background "ui/assets/ingameframe.tga"
345 visible 1
346 decoration
347 }
348 itemDef {
349 name leave
350 text "Exit"
351 type 1
352 style WINDOW_STYLE_FILLED
353 background "ui/assets/button_back.tga"
354 rect 580 0 58 30
355 textalign 1
356 textalignx 29
357 textaligny 22
358 textscale .25
359 forecolor 1 1 1 1
360 backcolor 0 .17 0 1
361 visible 1
362 action { open ingame_leave }
363 mouseEnter { setitemcolor leave backcolor .1 .37 .1 1 }
364 mouseExit { setitemcolor leave backcolor 0 .17 0 1 }
365 }
366
367 itemdef
368 {
369 name leave
370 style 3
371 rect 580 0 58 32
372 textalign 1
373 background "ui/assets/ingameframe.tga"
374 visible 1
375 decoration
376 }
377
378
379
380 }
381
382 }
Something went wrong with that request. Please try again.