2002-07-24 15:30:51 +00:00
|
|
|
#include "ui/menudef.h"
|
2010-08-13 14:57:27 +00:00
|
|
|
#define FADEIN_TIME 125
|
|
|
|
#define ANGLES -4 -94
|
|
|
|
|
2011-03-10 09:15:56 +00:00
|
|
|
#define COUNTERS_ALPHA .6
|
|
|
|
#define COUNTERS_COLOR forecolor 0 0 .1 COUNTERS_ALPHA
|
|
|
|
|
2010-08-13 14:57:27 +00:00
|
|
|
{
|
|
|
|
menuDef {
|
|
|
|
name "ingame_join"
|
|
|
|
visible 0
|
|
|
|
fullscreen 0
|
|
|
|
rect 40 32 232 272
|
|
|
|
anglevectors ANGLES
|
|
|
|
focusColor RQ3_MAIN_FOCUSCOLOR
|
|
|
|
popup
|
|
|
|
style WINDOW_STYLE_EMPTY
|
|
|
|
onOpen {
|
|
|
|
play "sound/ui/whoosh3.wav" ;
|
2011-03-10 09:15:56 +00:00
|
|
|
uiScript "updateJoinTeamNames" ;
|
|
|
|
ALPHA_FADE_FORE(window, 1) ;
|
|
|
|
ALPHA_FADE_FORE(counters, COUNTERS_ALPHA) ;
|
2010-08-13 14:57:27 +00:00
|
|
|
}
|
2011-03-10 09:15:56 +00:00
|
|
|
onESC { close _self }
|
|
|
|
onClose { play "sound/ui/whoosh3.wav" ; open _prev }
|
|
|
|
//onESC { play "sound/ui/whoosh3.wav" }
|
|
|
|
onOOBClick { close _self }
|
2010-08-13 14:57:27 +00:00
|
|
|
|
|
|
|
itemDef {
|
|
|
|
renderpoint
|
|
|
|
name "paper"
|
|
|
|
menuAnchor
|
|
|
|
group window
|
|
|
|
style WINDOW_STYLE_SHADER
|
|
|
|
background UI_ASSETS"/paper_1"
|
|
|
|
//forecolor 1 1 .92 1
|
|
|
|
forecolor .92 .97 1 1
|
|
|
|
rect -4 -12 192 256
|
|
|
|
anglevectors ANGLES
|
|
|
|
visible 1
|
|
|
|
decoration
|
|
|
|
}
|
|
|
|
|
|
|
|
// TITLE //
|
|
|
|
|
|
|
|
itemDef {
|
|
|
|
renderpoint
|
|
|
|
name "title"
|
|
|
|
text "Join team:"
|
2011-03-10 09:15:56 +00:00
|
|
|
group window
|
2010-08-13 14:57:27 +00:00
|
|
|
forecolor .6 .0 .0 1
|
|
|
|
//forecolor .0 .0 .1 1
|
|
|
|
style WINDOW_STYLE_EMPTY
|
|
|
|
textalign ITEM_ALIGN_LEFT
|
|
|
|
textalignx 0
|
|
|
|
textaligny 12
|
|
|
|
textscale RQ3_MAIN_TEXTSIZE
|
|
|
|
alignrect paper ITEM_ALIGN_LEFT 28 36 240 36
|
|
|
|
visible 1
|
|
|
|
autowrapped
|
|
|
|
decoration
|
|
|
|
}
|
|
|
|
|
|
|
|
// BUTTONS //
|
|
|
|
|
|
|
|
// Team 1 //
|
|
|
|
|
|
|
|
itemDef {
|
|
|
|
name team
|
|
|
|
text "^_1^_."
|
2011-03-10 09:15:56 +00:00
|
|
|
group window
|
2010-08-13 14:57:27 +00:00
|
|
|
ownerDraw UI_RQ3_JOINTEAM1
|
|
|
|
shortcutKey "1"
|
|
|
|
alignrect title ITEM_ALIGN_LEFT 0 32 128 14
|
|
|
|
style WINDOW_STYLE_EMPTY
|
|
|
|
textalign ITEM_ALIGN_LEFT
|
|
|
|
textalignx 8
|
|
|
|
textaligny 12
|
|
|
|
textscale .225
|
|
|
|
forecolor 0 0 .1 1
|
|
|
|
visible 1
|
|
|
|
/*
|
|
|
|
style WINDOW_STYLE_FILLED
|
|
|
|
backcolor 0 0 0 .6
|
|
|
|
*/
|
2011-03-10 09:15:56 +00:00
|
|
|
action { play "sound/ui/whoosh3.wav" ; exec "cmd team red" ; uiScript "weapAfterJoin" ; close _self }
|
2010-08-13 14:57:27 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
itemDef {
|
|
|
|
name team1
|
|
|
|
text ""
|
2011-03-10 09:15:56 +00:00
|
|
|
group counters
|
2010-08-13 14:57:27 +00:00
|
|
|
cvar "ui_RQ3_teamCount1"
|
|
|
|
type ITEM_TYPE_NUMERICFIELD
|
|
|
|
style WINDOW_STYLE_EMPTY
|
|
|
|
alignrect title ITEM_ALIGN_LEFT 104 32 32 14
|
|
|
|
textalign ITEM_ALIGN_LEFT
|
|
|
|
textalignx 8
|
|
|
|
textaligny 12
|
|
|
|
textscale .225
|
2011-03-10 09:15:56 +00:00
|
|
|
COUNTERS_COLOR
|
2010-08-13 14:57:27 +00:00
|
|
|
visible 1
|
|
|
|
decoration
|
|
|
|
/*
|
|
|
|
style WINDOW_STYLE_FILLED
|
|
|
|
backcolor 0 0 0 .6
|
|
|
|
*/
|
|
|
|
}
|
|
|
|
|
|
|
|
// Team 2 //
|
|
|
|
|
|
|
|
itemDef {
|
|
|
|
name team
|
|
|
|
text "^_2^_."
|
2011-03-10 09:15:56 +00:00
|
|
|
group window
|
2010-08-13 14:57:27 +00:00
|
|
|
ownerDraw UI_RQ3_JOINTEAM2
|
|
|
|
shortcutKey "2"
|
|
|
|
alignrect title ITEM_ALIGN_LEFT 0 48 128 14
|
|
|
|
style WINDOW_STYLE_EMPTY
|
|
|
|
textalign ITEM_ALIGN_LEFT
|
|
|
|
textalignx 8
|
|
|
|
textaligny 12
|
|
|
|
textscale .225
|
|
|
|
forecolor 0 0 .1 1
|
|
|
|
visible 1
|
|
|
|
/*
|
|
|
|
style WINDOW_STYLE_FILLED
|
|
|
|
backcolor 0 0 0 .6
|
|
|
|
*/
|
2011-03-10 09:15:56 +00:00
|
|
|
action { play "sound/ui/whoosh3.wav" ; exec "cmd team blue" ; uiScript "weapAfterJoin" ; close _self }
|
2010-08-13 14:57:27 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
itemDef {
|
|
|
|
name team2
|
|
|
|
text ""
|
2011-03-10 09:15:56 +00:00
|
|
|
group counters
|
2010-08-13 14:57:27 +00:00
|
|
|
cvar "ui_RQ3_teamCount2"
|
|
|
|
type ITEM_TYPE_NUMERICFIELD
|
|
|
|
style WINDOW_STYLE_EMPTY
|
|
|
|
alignrect title ITEM_ALIGN_LEFT 104 48 32 14
|
|
|
|
textalign ITEM_ALIGN_LEFT
|
|
|
|
textalignx 8
|
|
|
|
textaligny 12
|
|
|
|
textscale .225
|
2011-03-10 09:15:56 +00:00
|
|
|
COUNTERS_COLOR
|
2010-08-13 14:57:27 +00:00
|
|
|
visible 1
|
|
|
|
decoration
|
|
|
|
/*
|
|
|
|
style WINDOW_STYLE_FILLED
|
|
|
|
backcolor 0 0 0 .6
|
|
|
|
*/
|
|
|
|
}
|
|
|
|
|
|
|
|
// Auto Team //
|
|
|
|
|
|
|
|
itemDef {
|
|
|
|
name team
|
|
|
|
text "^_A^_uto-assign"
|
2011-03-10 09:15:56 +00:00
|
|
|
group window
|
2010-08-13 14:57:27 +00:00
|
|
|
shortcutKey "A"
|
|
|
|
type ITEM_TYPE_BUTTON
|
|
|
|
style WINDOW_STYLE_EMPTY
|
|
|
|
textstyle ITEM_TEXTSTYLE_NORMAL
|
|
|
|
alignrect title ITEM_ALIGN_LEFT 0 64 128 14
|
|
|
|
textalign ITEM_ALIGN_LEFT
|
|
|
|
textalignx 8
|
|
|
|
textaligny 12
|
|
|
|
textscale .225
|
|
|
|
forecolor 0 0 .1 1
|
|
|
|
visible 1
|
2011-03-10 09:15:56 +00:00
|
|
|
action { play "sound/ui/whoosh3.wav" ; exec "cmd team auto" ; uiScript "weapAfterJoin" ; close _self }
|
2010-08-13 14:57:27 +00:00
|
|
|
/*
|
|
|
|
style WINDOW_STYLE_FILLED
|
|
|
|
backcolor 0 0 0 .6
|
|
|
|
*/
|
|
|
|
}
|
|
|
|
|
|
|
|
itemDef {
|
|
|
|
name team
|
|
|
|
text "^_S^_pectators"
|
2011-03-10 09:15:56 +00:00
|
|
|
group window
|
2010-08-13 14:57:27 +00:00
|
|
|
shortcutKey "S"
|
|
|
|
type ITEM_TYPE_BUTTON
|
|
|
|
style WINDOW_STYLE_EMPTY
|
|
|
|
textstyle ITEM_TEXTSTYLE_NORMAL
|
|
|
|
alignrect title ITEM_ALIGN_LEFT 0 96 128 14
|
|
|
|
textalign ITEM_ALIGN_LEFT
|
|
|
|
textalignx 8
|
|
|
|
textaligny 12
|
|
|
|
textscale .225
|
|
|
|
forecolor 0 0 .1 1
|
|
|
|
visible 1
|
2011-03-10 09:15:56 +00:00
|
|
|
action { play "sound/ui/whoosh3.wav" ; exec "cmd team s" ; close _self }
|
2010-08-13 14:57:27 +00:00
|
|
|
/*
|
|
|
|
style WINDOW_STYLE_FILLED
|
|
|
|
backcolor 0 0 0 .6
|
|
|
|
*/
|
|
|
|
}
|
|
|
|
|
|
|
|
itemDef {
|
|
|
|
name team3
|
|
|
|
text ""
|
2011-03-10 09:15:56 +00:00
|
|
|
group counters
|
2010-08-13 14:57:27 +00:00
|
|
|
cvar "ui_RQ3_numSpectators"
|
|
|
|
type ITEM_TYPE_NUMERICFIELD
|
|
|
|
style WINDOW_STYLE_EMPTY
|
|
|
|
alignrect title ITEM_ALIGN_LEFT 104 96 32 14
|
|
|
|
textalign ITEM_ALIGN_LEFT
|
|
|
|
textalignx 8
|
|
|
|
textaligny 12
|
|
|
|
textscale .225
|
2011-03-10 09:15:56 +00:00
|
|
|
COUNTERS_COLOR
|
2010-08-13 14:57:27 +00:00
|
|
|
visible 1
|
|
|
|
decoration
|
|
|
|
/*
|
|
|
|
style WINDOW_STYLE_FILLED
|
|
|
|
backcolor 0 0 0 .6
|
|
|
|
*/
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|