#include "ui/menudef.h" #define FADEIN_TIME 125 #define ANGLES -4 -94 #define COUNTERS_ALPHA .6 #define COUNTERS_COLOR forecolor 0 0 .1 COUNTERS_ALPHA { 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" ; uiScript "updateJoinTeamNames" ; ALPHA_FADE_FORE(window, 1) ; ALPHA_FADE_FORE(counters, COUNTERS_ALPHA) ; } onESC { close _self } onClose { play "sound/ui/whoosh3.wav" ; open _prev } //onESC { play "sound/ui/whoosh3.wav" } onOOBClick { close _self } 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:" group window 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^_." group window 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 */ action { play "sound/ui/whoosh3.wav" ; exec "cmd team red" ; uiScript "weapAfterJoin" ; close _self } } itemDef { name team1 text "" group counters 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 COUNTERS_COLOR visible 1 decoration /* style WINDOW_STYLE_FILLED backcolor 0 0 0 .6 */ } // Team 2 // itemDef { name team text "^_2^_." group window 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 */ action { play "sound/ui/whoosh3.wav" ; exec "cmd team blue" ; uiScript "weapAfterJoin" ; close _self } } itemDef { name team2 text "" group counters 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 COUNTERS_COLOR visible 1 decoration /* style WINDOW_STYLE_FILLED backcolor 0 0 0 .6 */ } // Auto Team // itemDef { name team text "^_A^_uto-assign" group window 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 action { play "sound/ui/whoosh3.wav" ; exec "cmd team auto" ; uiScript "weapAfterJoin" ; close _self } /* style WINDOW_STYLE_FILLED backcolor 0 0 0 .6 */ } itemDef { name team text "^_S^_pectators" group window 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 action { play "sound/ui/whoosh3.wav" ; exec "cmd team s" ; close _self } /* style WINDOW_STYLE_FILLED backcolor 0 0 0 .6 */ } itemDef { name team3 text "" group counters 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 COUNTERS_COLOR visible 1 decoration /* style WINDOW_STYLE_FILLED backcolor 0 0 0 .6 */ } } }