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

421 lines
16 KiB
Plaintext

{
menuDef
{
name "callvote"
rect 0 0 640 480 0 0
focuscolor 1 1 1 1
blurWorld 7
onESC
{
close self;
open class;
}
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 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 -107 0 854 480 0 0
style 3
decoration
visible when(!(dvarbool(cl_ingame) || dvarbool(sv_running)));
textscale 0.55
background "animbg_blur_front"
}
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
{
rect -64 0 280 480 1 0
style 3
decoration
visible 1
textscale 0.55
forecolor 1 1 1 0.1
background "gradient_fadein_fadebottom"
}
itemDef
{
rect 0 0 640 480 4 4
style 3
visible when(dvarint(cl_ingame) == 0);
textscale 0.55
forecolor 0.25 0.25 0.25 0.75
background "gradient_fadein"
}
itemDef
{
rect 0 0 640 480 4 4
style 3
visible when(dvarint(cl_ingame) == 0);
textscale 0.55
forecolor 0.25 0.25 0.25 0.75
background "gradient_fadein"
}
itemDef
{
rect -64 0 280 480 1 0
style 3
decoration
visible 1
textscale 0.55
forecolor 1 1 1 0.1
background "gradient_fadein_fadebottom"
}
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
{
text "@MPUI_CALLVOTE"
rect 0 0 272 28 1 1
decoration
visible 1
textalign 6
textalignx -60
textscale 0.5
textfont 9
}
itemDef
{
name "button_1"
text "@MP_VOTE_MAPRESTART"
group "mw2_button"
rect -64 28 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 ;
setLocalVarString ui_info_name ;
setLocalVarString ui_info_desc ;
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 "cmd callvote map_restart";
close self;
}
}
itemDef
{
name "button_2"
text "@MP_VOTE_NEXTMAP"
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 ;
setLocalVarString ui_info_name ;
setLocalVarString ui_info_desc ;
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 "cmd callvote map_rotate";
close self;
}
}
itemDef
{
name "button_3"
text "@MENU_CHANGE_MAP"
group "mw2_button"
rect -64 68 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 ;
setLocalVarString ui_info_name ;
setLocalVarString ui_info_desc ;
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 changemap;
close changegametype;
close kickplayer;
close self;
}
}
itemDef
{
name "button_4"
text "Change Gametype"
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 ;
setLocalVarString ui_info_name ;
setLocalVarString ui_info_desc ;
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 changegametype;
close changemap;
close kickplayer;
close self;
}
}
itemDef
{
name "button_5"
text "@MPUI_KICK_PLAYER"
group "mw2_button"
rect -64 108 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 ;
setLocalVarString ui_info_name ;
setLocalVarString ui_info_desc ;
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 kickplayer;
close changemap;
close changegametype;
close self;
}
}
itemDef
{
name "back"
text "@PLATFORM_BACK_CAPS"
group "mw2_button"
rect -64 -4 336 20 1 3
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
{
setItemColor self backColor 0 0 0 1;
}
leaveFocus
{
setItemColor self backColor 0 0 0 0;
}
mouseEnter
{
play mouse_over;
}
action
{
play mouse_click;
close self;
}
}
}
}