zb-menus/ui_mp/createserver.menu
2025-01-09 11:51:52 +01:00

830 lines
31 KiB
Plaintext

{
menuDef
{
name "createserver"
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
{
uiScript loadArenas;
execNow xblive_rankedmatch 0;
execNow xblive_privatematch 1;
exec "exec dvar_defaults.cfg";
}
onClose
{
open main_text;
}
onESC
{
exec xstopparty;
if ((inprivateparty() && (!privatepartyhost())) && privatepartyhostinlobby())
{
exec xstopprivateparty;
exec xstartprivateparty;
}
setDvar xblive_privatematch 0;
close self;
}
execKey "f"
{
play mouse_click;
open popup_friends;
}
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 -107 0 854 480 0 0
style 3
decoration
visible when((dvarstring(fs_game) == "") && (!(dvarbool(cl_ingame) || dvarbool(sv_running))));
textscale 0.55
background "animbg_blur_front"
}
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
{
rect -64 0 280 480 1 0
style 3
decoration
visible 1
textscale 0.55
forecolor 1 1 1 0.1
background "gradient_bottom"
}
itemDef
{
text "@MPUI_MOD"
rect -40 0 300 20 0 1
decoration
visible when((dvarstring(fs_game) != "") && (dvarint(cl_ingame) == 0));
textaligny -4
textscale 0.2
forecolor 1 1 1 0.8
}
itemDef
{
name "mod"
rect -40 0 300 20 0 1
decoration
visible when((dvarstring(fs_game) != "") && (dvarint(cl_ingame) == 0));
textalignx 16
textaligny -4
textscale 0.2
forecolor 1 1 1 0.8
exp text dvarstring(fs_game);
}
itemDef
{
name "ticker_bg"
rect -107 -30 900 16 1 1
style 1
decoration
visible 1
backcolor 0 0 0 0.2
}
itemDef
{
name "ticker2"
rect -107 -30 900 16 1 1
style 1
decoration
type 20
visible 1
textaligny 16.5
textscale 0.26
textfont 3
backcolor 0 0 0 0.3
background "shadow_inset"
speed 20
}
itemDef
{
name "panel_title"
text "@MENU_GAME_SETTINGS_CAPS"
rect -300 48 300 20 3 1
style 1
decoration
visible 1
textalignx 6
textaligny 18
textscale 0.375
textfont 9
backcolor 0 0 0 0.45
background "gradient_center"
}
itemDef
{
name "panel_background"
rect -300 68 300 66 3 1
style 1
decoration
visible 1
backcolor 1 1 1 0.1
}
itemDef
{
name "hostname"
text " "
rect -300 74 300 18 3 1
style 1
type 4
visible 1
textalign 2
textalignx -52
textaligny 16
textscale 0.375
textfont 3
background "menu_rules_selection_bar"
onFocus
{
play mouse_over setItemColor self backColor 0 0 0 1;
}
leaveFocus
{
setItemColor self backColor 0 0 0 0;
}
dvar "sv_hostname"
maxChars 18
maxPaintChars 18
}
itemDef
{
text "@MENU_SERVER_NAME"
rect -300 74 300 18 3 1
style 1
decoration
visible 1
textalignx 8
textaligny 16
textscale 0.375
textfont 3
}
itemDef
{
name "maxplayers"
text " "
rect -300 92 300 18 3 1
style 1
type 9
visible 1
textalign 2
textalignx -52
textaligny 16
textscale 0.375
textfont 3
background "menu_rules_selection_bar"
onFocus
{
play mouse_over setItemColor self backColor 0 0 0 1;
}
leaveFocus
{
setItemColor self backColor 0 0 0 0;
}
dvar "party_maxplayers"
maxChars 2
maxPaintChars 2
}
itemDef
{
text "@MENU_MAXIMUM_PLAYERS"
rect -300 92 300 18 3 1
style 1
decoration
visible 1
textalignx 8
textaligny 16
textscale 0.375
textfont 3
}
itemDef
{
name "maxping"
text " "
rect -300 110 300 18 3 1
style 1
type 9
visible 1
textalign 2
textalignx -52
textaligny 16
textscale 0.375
textfont 3
background "menu_rules_selection_bar"
onFocus
{
play mouse_over setItemColor self backColor 0 0 0 1;
}
leaveFocus
{
setItemColor self backColor 0 0 0 0;
}
dvar "sv_maxping"
maxChars 3
maxPaintChars 3
}
itemDef
{
text "@MENU_MAXIMUM_PING"
rect -300 110 300 18 3 1
style 1
decoration
visible 1
textalignx 8
textaligny 16
textscale 0.375
textfont 3
}
itemDef
{
rect 0 18 272 28 1 1
decoration
autowrapped
visible 1
textalign 6
textalignx -59
textscale 0.5
textfont 9
exp text "@MENU_CREATE_GAME_CAPS";
}
itemDef
{
name "button_0"
text "@MENU_START_GAME_CAPS"
group "mw2_button"
rect -64 48 336 20 1 1
style 1
type 1
visible 1
textalign 6
textalignx -60
textscale 0.375
textfont 1
background "menu_button_selection_bar"
onFocus
{
setItemColor self backColor 0 0 0 1;
setLocalVarBool ui_menuAButton 1;
setLocalVarFloat ui_popupYPos 0;
setLocalVarString ui_hint_text "@NULL_EMPTY";
setLocalVarString ui_info_name "";
setLocalVarString ui_info_desc "@NULL_EMPTY";
setLocalVarString ui_info_icon "";
}
leaveFocus
{
setItemColor self backColor 0 0 0 0;
setLocalVarBool ui_menuAButton 1;
setLocalVarString ui_hint_text "@NULL_EMPTY";
}
mouseEnter
{
play mouse_over;
}
action
{
play mouse_click;
exec "selectStringTableEntryInDvar mp/didyouknow.csv 0 didyouknow;" exec xpartygo;
}
}
itemDef
{
rect 0 67.5 216 1 1 1
style 3
decoration
visible 1
textscale 0.55
forecolor 1 1 1 0.65
background "gradient_fadein"
}
itemDef
{
name "button_1"
text "@MENU_LOADING_MAPS"
group "mw2_button"
rect -64 68 336 20 1 1
style 1
type 1
visible when(dvarint(g_loadingInitialZones) != 0);
textalign 6
textalignx -60
textscale 0.375
textfont 1
background "menu_button_selection_bar"
onFocus
{
setItemColor self backColor 0 0 0 1;
setLocalVarBool ui_menuAButton 1;
setLocalVarFloat ui_popupYPos 0;
setLocalVarString ui_hint_text "@NULL_EMPTY";
setLocalVarString ui_info_name "";
setLocalVarString ui_info_desc "@NULL_EMPTY";
setLocalVarString ui_info_icon "";
}
leaveFocus
{
setItemColor self backColor 0 0 0 0;
setLocalVarBool ui_menuAButton 1;
setLocalVarString ui_hint_text "@NULL_EMPTY";
}
mouseEnter
{
play mouse_over;
}
action
{
play mouse_click;
"";
}
}
itemDef
{
name "button_1"
text "@MENU_CHANGE_MAP_CAPS"
group "mw2_button"
rect -64 68 336 20 1 1
style 1
type 1
visible when(dvarint(g_loadingInitialZones) == 0);
textalign 6
textalignx -60
textscale 0.375
textfont 1
background "menu_button_selection_bar"
onFocus
{
setItemColor self backColor 0 0 0 1;
setLocalVarBool ui_menuAButton 1;
setLocalVarFloat ui_popupYPos 0;
setLocalVarString ui_hint_text "@NULL_EMPTY";
setLocalVarString ui_info_name "";
setLocalVarString ui_info_desc "@NULL_EMPTY";
setLocalVarString ui_info_icon "";
}
leaveFocus
{
setItemColor self backColor 0 0 0 0;
setLocalVarBool ui_menuAButton 1;
setLocalVarString ui_hint_text "@NULL_EMPTY";
}
mouseEnter
{
play mouse_over;
}
action
{
play mouse_click;
open settings_map;
}
}
itemDef
{
name "button_2"
text "@MENU_CHANGE_GAME_MODE_CAPS"
group "mw2_button"
rect -64 88 336 20 1 1
style 1
type 1
visible 1
textalign 6
textalignx -60
textscale 0.375
textfont 1
background "menu_button_selection_bar"
onFocus
{
setItemColor self backColor 0 0 0 1;
setLocalVarBool ui_menuAButton 1;
setLocalVarFloat ui_popupYPos 0;
setLocalVarString ui_hint_text "@NULL_EMPTY";
setLocalVarString ui_info_name "";
setLocalVarString ui_info_desc "@NULL_EMPTY";
setLocalVarString ui_info_icon "";
}
leaveFocus
{
setItemColor self backColor 0 0 0 0;
setLocalVarBool ui_menuAButton 1;
setLocalVarString ui_hint_text "@NULL_EMPTY";
}
mouseEnter
{
play mouse_over;
}
action
{
play mouse_click;
open settings_gametype;
}
}
itemDef
{
name "button_3"
text "@MENU_CHANGE_GAME_RULES_CAPS"
group "mw2_button"
rect -64 108 336 20 1 1
style 1
type 1
visible when((dvarstring(ui_gametype) != "arena") && (dvarstring(ui_gametype) != "oneflag"));
textalign 6
textalignx -60
textscale 0.375
textfont 1
background "menu_button_selection_bar"
onFocus
{
setItemColor self backColor 0 0 0 1;
setLocalVarBool ui_menuAButton 1;
setLocalVarFloat ui_popupYPos 0;
setLocalVarString ui_hint_text "@NULL_EMPTY";
setLocalVarString ui_info_name "";
setLocalVarString ui_info_desc "@NULL_EMPTY";
setLocalVarString ui_info_icon "";
}
leaveFocus
{
setItemColor self backColor 0 0 0 0;
setLocalVarBool ui_menuAButton 1;
setLocalVarString ui_hint_text "@NULL_EMPTY";
}
mouseEnter
{
play mouse_over;
}
action
{
play mouse_click;
if (dvarstring(ui_gametype) == "arena")
{
open settings_quick_arena;
}
if (dvarstring(ui_gametype) == "war")
{
open settings_quick_war;
}
if (dvarstring(ui_gametype) == "sd")
{
open settings_quick_sd;
}
if (dvarstring(ui_gametype) == "sab")
{
open settings_quick_sab;
}
if (dvarstring(ui_gametype) == "dm")
{
open settings_quick_dm;
}
if (dvarstring(ui_gametype) == "dom")
{
open settings_quick_dom;
}
if (dvarstring(ui_gametype) == "ctf")
{
open settings_quick_ctf;
}
if (dvarstring(ui_gametype) == "koth")
{
open settings_quick_koth;
}
if (dvarstring(ui_gametype) == "oneflag")
{
open settings_quick_oneflag;
}
if (dvarstring(ui_gametype) == "dd")
{
open settings_quick_dd;
}
if (dvarstring(ui_gametype) == "vip")
{
open settings_quick_vip;
}
if (dvarstring(ui_gametype) == "gtnw")
{
open settings_quick_gtnw;
}
}
}
itemDef
{
name "button_3"
text "@MENU_CHANGE_GAME_RULES_CAPS"
group "mw2_button"
rect -64 108 336 20 1 1
style 1
type 1
visible when((dvarstring(ui_gametype) == "arena") || (dvarstring(ui_gametype) == "oneflag"));
textalign 6
textalignx -60
textscale 0.375
textfont 1
forecolor 1 1 1 0.5
background "menu_button_selection_bar"
onFocus
{
setItemColor self backColor 0 0 0 1;
setLocalVarBool ui_menuAButton 1;
setLocalVarFloat ui_popupYPos 0;
setLocalVarString ui_hint_text "@NULL_EMPTY";
}
leaveFocus
{
setItemColor self backColor 0 0 0 0;
setLocalVarBool ui_menuAButton 1;
setLocalVarString ui_hint_text "@NULL_EMPTY";
}
mouseEnter
{
play mouse_over;
}
}
itemDef
{
rect 0 127.5 216 1 1 1
style 3
decoration
visible 1
textscale 0.55
forecolor 1 1 1 0.65
background "gradient_fadein"
}
itemDef
{
name "button_4"
text "@MENU_PASSWORD_CAPS"
group "mw2_button"
rect -64 128 336 20 1 1
style 1
type 1
visible 1
textalign 6
textalignx -60
textscale 0.375
textfont 1
background "menu_button_selection_bar"
onFocus
{
setItemColor self backColor 0 0 0 1;
setLocalVarBool ui_menuAButton 1;
setLocalVarFloat ui_popupYPos 0;
setLocalVarString ui_hint_text "@NULL_EMPTY";
setLocalVarString ui_info_name "";
setLocalVarString ui_info_desc "@NULL_EMPTY";
setLocalVarString ui_info_icon "";
}
leaveFocus
{
setItemColor self backColor 0 0 0 0;
setLocalVarBool ui_menuAButton 1;
setLocalVarString ui_hint_text "@NULL_EMPTY";
}
mouseEnter
{
play mouse_over;
}
action
{
play mouse_click;
open popup_serverpassword;
}
}
itemDef
{
rect 0 147.5 216 1 1 1
style 3
decoration
visible 1
textscale 0.55
forecolor 1 1 1 0.65
background "gradient_fadein"
}
itemDef
{
name "button_5"
text "@PLATFORM_BACK_CAPS"
group "mw2_button"
rect -64 148 336 20 1 1
style 1
type 1
visible 1
textalign 6
textalignx -60
textscale 0.375
textfont 1
background "menu_button_selection_bar"
onFocus
{
setItemColor self backColor 0 0 0 1;
setLocalVarBool ui_menuAButton 1;
setLocalVarFloat ui_popupYPos 0;
setLocalVarString ui_hint_text "@NULL_EMPTY";
setLocalVarString ui_info_name "";
setLocalVarString ui_info_desc "@NULL_EMPTY";
setLocalVarString ui_info_icon "";
}
leaveFocus
{
setItemColor self backColor 0 0 0 0;
setLocalVarBool ui_menuAButton 1;
setLocalVarString ui_hint_text "@NULL_EMPTY";
}
mouseEnter
{
play mouse_over;
}
action
{
play mouse_click;
close self;
}
}
itemDef
{
name "nattype"
rect -64 188 336 20 1 1
style 1
decoration
type 1
visible when(getlocalizednattype() != locstring("@NETWORK_STRICT"));
textalign 6
textalignx -60
textscale 0.375
textfont 3
disablecolor 0.6 0.55 0.55 1
background "menu_button_selection_bar"
exp text (locstring("@NETWORK_YOURNATTYPE") + " ") + getlocalizednattype();
}
itemDef
{
name "nattype"
rect -64 188 336 20 1 1
style 1
decoration
type 1
visible when(getlocalizednattype() == locstring("@NETWORK_STRICT"));
textalign 6
textalignx -60
textscale 0.375
textfont 3
disablecolor 0.6 0.55 0.55 1
background "menu_button_selection_bar"
exp text (locstring("@NETWORK_YOURNATTYPE") + " ^1") + getlocalizednattype();
}
itemDef
{
name "namehint"
rect 0 240 212 18 1 1
decoration
autowrapped
type 1
visible when(getlocalizednattype() == locstring("@NETWORK_STRICT"));
textalign 2
textscale 0.2916
exp text "@PATCH_STRICTHINT";
}
itemDef
{
name "preview_image"
rect 0 -139 216 122 1 3
style 3
decoration
visible 1
textscale 0.375
exp material "preview_" + dvarstring(ui_mapname);
}
itemDef
{
name "preview_mapname"
rect 0 -139 216 19 1 3
style 1
decoration
autowrapped
visible 1
textalign 6
textalignx -4
textaligny -1
textscale 0.375
textfont 3
backcolor 0 0 0 0.5
exp text dvarstring(party_mapname);
}
itemDef
{
name "preview_gametype"
rect 0 -36 216 19 1 3
style 1
decoration
autowrapped
visible 1
textalign 6
textalignx -4
textscale 0.375
textfont 3
backcolor 0 0 0 0.5
exp text dvarstring(party_gametype);
}
itemDef
{
name "button_friends"
text "@PLATFORM_FRIENDS_CAPS"
rect -120 -4 120 20 3 3
style 1
type 1
visible 1
textalign 1
textaligny 16
textscale 0.275
textfont 9
disablecolor 0.6 0.55 0.55 1
onFocus
{
setLocalVarBool ui_menuAButton 1;
setLocalVarFloat ui_popupYPos 0;
setItemColor self backColor 0 0 0 1;
setLocalVarString ui_hint_text "@MPUI_DESC_FRIENDS";
}
leaveFocus
{
setItemColor self backColor 0 0 0 0;
setLocalVarBool ui_menuAButton 1;
setLocalVarString ui_hint_text "@NULL_EMPTY";
}
mouseEnter
{
play mouse_over;
}
action
{
play mouse_click;
open popup_friends;
}
}
}
}