zb-menus/ui_mp/pc_join_unranked.menu
2025-01-09 11:51:53 +01:00

912 lines
34 KiB
Plaintext

{
menuDef
{
name "pc_join_unranked"
fullscreen 1
rect 0 0 640 480 0 0
focuscolor 1 1 1 1
soundLoop "music_mainmenu_mp"
fadeClamp 1
fadeCycle 1
fadeAmount 0.1
onOpen
{
exec "selectStringTableEntryInDvar mp/didyouknow.csv 0 didyouknow";
uiScript LoadArenas;
uiScript UpdateFilter;
uiScript RefreshServers;
setFocus serverlist;
}
onESC
{
close self;
}
execKeyInt 13
{
play mouse_click;
uiScript JoinServer;
}
execKeyInt 171
{
play mouse_click;
uiScript RefreshServers;
}
itemDef
{
rect -427 -240 854 480 2 2
style 3
decoration
visible when(dvarbool(cl_ingame) || dvarbool(sv_running));
textscale 0.55
forecolor 0 0 0 0.4
background "white"
}
itemDef
{
rect 0 0 640 480 4 4
style 3
decoration
visible when(dvarstring(fs_game) == "" && !(dvarbool(cl_ingame) || dvarbool(sv_running)));
textscale 0.55
background "mw2_main_background"
}
itemDef
{
rect 0 0 1708 480 0 0
style 3
decoration
visible when(!(dvarbool(cl_ingame) || dvarbool(sv_running)));
textscale 0.55
forecolor 1 1 1 0.5
background "mw2_main_cloud_overlay"
exp rect x (0 - 107) - ((float(milliseconds() % 60000) / 60000) * (854));
}
itemDef
{
rect 0 0 -1708 -480 0 0
style 3
decoration
visible when(!(dvarbool(cl_ingame) || dvarbool(sv_running)));
textscale 0.55
forecolor 1 1 1 0.5
background "mw2_main_cloud_overlay"
exp rect x (0 - 107 + 854) + ((float(milliseconds() % 50000) / 50000) * (854));
}
itemDef
{
rect 0 0 640 480 4 4
style 3
decoration
visible when(!(dvarbool(cl_ingame) || dvarbool(sv_running)));
textscale 0.55
forecolor 1 1 1 0.523696
background "mockup_bg_glow"
exp forecolor a ((sin(milliseconds() / 1500) + 1) * 0.25) + 0.25;
}
itemDef
{
rect 0 0 640 480 4 4
style 3
decoration
visible when(!(dvarbool(cl_ingame) || dvarbool(sv_running)));
textscale 0.55
forecolor 1 1 1 0.476023
background "mockup_bg_glow"
exp forecolor a ((sin(milliseconds() / 480) + 1) * 0.25) + 0.25;
}
itemDef
{
name "sourcefield"
rect 100 -33 144 18 1 1
style 1
type 8
visible 1
ownerdraw 220
textalignx 10
textaligny 16
textscale 0.3
textfont 3
backcolor 0.6 0.55 0.55 0.2
background "menu_setting_selection_bar"
onFocus
{
play mouse_over;
setItemColor self backColor 0 0 0 1;
}
leaveFocus
{
setItemColor self backColor "0.6" "0.55" "0.55" "0.2";
}
action
{
play mouse_click;
}
}
itemDef
{
name "gametype"
text "@MENU_GAME_TYPE"
rect 100 -15 144 18 1 1
style 1
type 8
visible 1
ownerdraw 253
textalignx 10
textaligny 16
textscale 0.3
textfont 3
backcolor 0.6 0.55 0.55 0.2
background "menu_setting_selection_bar"
onFocus
{
play mouse_over;
setItemColor self backColor 0 0 0 1;
}
leaveFocus
{
setItemColor self backColor "0.6" "0.55" "0.55" "0.2";
}
action
{
play mouse_click;
}
}
itemDef
{
name "filterServers"
text "@MENU_FILTER_SERVERS"
rect 100 3 144 18 1 1
style 1
type 1
visible 1
textalignx 10
textaligny 16
textscale 0.3
textfont 3
backcolor 0.6 0.55 0.55 0.2
background "menu_setting_selection_bar"
onFocus
{
play mouse_over;
setItemColor self backColor 0 0 0 1;
}
leaveFocus
{
setItemColor self backColor "0.6" "0.55" "0.55" "0.2";
}
action
{
play mouse_click;
open filter_popmenu;
}
}
itemDef
{
name "refreshSource"
text "@PLATFORM_REFRESH_LIST"
rect 304 -33 144 18 1 1
style 1
type 1
visible 1
textalignx 10
textaligny 16
textscale 0.3
textfont 3
backcolor 0.6 0.55 0.55 0.2
background "menu_setting_selection_bar"
onFocus
{
play mouse_over;
setItemColor self backColor 0 0 0 1;
}
leaveFocus
{
setItemColor self backColor "0.6" "0.55" "0.55" "0.2";
}
action
{
play mouse_click;
uiScript RefreshServers;
}
}
itemDef
{
name "refreshFilter"
text "@MENU_QUICK_REFRESH"
rect 304 -15 144 18 1 1
style 1
type 1
visible 1
textalignx 10
textaligny 16
textscale 0.3
textfont 3
backcolor 0.6 0.55 0.55 0.2
background "menu_setting_selection_bar"
onFocus
{
play mouse_over;
setItemColor self backColor 0 0 0 1;
}
leaveFocus
{
setItemColor self backColor "0.6" "0.55" "0.55" "0.2";
}
action
{
play mouse_click;
uiScript RefreshFilter;
}
}
itemDef
{
name "createFavorite2"
text "@MENU_NEW_FAVORITE"
rect 304 3 144 18 1 1
style 1
type 1
visible when(dvarint(ui_netSource) != 1);
disabled when(dvarint(ui_netSource) != 2);
textalignx 10
textaligny 16
textscale 0.3
textfont 3
backcolor 0.6 0.55 0.55 0.2
disablecolor 0.6 0.55 0.55 1
background "menu_setting_selection_bar"
onFocus
{
play mouse_over;
setItemColor self backColor 0 0 0 1;
}
leaveFocus
{
setItemColor self backColor "0.6" "0.55" "0.55" "0.2";
}
action
{
play mouse_click;
open createfavorite_popmenu;
}
}
itemDef
{
name "refreshDate"
rect -44 -13 100 18 1 1
decoration
visible 1
textalign 8
textscale 0.25
textfont 3
exp text "@MPUI_SERVERQUERIED";
}
itemDef
{
name "mapimageFrame"
rect 539 9 93 62 0 0
style 1
decoration
visible when(dvarbool(ui_serverSelected) && dvarbool(widescreen));
textscale 0.55
backcolor 0 0 0 0.5
background "black"
}
itemDef
{
name "mapimage"
rect 540 10 91 60 0 0
style 3
decoration
visible when(dvarbool(ui_serverSelected) && dvarbool(widescreen));
textscale 0.55
background "black"
exp material "preview_" + dvarstring(ui_serverSelectedMap);
}
itemDef
{
name "window"
rect 0 42 698 338 4 1
style 1
decoration
visible 1
textscale 0.55
backcolor 1 1 1 0.15
}
itemDef
{
rect 0 10 698 32 4 1
style 3
decoration
visible 1
textscale 0.55
forecolor 0 0 0 1
background "drop_shadow_t"
}
itemDef
{
rect 0 380 698 32 4 1
style 3
decoration
visible 1
textscale 0.55
forecolor 0 0 0 1
background "drop_shadow_b"
}
itemDef
{
name "lineMatchtype"
group "grpCoulmnSep"
rect 28 42 1 338 0 1
style 1
decoration
visible 1
textscale 0.55
backcolor 1 1 1 0.2
}
itemDef
{
name "lineAimAssist"
group "grpCoulmnSep"
rect 50 42 1 338 0 1
style 1
decoration
visible 1
textscale 0.55
backcolor 1 1 1 0.2
}
itemDef
{
name "lineVoiceChat"
group "grpCoulmnSep"
rect 72 42 1 338 0 1
style 1
decoration
visible 1
textscale 0.55
backcolor 1 1 1 0.2
}
itemDef
{
name "lineServer"
group "grpCoulmnSep"
rect 94 42 1 338 0 1
style 1
decoration
visible 1
textscale 0.55
backcolor 1 1 1 0.2
}
itemDef
{
name "lineMap"
group "grpCoulmnSep"
rect 304 42 1 338 0 1
style 1
decoration
visible 1
textscale 0.55
backcolor 1 1 1 0.2
}
itemDef
{
name "linePlayers"
group "grpCoulmnSep"
rect 376 42 1 338 0 1
style 1
decoration
visible 1
textscale 0.55
backcolor 1 1 1 0.2
}
itemDef
{
name "lineType"
group "grpCoulmnSep"
rect 428 42 1 338 0 1
style 1
decoration
visible 1
textscale 0.55
backcolor 1 1 1 0.2
}
itemDef
{
name "lineMod"
group "grpCoulmnSep"
rect 532 42 1 338 0 1
style 1
decoration
visible 1
textscale 0.55
backcolor 1 1 1 0.2
}
itemDef
{
name "linePing"
group "grpCoulmnSep"
rect 634 42 1 338 0 1
style 1
decoration
visible 1
textscale 0.55
backcolor 1 1 1 0.2
}
itemDef
{
name "serverlist"
rect 0 58 690 321 0 1
style 1
type 6
visible 1
textscale 0.25
textfont 1
outlinecolor 0 0 0 0.6
elementwidth 120
elementheight 16
feeder 2
columns 10
6 16 10 1
30 16 10 1
52 16 10 1
74 16 10 1
99 208 38 0
309 70 25 0
381 50 10 0
433 102 22 0
537 100 20 0
639 40 20 0
doubleclick
{
uiScript JoinServer;
}
}
itemDef
{
name "password"
group "grpTabs"
rect 5 44 30 16 0 1
style 1
type 1
visible 1
textscale 0.55
forecolor 1 0.8 0.4 1
action
{
play mouse_click;
uiScript ServerSort 0;
setItemColor grpTabs foreColor 1 "0.8" "0.4" 1;
setItemColor passwordicon foreColor 1 "1.0" "0.5" 1;
setItemColor matchtypeicon foreColor 1 1 1 1;
setItemColor aimassisticon foreColor 1 1 1 1;
setItemColor voicechaticon foreColor 1 1 1 1;
}
}
itemDef
{
name "passwordicon"
rect 7 46 16 16 0 1
style 3
decoration
visible 1
textscale 0.55
background "cardicon_locked"
}
itemDef
{
name "matchtype"
group "grpTabs"
rect 32 44 20 16 0 1
style 1
type 1
visible 1
textscale 0.55
forecolor 1 0.8 0.4 1
action
{
play mouse_click;
uiScript ServerSort 1;
setItemColor grpTabs foreColor 1 "0.8" "0.4" 1;
setItemColor matchtypeicon foreColor 1 "1.0" "0.5" 1;
setItemColor passwordicon foreColor 1 1 1 1;
setItemColor aimassisticon foreColor 1 1 1 1;
setItemColor voicechaticon foreColor 1 1 1 1;
}
}
itemDef
{
name "matchtypeicon"
rect 32 46 16 16 0 1
style 3
decoration
visible 1
textscale 0.55
background "server_hardware_header"
}
itemDef
{
name "aimassist"
group "grpTabs"
rect 54 44 20 16 0 1
style 1
type 1
visible 1
textscale 0.55
forecolor 1 0.8 0.4 1
action
{
play mouse_click;
uiScript ServerSort 2;
setItemColor grpTabs foreColor 1 "0.8" "0.4" 1;
setItemColor aimassisticon foreColor 1 "1.0" "0.5" 1;
setItemColor passwordicon foreColor 1 1 1 1;
setItemColor matchtypeicon foreColor 1 1 1 1;
setItemColor voicechaticon foreColor 1 1 1 1;
}
}
itemDef
{
name "aimassisticon"
rect 54 46 16 16 0 1
style 3
decoration
visible 1
textscale 0.55
background "cardicon_headshot"
}
itemDef
{
name "voicechat"
group "grpTabs"
rect 76 44 20 16 0 1
style 1
type 1
visible 1
textscale 0.55
forecolor 1 0.8 0.4 1
action
{
play mouse_click;
uiScript ServerSort 3;
setItemColor grpTabs foreColor 1 "0.8" "0.4" 1;
setItemColor voicechaticon foreColor 1 "1.0" "0.5" 1;
setItemColor passwordicon foreColor 1 1 1 1;
setItemColor matchtypeicon foreColor 1 1 1 1;
setItemColor aimassisticon foreColor 1 1 1 1;
}
}
itemDef
{
name "voicechaticon"
rect 76 46 16 16 0 1
style 3
decoration
visible 1
textscale 0.55
background "talkingicon"
}
itemDef
{
name "server"
text "@MENU_SERVER_NAME"
group "grpTabs"
rect 98 44 208 16 0 1
style 1
type 1
visible 1
textalignx 2
textaligny 16
textscale 0.25
textfont 1
forecolor 1 0.8 0.4 1
action
{
play mouse_click;
uiScript ServerSort 4;
setItemColor grpTabs foreColor 1 "0.8" "0.4" 1;
setItemColor matchtypeicon foreColor 1 1 1 1;
setItemColor passwordicon foreColor 1 1 1 1;
setItemColor aimassisticon foreColor 1 1 1 1;
setItemColor voicechaticon foreColor 1 1 1 1;
setitemColor self foreColor 1 "1.0" "0.5" 1;
}
}
itemDef
{
name "map"
text "@MENU_MAP_NAME"
group "grpTabs"
rect 308 44 70 16 0 1
style 1
type 1
visible 1
textalignx 2
textaligny 16
textscale 0.25
textfont 1
forecolor 1 0.8 0.4 1
action
{
play mouse_click;
uiScript ServerSort 5;
setItemColor grpTabs foreColor 1 "0.8" "0.4" 1;
setItemColor matchtypeicon foreColor 1 1 1 1;
setItemColor passwordicon foreColor 1 1 1 1;
setItemColor aimassisticon foreColor 1 1 1 1;
setItemColor voicechaticon foreColor 1 1 1 1;
setitemColor self foreColor 1 "1.0" "0.5" 1;
}
}
itemDef
{
name "players"
text "@MENU_NUMPLAYERS"
group "grpTabs"
rect 380 44 50 16 0 1
style 1
type 1
visible 1
textalignx 2
textaligny 16
textscale 0.25
textfont 1
forecolor 1 0.8 0.4 1
action
{
play mouse_click;
uiScript ServerSort 6;
setItemColor grpTabs foreColor 1 "0.8" "0.4" 1;
setItemColor matchtypeicon foreColor 1 1 1 1;
setItemColor passwordicon foreColor 1 1 1 1;
setItemColor aimassisticon foreColor 1 1 1 1;
setItemColor voicechaticon foreColor 1 1 1 1;
setitemColor self foreColor 1 "1.0" "0.5" 1;
}
}
itemDef
{
name "type"
text "@MENU_GAME_TYPE"
group "grpTabs"
rect 432 44 102 16 0 1
style 1
type 1
visible 1
textalignx 2
textaligny 16
textscale 0.25
textfont 1
forecolor 1 0.8 0.4 1
action
{
play mouse_click;
uiScript ServerSort 7;
setItemColor grpTabs foreColor 1 "0.8" "0.4" 1;
setItemColor matchtypeicon foreColor 1 1 1 1;
setItemColor passwordicon foreColor 1 1 1 1;
setItemColor aimassisticon foreColor 1 1 1 1;
setItemColor voicechaticon foreColor 1 1 1 1;
setitemColor self foreColor 1 "1.0" "0.5" 1;
}
}
itemDef
{
name "mod"
text "@MPUI_MOD"
group "grpTabs"
rect 536 44 100 16 0 1
style 1
type 1
visible 1
textalignx 2
textaligny 16
textscale 0.25
textfont 1
forecolor 1 0.8 0.4 1
action
{
play mouse_click;
uiScript ServerSort 8;
setItemColor grpTabs foreColor 1 "0.8" "0.4" 1;
setItemColor matchtypeicon foreColor 1 1 1 1;
setItemColor passwordicon foreColor 1 1 1 1;
setItemColor aimassisticon foreColor 1 1 1 1;
setItemColor voicechaticon foreColor 1 1 1 1;
setitemColor self foreColor 1 "1.0" "0.5" 1;
}
}
itemDef
{
name "ping"
text "@MENU_PING"
group "grpTabs"
rect 638 44 40 16 0 1
style 1
type 1
visible 1
textalignx 2
textaligny 16
textscale 0.25
textfont 1
forecolor 1 0.8 0.4 1
action
{
play mouse_click;
uiScript ServerSort 9;
setItemColor grpTabs foreColor 1 "0.8" "0.4" 1;
setItemColor matchtypeicon foreColor 1 1 1 1;
setItemColor passwordicon foreColor 1 1 1 1;
setItemColor aimassisticon foreColor 1 1 1 1;
setItemColor voicechaticon foreColor 1 1 1 1;
setitemColor self foreColor 1 "1.0" "0.5" 1;
}
}
itemDef
{
text "@MENU_JOIN_SERVER_CAPS"
rect -50 -35 146 28 1 1
decoration
visible 1
textalign 8
textalignx 5
textscale 0.45
textfont 9
}
itemDef
{
name "back"
text "@PLATFORM_BACK_CAPS"
rect -310 -10 100 20 2 3
style 1
type 1
visible 1
textalign 9
textscale 0.275
textfont 9
onFocus
{
play mouse_over;
setItemColor self backColor 0 0 0 1;
}
leaveFocus
{
setItemColor self backColor 0 0 0 0;
}
action
{
play mouse_click;
close self;
}
}
itemDef
{
name "addFavorite"
text "@MENU_ADD_TO_FAVORITES_CAPS"
rect -194 -10 140 20 2 3
style 1
type 1
visible when(dvarint(ui_netSource) != 2);
textalign 9
textscale 0.275
textfont 9
onFocus
{
play mouse_over;
setItemColor self backColor 0 0 0 1;
}
leaveFocus
{
setItemColor self backColor 0 0 0 0;
}
action
{
play mouse_click;
uiScript CreateListFavorite;
}
}
itemDef
{
name "delFavorite"
text "@MENU_DEL_FAVORITE_CAPS"
rect -194 -10 140 20 2 3
style 1
type 1
visible when(dvarint(ui_netSource) == 2);
textalign 9
textscale 0.275
textfont 9
onFocus
{
play mouse_over;
setItemColor self backColor 0 0 0 1;
}
leaveFocus
{
setItemColor self backColor 0 0 0 0;
}
action
{
play mouse_click;
uiScript DeleteFavorite;
}
}
itemDef
{
name "passwordenter"
text "@MENU_PASSWORD_CAPS"
rect -34 -10 100 20 2 3
style 1
type 1
visible 1
textalign 9
textscale 0.275
textfont 9
onFocus
{
play mouse_over;
setItemColor self backColor 0 0 0 1;
}
leaveFocus
{
setItemColor self backColor 0 0 0 0;
}
action
{
play mouse_click;
open popup_joinpassword;
}
}
itemDef
{
name "serverinfo"
text "@MENU_SERVER_INFO_CAPS"
rect 86 -10 100 20 2 3
style 1
type 1
visible 1
textalign 9
textscale 0.275
textfont 9
onFocus
{
play mouse_over;
setItemColor self backColor 0 0 0 1;
}
leaveFocus
{
setItemColor self backColor 0 0 0 0;
}
action
{
play mouse_click;
open serverinfo_popmenu;
}
}
itemDef
{
name "joinserver"
text "@MENU_JOIN_SERVER_CAPS"
rect 206 -10 100 20 2 3
style 1
type 1
visible 1
textalign 9
textscale 0.275
textfont 9
onFocus
{
play mouse_over;
setItemColor self backColor 0 0 0 1;
}
leaveFocus
{
setItemColor self backColor 0 0 0 0;
}
action
{
play mouse_click;
uiScript JoinServer;
}
}
}
}