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

435 lines
16 KiB
Plaintext

{
menuDef
{
name "popup_gamesetup"
rect 0 0 280 0 1 1
style 1
backcolor 1 1 1 1
focuscolor 1 1 1 1
background "white"
popup
fadeClamp 1
fadeCycle 1
fadeAmount 0.1
exp rect Y localvarfloat("ui_popup_gamesetup_ypos");
onOpen
{
setLocalVarFloat ui_popup_gamesetup_ypos localvarfloat("ui_popupYPos");
setLocalVarInt ui_leftPopup 1;
if (dvarbool(useonlinestats))
{
exec "set ui_useonlinestats_button_name @PLATFORM_USEONLINESTATS_TRUE";
}
else
{
exec "set ui_useonlinestats_button_name @PLATFORM_USEONLINESTATS_FALSE";
}
if (dvarint(sv_privateClients) == dvarint(party_maxPlayers))
{
exec "set ui_jip_button_name @MPUI_JOININPROGRESS_NOT_ALLOWED";
}
else
{
exec "set ui_jip_button_name @MPUI_JOININPROGRESS_ALLOWED";
}
}
onClose
{
setLocalVarInt ui_leftPopup 0;
}
onESC
{
close self;
}
itemDef
{
rect -918 -480 1708 960 1 1
style 1
decoration
visible when(!localvarint("ui_centerPopup"));
textscale 0.55
backcolor 0 0 0 0.35
background "white"
}
itemDef
{
rect -918 -480 1708 960 1 1
style 1
decoration
visible 1
textscale 0.55
backcolor 1 1 1 1
background "xpbar_stencilbase"
}
itemDef
{
rect -64 0 280 0 1 1
style 1
decoration
visible 1
textscale 0.55
backcolor 0.5 0.5 0.5 1
background "white"
exp rect h 24 + (4 * 20);
}
itemDef
{
rect -64 0 1708 480 1 1
style 3
decoration
visible 1
textscale 0.55
forecolor 1 1 1 0.75
background "mw2_popup_bg_fogstencil"
exp rect x 0 - ((float(milliseconds() % 60000) / 60000) * 854);
}
itemDef
{
rect -64 0 -1708 -480 1 1
style 3
decoration
visible 1
textscale 0.55
forecolor 0.85 0.85 0.85 1
background "mw2_popup_bg_fogscroll"
exp rect x 0 - ((float(milliseconds() % 60000) / 60000) * 854);
}
itemDef
{
rect -64 0 280 0 1 1
style 3
decoration
visible 1
textscale 0.55
background "mockup_popup_bg_stencilfill"
exp rect h 24 + (4 * 20);
}
itemDef
{
rect -64 0 -1708 -480 1 1
style 3
decoration
visible 1
textscale 0.55
forecolor 1 1 1 0.75
background "mw2_popup_bg_fogstencil"
exp rect x (- 854) + ((float(milliseconds() % 50000) / 50000) * 854);
}
itemDef
{
rect -64 0 -1708 -480 1 1
style 3
decoration
visible 1
textscale 0.55
forecolor 0.85 0.85 0.85 1
background "mw2_popup_bg_fogscroll"
exp rect x (- 854) + ((float(milliseconds() % 50000) / 50000) * 854);
}
itemDef
{
rect -64 0 280 0 1 1
style 3
decoration
visible 1
textscale 0.55
forecolor 1 1 1 0
background "small_box_lightfx"
exp rect h 24 + (4 * 20);
}
itemDef
{
rect -96 -32 32 32 1 1
style 3
decoration
visible when(!localvarint("ui_centerPopup"));
textscale 0.55
forecolor 0 0 0 1
background "drop_shadow_tl"
}
itemDef
{
rect -64 -32 280 32 1 1
style 3
decoration
visible when(!localvarint("ui_centerPopup"));
textscale 0.55
forecolor 0 0 0 1
background "drop_shadow_t"
}
itemDef
{
rect 216 -32 32 32 1 1
style 3
decoration
visible when(!localvarint("ui_centerPopup"));
textscale 0.55
forecolor 0 0 0 1
background "drop_shadow_tr"
}
itemDef
{
rect 216 0 32 0 1 1
style 3
decoration
visible when(!localvarint("ui_centerPopup"));
textscale 0.55
forecolor 0 0 0 1
background "drop_shadow_r"
exp rect h 24 + (4 * 20);
}
itemDef
{
rect 216 0 32 32 1 1
style 3
decoration
visible when(!localvarint("ui_centerPopup"));
textscale 0.55
forecolor 0 0 0 1
background "drop_shadow_br"
exp rect y (0 - 0) + (24 + (4 * 20));
}
itemDef
{
rect -64 0 280 32 1 1
style 3
decoration
visible when(!localvarint("ui_centerPopup"));
textscale 0.55
forecolor 0 0 0 1
background "drop_shadow_b"
exp rect y (0 - 0) + (24 + (4 * 20));
}
itemDef
{
rect -96 0 32 32 1 1
style 3
decoration
visible when(!localvarint("ui_centerPopup"));
textscale 0.55
forecolor 0 0 0 1
background "drop_shadow_bl"
exp rect y (0 - 0) + (24 + (4 * 20));
}
itemDef
{
rect -96 0 32 0 1 1
style 3
decoration
visible when(!localvarint("ui_centerPopup"));
textscale 0.55
forecolor 0 0 0 1
background "drop_shadow_l"
exp rect h 24 + (4 * 20);
}
itemDef
{
rect 216 0 -256 0 1 1
style 1
decoration
visible 1
textscale 0.55
backcolor 0.35 0.35 0.35 1
background "gradient_slow_fadein"
exp rect h 24 + (4 * 20);
}
itemDef
{
text "@MENU_GAME_SETUP_CAPS"
rect -64 0 280 22 1 1
style 1
decoration
visible 1
textalign 6
textalignx -4
textscale 0.375
textfont 9
backcolor 1 1 1 0.25
background "gradient_fadein"
}
itemDef
{
name "settings_change_map"
text "@MENU_CHANGE_MAP_CAPS"
group "mw2_popup_button"
rect -64 24 336 20 1 1
style 1
type 1
visible 1
textalign 6
textalignx -60
textscale 0.375
textfont 3
disablecolor 0.6 0.55 0.55 1
background "menu_button_selection_bar"
onFocus
{
play mouse_over;
if (dvarstring(gameMode) != "mp")
{
setItemColor mw2_popup_button backcolor 0 0 0 0;
}
setItemColor self backcolor 0 0 0 1;
}
leaveFocus
{
setItemColor self backcolor 1 1 1 0;
}
action
{
play mouse_click;
open settings_map;
}
}
itemDef
{
name "settings_change_gamemode"
text "@MENU_CHANGE_GAME_MODE_CAPS"
group "mw2_popup_button"
rect -64 44 336 20 1 1
style 1
type 1
visible 1
textalign 6
textalignx -60
textscale 0.375
textfont 3
disablecolor 0.6 0.55 0.55 1
background "menu_button_selection_bar"
onFocus
{
play mouse_over;
if (dvarstring(gameMode) != "mp")
{
setItemColor mw2_popup_button backcolor 0 0 0 0;
}
setItemColor self backcolor 0 0 0 1;
}
leaveFocus
{
setItemColor self backcolor 1 1 1 0;
}
action
{
play mouse_click;
open settings_gametype;
}
}
itemDef
{
name "settings_change_gamerules"
text "@MENU_CHANGE_GAME_RULES_CAPS"
group "mw2_popup_button"
rect -64 64 336 20 1 1
style 1
type 1
visible 1
textalign 6
textalignx -60
textscale 0.375
textfont 3
disablecolor 0.6 0.55 0.55 1
background "menu_button_selection_bar"
onFocus
{
play mouse_over;
if (dvarstring(gameMode) != "mp")
{
setItemColor mw2_popup_button backcolor 0 0 0 0;
}
setItemColor self backcolor 0 0 0 1;
}
leaveFocus
{
setItemColor self backcolor 1 1 1 0;
}
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;
}
}
}
itemDef
{
name "settings_offlineoptions"
group "mw2_popup_button"
rect -64 84 336 20 1 1
style 1
type 1
visible when((dvarbool(systemlink) || dvarbool(splitscreen)) && dvarbool(iwnet_allclientsauthed));
textalign 6
textalignx -60
textscale 0.375
textfont 3
disablecolor 0.6 0.55 0.55 1
background "menu_button_selection_bar"
onFocus
{
play mouse_over;
if (dvarstring(gameMode) != "mp")
{
setItemColor mw2_popup_button backcolor 0 0 0 0;
}
setItemColor self backcolor 0 0 0 1;
}
leaveFocus
{
setItemColor self backcolor 1 1 1 0;
}
action
{
play mouse_click;
if (dvarbool(useonlinestats))
{
exec "set useonlinestats 0";
exec "set ui_useonlinestats_button_name @PLATFORM_USEONLINESTATS_FALSE";
}
else
{
open popup_statswarning;
}
}
exp text dvarstring(ui_useonlinestats_button_name);
}
}
}