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