diff --git a/iw4x/iw4x_00/default_mp_controls.cfg b/iw4x/iw4x_00/default_mp_controls.cfg index 662e23f..21f7666 100644 --- a/iw4x/iw4x_00/default_mp_controls.cfg +++ b/iw4x/iw4x_00/default_mp_controls.cfg @@ -61,12 +61,8 @@ bind y "chatmodeteam" //bind z "+talk" //bind x "openscriptmenu ingame changeweapon" -// MULTIPLAYER VOTE CONTROLS -bind F1 "vote yes" -bind F2 "vote no" - // CLIENT ENVIRONMENT COMMANDS bind F12 "screenshotJPEG" // Default controller bindings -exec default_mp_controller.cfg +exec default_mp_controller.cfg \ No newline at end of file diff --git a/iw4x/iw4x_00/ui_mp/controls_multi.menu b/iw4x/iw4x_00/ui_mp/controls_multi.menu index 2004fb4..b12721a 100644 --- a/iw4x/iw4x_00/ui_mp/controls_multi.menu +++ b/iw4x/iw4x_00/ui_mp/controls_multi.menu @@ -1,73 +1,70 @@ -#include "ui/menudef.h" -#include "ui_mp/main.inc" -#include "ui_mp/pc_options.inc" - -#define MENU_NAME "controls_multi" -#define MENU_TITLE "@MENU_CHAT" - -#undef CHOICE_GROUP -#define CHOICE_GROUP MENU_NAME - -#define CLOSE_MENUS \ - close "main_controls"; \ - close "main_options"; \ - close "options_control_defaults"; \ - close "options_graphics"; \ - close "options_graphics_defaults"; \ - close "options_graphics_texture"; \ - close "options_multi"; \ - close "options_voice"; \ - close "pc_options_actions"; \ - close "pc_options_advanced_video"; \ - close "pc_options_audio"; \ - close "pc_options_controls"; \ - close "pc_options_game"; \ - close "pc_options_look"; \ - close "pc_options_movement"; \ - close "pc_options_multi"; \ - close "pc_options_video"; \ - close "pc_options_voice"; - -#define ON_MENU_OPEN \ - CLOSE_MENUS \ - setLocalVarBool "ui_hideBack" (1); \ - setLocalVarBool ui_hint_display 0; - -#define ON_MENU_CLOSE \ - setLocalVarBool "ui_hideBack" (0); \ - open "pc_options_controls"; - -#define ON_MENU_ESC \ - close self; - -menuDef -{ - name MENU_NAME - rect 0 0 640 480 - foreColor CHOICE_TEXTCOLOR - focusColor CHOICE_TEXTCOLOR - blurWorld 7 - - MENU_ON_OPEN(ON_MENU_OPEN) - MENU_ON_CLOSE(ON_MENU_CLOSE) - MENU_ON_ESC(ON_MENU_ESC) - - #define BACKGROUND_PC_OPTIONS - #define BACKGROUND_IW4 - #define DISABLE_SIDEBAR - #define BACKGROUND_FULL - #include "ui_mp/bg.inc" - - PC_OPTIONS_SECTION_TITLE(MENU_TITLE) - - PC_OPTIONS_KEYBINDING(0, "@MENU_TEXT_CHAT", "chatmodepublic") - PC_OPTIONS_KEYBINDING(1, "@MENU_TEXT_TEAM_CHAT", "chatmodeteam") - PC_OPTIONS_KEYBINDING(2, "@MENU_QUICK_CHAT", "mp_QuickMessage") - - PC_OPTIONS_KEYBINDING( 4, "@MENU_VOTE_YES", "vote yes") - PC_OPTIONS_KEYBINDING( 5, "@MENU_VOTE_NO", "vote no") - - PC_OPTIONS_KEYBINDSTATUS - - ITEM_BUTTON_BACK(ON_MENU_ESC) +#include "ui/menudef.h" +#include "ui_mp/main.inc" +#include "ui_mp/pc_options.inc" + +#define MENU_NAME "controls_multi" +#define MENU_TITLE "@MENU_CHAT" + +#undef CHOICE_GROUP +#define CHOICE_GROUP MENU_NAME + +#define CLOSE_MENUS \ + close "main_controls"; \ + close "main_options"; \ + close "options_control_defaults"; \ + close "options_graphics"; \ + close "options_graphics_defaults"; \ + close "options_graphics_texture"; \ + close "options_multi"; \ + close "options_voice"; \ + close "pc_options_actions"; \ + close "pc_options_advanced_video"; \ + close "pc_options_audio"; \ + close "pc_options_controls"; \ + close "pc_options_game"; \ + close "pc_options_look"; \ + close "pc_options_movement"; \ + close "pc_options_multi"; \ + close "pc_options_video"; \ + close "pc_options_voice"; + +#define ON_MENU_OPEN \ + CLOSE_MENUS \ + setLocalVarBool "ui_hideBack" (1); \ + setLocalVarBool ui_hint_display 0; + +#define ON_MENU_CLOSE \ + setLocalVarBool "ui_hideBack" (0); \ + open "pc_options_controls"; + +#define ON_MENU_ESC \ + close self; + +menuDef +{ + name MENU_NAME + rect 0 0 640 480 + foreColor CHOICE_TEXTCOLOR + focusColor CHOICE_TEXTCOLOR + blurWorld 7 + + MENU_ON_OPEN(ON_MENU_OPEN) + MENU_ON_CLOSE(ON_MENU_CLOSE) + MENU_ON_ESC(ON_MENU_ESC) + + #define BACKGROUND_PC_OPTIONS + #define BACKGROUND_IW4 + #define DISABLE_SIDEBAR + #define BACKGROUND_FULL + #include "ui_mp/bg.inc" + + PC_OPTIONS_SECTION_TITLE(MENU_TITLE) + + PC_OPTIONS_KEYBINDING(0, "@MENU_TEXT_CHAT", "chatmodepublic") + PC_OPTIONS_KEYBINDING(1, "@MENU_TEXT_TEAM_CHAT", "chatmodeteam") + PC_OPTIONS_KEYBINDING(2, "@MENU_QUICK_CHAT", "mp_QuickMessage") + + PC_OPTIONS_KEYBINDSTATUS + + ITEM_BUTTON_BACK(ON_MENU_ESC) } \ No newline at end of file diff --git a/iw4x/iw4x_00/ui_mp/scriptmenus/callvote.menu b/iw4x/iw4x_00/ui_mp/scriptmenus/callvote.menu deleted file mode 100644 index a018cd3..0000000 --- a/iw4x/iw4x_00/ui_mp/scriptmenus/callvote.menu +++ /dev/null @@ -1,57 +0,0 @@ -#include "ui/menudef.h" -#include "ui_mp/main.inc" - -#define MENU_NAME "callvote" -#define MENU_TITLE "@MPUI_CALLVOTE" -#define MENU_SECTION_TITLE "" - -#undef CHOICE_GROUP -#define CHOICE_GROUP MENU_NAME -{ - menuDef - { - name MENU_NAME - rect 0 0 640 480 - foreColor CHOICE_TEXTCOLOR - focusColor CHOICE_TEXTCOLOR - blurWorld 7 - onEsc - { - close "self"; - open "class"; - } - - #define BACKGROUND_PC_OPTIONS - #define BACKGROUND_IW4 - #define SIDEBAR_RIGHT - #include "ui_mp/bg.inc" - - itemDef - { - rect 0 0 272 28 1 1 - decoration - visible 1 - forecolor 1 1 1 1 - textfont 9 - textalign 6 - textalignx -60 - textscale 0.5 - text MENU_TITLE - } - - #define CHOICE_Y(i) (28 + (i * 20)) - #define CHOICE_ORIGIN(i) -64 CHOICE_Y(i) - #define CHOICE_RECT(i) CHOICE_ORIGIN(i) 336 20 HORIZONTAL_ALIGN_LEFT VERTICAL_ALIGN_TOP - - #define HR_ORIGIN(i) 0 (CHOICE_Y(i) - 0.5) - #define HR_RECT(i) HR_ORIGIN(i) 216 1 HORIZONTAL_ALIGN_LEFT VERTICAL_ALIGN_TOP - - MENU_CHOICE_BUTTON_VIS(0, "button_1", "@MP_VOTE_MAPRESTART", exec "cmd callvote map_restart"; close self;, ;, 1) - MENU_CHOICE_BUTTON_VIS(1, "button_2", "@MP_VOTE_NEXTMAP", exec "cmd callvote map_rotate"; close self;, ;, 1) - MENU_CHOICE_BUTTON_VIS(2, "button_3", "@MENU_CHANGE_MAP", open "changemap"; close "changegametype"; close "kickplayer"; close "callvote";, ;, 1) - MENU_CHOICE_BUTTON_VIS(3, "button_4", "Change Gametype", open "changegametype"; close "changemap"; close "kickplayer"; close "callvote";, ;, 1) - MENU_CHOICE_BUTTON_VIS(4, "button_5", "@MPUI_KICK_PLAYER", open "kickplayer"; close "changemap"; close "changegametype"; close "callvote";, ;, 1) - - ITEM_BUTTON_BACK(close "self") - } -} \ No newline at end of file diff --git a/iw4x/iw4x_00/ui_mp/scriptmenus/changegametype.menu b/iw4x/iw4x_00/ui_mp/scriptmenus/changegametype.menu deleted file mode 100644 index b3b4408..0000000 --- a/iw4x/iw4x_00/ui_mp/scriptmenus/changegametype.menu +++ /dev/null @@ -1,125 +0,0 @@ -#include "ui/menudef.h" -#include "ui_mp/main.inc" - -#define MENU_NAME "changegametype" -#define MENU_TITLE "@MPUI_CALLVOTE" -#define MENU_SECTION_TITLE "" - -#undef CHOICE_GROUP -#define CHOICE_GROUP MENU_NAME -{ - menuDef - { - name MENU_NAME - rect 0 0 640 480 - foreColor CHOICE_TEXTCOLOR - focusColor CHOICE_TEXTCOLOR - blurWorld 7 - onEsc - { - close "self"; - open "class"; - } - - #define BACKGROUND_PC_OPTIONS - #define BACKGROUND_IW4 - #define SIDEBAR_RIGHT - #include "ui_mp/bg.inc" - - itemDef - { - rect 0 0 272 28 1 1 - decoration - visible 1 - forecolor 1 1 1 1 - textfont 9 - textalign 6 - textalignx -60 - textscale 0.5 - text MENU_TITLE - } - - #define CHOICE_Y(i) (28 + (i * 20)) - #define CHOICE_ORIGIN(i) -64 CHOICE_Y(i) - #define CHOICE_RECT(i) CHOICE_ORIGIN(i) 336 20 HORIZONTAL_ALIGN_LEFT VERTICAL_ALIGN_TOP - - #define HR_ORIGIN(i) 0 (CHOICE_Y(i) - 0.5) - #define HR_RECT(i) HR_ORIGIN(i) 216 1 HORIZONTAL_ALIGN_LEFT VERTICAL_ALIGN_TOP - - MENU_CHOICE_BUTTON_VIS(0, "button_1", "@MP_VOTE_MAPRESTART", exec "cmd callvote map_restart"; close self;, ;, 1) - MENU_CHOICE_BUTTON_VIS(1, "button_2", "@MP_VOTE_NEXTMAP", exec "cmd callvote map_rotate"; close self;, ;, 1) - MENU_CHOICE_BUTTON_VIS(2, "button_3", "@MENU_CHANGE_MAP", open "changemap"; close "changegametype"; close "kickplayer"; close "callvote";, ;, 1) - MENU_CHOICE_BUTTON_VIS(3, "button_4", "Change Gametype", open "changegametype"; close "changemap"; close "kickplayer"; close "callvote";, ;, 1) - MENU_CHOICE_BUTTON_VIS(4, "button_5", "@MPUI_KICK_PLAYER", open "kickplayer"; close "changemap"; close "changegametype"; close "callvote";, ;, 1) - - #undef CHOICE_Y - #undef CHOICE_ORIGIN - #undef CHOICE_RECT - - #include "ui_mp/pc_options.inc" - - PC_OPTIONS_SECTION_TITLE("Change Gametype") - - ITEM_BUTTON_BACK(close "self") - - itemDef - { - name "maplist2" - rect 275 42 300 270 1 1 - forecolor 1 1 1 1 - style 1 - type ITEM_TYPE_LISTBOX - border 1 - bordersize 1 - bordercolor 1 1 1 0.15 - outlinecolor 1 1 1 0.2 - textscale 0.375 - textfont 3 - textalignx 6 - visible 1 - feeder FEEDER_GAMEMODES - elementtype LISTBOX_TEXT - elementwidth 120 - elementheight 24 - columns 1 2 190 25 - mouseEnter - { - setitemcolor "maplist2"; - bordercolor 1 1 1 0.55; - } - mouseExit - { - setitemcolor "maplist2"; - bordercolor 1 1 1 0.15; - } - } - itemDef - { - rect 275 312 320 20 1 1 - style 1 - forecolor 1 1 1 1 - background "menu_setting_selection_bar" - type 1 - textfont 3 - textalign 6 - textalignx -55 - textscale 0.375 - text "@MPUI_CALL_VOTE" - visible 1 - onFocus - { - play "mouse_over"; - setItemColor self backcolor 0 0 0 1; - } - leaveFocus - { - setItemColor self backcolor 0 0 0 0; - } - action - { - close "self"; - uiScript "voteTypeMap"; - } - } - } -} \ No newline at end of file diff --git a/iw4x/iw4x_00/ui_mp/scriptmenus/changemap.menu b/iw4x/iw4x_00/ui_mp/scriptmenus/changemap.menu deleted file mode 100644 index b677228..0000000 --- a/iw4x/iw4x_00/ui_mp/scriptmenus/changemap.menu +++ /dev/null @@ -1,127 +0,0 @@ -#include "ui/menudef.h" -#include "ui_mp/main.inc" - -#define MENU_NAME "changemap" -#define MENU_TITLE "@MPUI_CALLVOTE" -#define MENU_SECTION_TITLE "" - -#undef CHOICE_GROUP -#define CHOICE_GROUP MENU_NAME -{ - menuDef - { - name MENU_NAME - rect 0 0 640 480 - foreColor CHOICE_TEXTCOLOR - focusColor CHOICE_TEXTCOLOR - blurWorld 7 - onEsc - { - close "self"; - open "class"; - } - - #define BACKGROUND_PC_OPTIONS - #define BACKGROUND_IW4 - #define SIDEBAR_RIGHT - #include "ui_mp/bg.inc" - - itemDef - { - rect 0 0 272 28 1 1 - decoration - visible 1 - forecolor 1 1 1 1 - textfont 9 - textalign 6 - textalignx -60 - textscale 0.5 - text MENU_TITLE - } - - #define CHOICE_Y(i) (28 + (i * 20)) - #define CHOICE_ORIGIN(i) -64 CHOICE_Y(i) - #define CHOICE_RECT(i) CHOICE_ORIGIN(i) 336 20 HORIZONTAL_ALIGN_LEFT VERTICAL_ALIGN_TOP - - #define HR_ORIGIN(i) 0 (CHOICE_Y(i) - 0.5) - #define HR_RECT(i) HR_ORIGIN(i) 216 1 HORIZONTAL_ALIGN_LEFT VERTICAL_ALIGN_TOP - - MENU_CHOICE_BUTTON_VIS(0, "button_1", "@MP_VOTE_MAPRESTART", exec "cmd callvote map_restart"; close self;, ;, 1) - MENU_CHOICE_BUTTON_VIS(1, "button_2", "@MP_VOTE_NEXTMAP", exec "cmd callvote map_rotate"; close self;, ;, 1) - MENU_CHOICE_BUTTON_VIS(2, "button_3", "@MENU_CHANGE_MAP", open "changemap"; close "changegametype"; close "kickplayer"; close "callvote";, ;, 1) - MENU_CHOICE_BUTTON_VIS(3, "button_4", "Change Gametype", open "changegametype"; close "changemap"; close "kickplayer"; close "callvote";, ;, 1) - MENU_CHOICE_BUTTON_VIS(4, "button_5", "@MPUI_KICK_PLAYER", open "kickplayer"; close "changemap"; close "changegametype"; close "callvote";, ;, 1) - - #undef CHOICE_Y - #undef CHOICE_ORIGIN - #undef CHOICE_RECT - - #include "ui_mp/pc_options.inc" - - PC_OPTIONS_SECTION_TITLE("@MENU_CHANGE_MAP") - - ITEM_BUTTON_BACK(close "self") - - itemDef - { - name "maplist" - visible 1 - rect 275 42 300 270 1 1 - forecolor 1 1 1 1 - style 1 - type ITEM_TYPE_LISTBOX - textscale 0.375 - textfont 3 - elementtype LISTBOX_TEXT - elementwidth 120 - elementheight 24 - textalignx 6 - textaligny -1 - forecolor 1 1 1 1 - border 1 - bordersize 1 - bordercolor 1 1 1 0.15 - outlinecolor 1 1 1 0.2 - feeder FEEDER_ALLMAPS - columns 1 2 190 25 - mouseEnter - { - setitemcolor "maplist"; - bordercolor 1 1 1 0.55; - } - mouseExit - { - setitemcolor "maplist"; - bordercolor 1 1 1 0.15; - } - } - itemDef - { - rect 275 312 320 20 1 1 - style 1 - forecolor 1 1 1 1 - background "menu_setting_selection_bar" - type 1 - textfont 3 - textalign 6 - textalignx -55 - textscale 0.375 - text "@MPUI_CALL_VOTE" - visible 1 - onFocus - { - play "mouse_over"; - setItemColor self backcolor 0 0 0 1; - } - leaveFocus - { - setItemColor self backcolor 0 0 0 0; - } - action - { - close "self"; - uiScript "voteTypeMap"; - } - } - } -} \ No newline at end of file diff --git a/iw4x/iw4x_00/ui_mp/scriptmenus/class.menu b/iw4x/iw4x_00/ui_mp/scriptmenus/class.menu index 5636ba8..d42d953 100644 --- a/iw4x/iw4x_00/ui_mp/scriptmenus/class.menu +++ b/iw4x/iw4x_00/ui_mp/scriptmenus/class.menu @@ -1,841 +1,799 @@ -{ - menuDef - { - name "class" - rect 0 0 640 480 0 0 - forecolor 1 1 1 1 - focuscolor 1 1 1 1 - blurWorld 7 - onOpen - { - focusfirst; - } - onEsc - { - scriptmenuresponse "back"; - } - execKey "f" - { - play "mouse_click"; - open "popup_friends"; - } - itemDef - { - rect 0 0 640 480 4 4 - decoration - visible 1 - style 3 - forecolor 0 0 0 0.4 - background "white" - textscale 0.55 - } - itemDef - { - rect 0 0 640 480 4 4 - decoration - visible 1 - style 3 - forecolor 1 1 1 0 - background "mockup_bg_glow" - textscale 0.55 - exp forecolor a ( ( ( sin( milliseconds( ) / 1500 ) + 1 ) * 0.25 ) + 0.25 ) - } - itemDef - { - rect 0 0 640 480 4 4 - decoration - visible 1 - style 3 - forecolor 1 1 1 0 - background "mockup_bg_glow" - textscale 0.55 - exp forecolor a ( ( ( sin( milliseconds( ) / 480 ) + 1 ) * 0.25 ) + 0.25 ) - } - itemDef - { - rect -64 0 280 480 1 0 - decoration - visible 1 - style 3 - forecolor 0 0 0 0.25 - background "gradient_fadein_fadebottom" - textscale 0.55 - } - itemDef - { - rect 0 0 272 28 1 1 - decoration - visible 1 - forecolor 1 1 1 1 - textfont 9 - textalign 6 - textalignx -60 - textscale 0.5 - text "@MENU_OPTIONS_UPPER_CASE" - } - itemDef - { - name "fullmap_border" - rect -260 135 240 240 3 1 - decoration - visible 1 - border 1 - bordersize 0.666667 - forecolor 1 1 1 1 - bordercolor 1 1 1 0.35 - textscale 0.55 - visible when ( ( !isempjammed( ) ) ) - } - itemDef - { - rect -260 135 240 240 3 1 - decoration - visible 1 - style 3 - forecolor 0.89 0.98 0.95 0.05 - background "minimap_scanlines" - textscale 0.55 - visible when ( ( !isempjammed( ) ) ) - } - itemDef - { - name "fullmap_map" - rect -260 135 240 240 3 1 - decoration - visible 1 - ownerdraw 181 - forecolor 1 1 1 1 - background "compass_map_default" - type 8 - textscale 0.55 - visible when ( ( !isempjammed( ) ) ) - } - itemDef - { - name "fullmap_friendlies" - rect -260 135 240 240 3 1 - decoration - visible 1 - ownerdraw 185 - forecolor 1 1 1 1 - type 8 - textscale 0.55 - exp forecolor a ( 1 - radarjamintensity( ) ) - visible when ( ( !isempjammed( ) ) ) - } - itemDef - { - name "fullmap_enemies" - rect -260 135 240 240 3 1 - decoration - visible 1 - ownerdraw 188 - forecolor 1 1 1 1 - type 8 - textscale 0.55 - exp forecolor a ( 1 - radarjamintensity( ) ) - visible when ( ( !isempjammed( ) ) ) - } - itemDef - { - name "fullmap_objectives" - rect -260 135 240 240 3 1 - decoration - visible 1 - ownerdraw 182 - forecolor 1 1 1 1 - background "objective_line" - type 8 - textscale 0.55 - visible when ( ( !isempjammed( ) ) ) - } - itemDef - { - name "fullmap_sentries" - rect -260 135 240 240 3 1 - decoration - visible 1 - ownerdraw 189 - forecolor 1 1 1 1 - type 8 - textscale 0.55 - exp forecolor a ( 1 - radarjamintensity( ) ) - visible when ( ( !isempjammed( ) ) ) - } - itemDef - { - name "fullmap_player" - rect -260 135 240 240 3 1 - decoration - visible 1 - ownerdraw 183 - forecolor 1 1 1 1 - background "compassping_player" - type 8 - textscale 0.55 - exp forecolor a ( 1 - radarjamintensity( ) ) - visible when ( ( !isempjammed( ) ) ) - } - itemDef - { - rect -260 135 240 240 3 1 - decoration - visible 1 - style 3 - forecolor 0.64 0.74 0.71 1 - background "white" - textscale 0.55 - exp forecolor a ( radarjamintensity( ) ) - visible when ( radarisjammed( ) && ( !isempjammed( ) ) ) - } - itemDef - { - rect -260 135 240 240 3 1 - decoration - visible 1 - style 3 - forecolor 0.89 0.98 0.95 1 - background "ac130_overlay_grain" - textscale 0.55 - exp forecolor a ( radarjamintensity( ) ) - visible when ( radarisjammed( ) && ( !isempjammed( ) ) ) - } - itemDef - { - rect -260 135 240 240 3 1 - decoration - visible 1 - style 3 - forecolor 1 1 1 1 - background "stencil_base" - textscale 0.55 - visible when ( ( !isempjammed( ) ) ) - } - itemDef - { - rect -260 135 240 240 3 1 - decoration - visible 1 - style 3 - forecolor 1 1 1 1 - background "scanlines_stencil" - textscale 0.55 - exp rect y ( ( 135 - 240 ) + ( ( 240 * 2 ) * ( 1 - ( ( milliseconds( ) % 4000 ) / 4000 ) ) ) ) - visible when ( ( !isempjammed( ) ) ) - } - itemDef - { - rect -260 135 240 240 3 1 - decoration - visible 1 - style 3 - forecolor 0.89 0.98 0.95 1 - background "stencil_fill" - textscale 0.55 - visible when ( ( !isempjammed( ) ) ) - } - itemDef - { - rect -260 115 -136 20 3 1 - decoration - visible 1 - style 1 - forecolor 1 1 1 1 - backcolor 0 0 0 0.35 - background "gradient_fadein" - textfont 9 - textalign 4 - textalignx 4 - textscale 0.375 - visible when ( ( !isempjammed( ) ) ) - exp text ( getmapname( ) ) - } - itemDef - { - rect -272 0 272 28 3 1 - decoration - visible 1 - forecolor 1 1 1 1 - textfont 9 - textalign 4 - textalignx 4 - textscale 0.35 - exp text ( gametypename( ) ) - } - itemDef - { - rect -272 28 272 60 3 1 - decoration - autowrapped - visible 1 - forecolor 1 1 1 0.75 - textalign 4 - textalignx 4 - textscale 0.375 - exp text ( gametypedescription( ) ) - } - itemDef - { - rect 10 58 128 128 1 1 - decoration - visible 1 - style 3 - forecolor 1 1 1 0.275 - textscale 0.55 - visible when ( localvarstring( "ui_team" ) == "marines" ) - exp material ( dvarstring( "g_TeamIcon_Allies" ) ) - } - itemDef - { - rect 10 58 128 128 1 1 - decoration - visible 1 - style 3 - forecolor 1 1 1 0.275 - textscale 0.55 - visible when ( localvarstring( "ui_team" ) == "opfor" ) - exp material ( dvarstring( "g_TeamIcon_Axis" ) ) - } - itemDef - { - rect 10 58 128 128 1 1 - decoration - visible 1 - style 3 - forecolor 1 1 1 0.275 - textscale 0.55 - visible when ( team( "name" ) == "TEAM_FREE" && localvarstring( "ui_team" ) == "marines" ) - exp material ( dvarstring( "g_TeamIcon_Allies" ) ) - } - itemDef - { - rect 10 58 128 128 1 1 - decoration - visible 1 - style 3 - forecolor 1 1 1 0.275 - textscale 0.55 - visible when ( team( "name" ) == "TEAM_FREE" && localvarstring( "ui_team" ) == "opfor" ) - exp material ( dvarstring( "g_TeamIcon_Axis" ) ) - } - itemDef - { - rect 10 196 128 128 1 1 - decoration - visible 1 - forecolor 1 1 1 0.2 - textfont 6 - textscale 0.4583 - visible when ( team( "name" ) == "TEAM_ALLIES" ) - exp text ( "@" + dvarstring( "g_TeamName_Allies" ) ) - } - itemDef - { - rect 10 196 128 128 1 1 - decoration - visible 1 - forecolor 1 1 1 0.2 - textfont 6 - textscale 0.4583 - visible when ( team( "name" ) == "TEAM_FREE" && localvarstring( "ui_team" ) == "marines" ) - exp text ( "@" + dvarstring( "g_TeamName_Allies" ) ) - } - itemDef - { - rect 10 196 128 128 1 1 - decoration - visible 1 - forecolor 1 1 1 0.2 - textfont 6 - textscale 0.4583 - visible when ( team( "name" ) == "TEAM_AXIS" ) - exp text ( "@" + dvarstring( "g_TeamName_Axis" ) ) - } - itemDef - { - rect 10 196 128 128 1 1 - decoration - visible 1 - forecolor 1 1 1 0.2 - textfont 6 - textscale 0.4583 - visible when ( team( "name" ) == "TEAM_FREE" && localvarstring( "ui_team" ) == "opfor" ) - exp text ( "@" + dvarstring( "g_TeamName_Axis" ) ) - } - itemDef - { - name "game_choose_class" - rect -64 28 336 20 1 1 - visible 1 - group "mw2_button" - style 1 - forecolor 1 1 1 1 - disablecolor 0.6 0.55 0.55 1 - background "menu_button_selection_bar" - type 1 - textfont 3 - textalign 6 - textalignx -60 - textscale 0.375 - text "@MPUI_CHOOSE_CLASS" - disabled when ( !( ( localvarstring( "ui_team" ) == "marines" ) || ( localvarstring( "ui_team" ) == "opfor" ) ) || !( 1 ) ) - action - { - play "mouse_click"; - if ( ( localvarstring( "ui_team" ) == "marines" ) ) - { - scriptmenuresponse "changeclass_marines"; - } - if ( ( localvarstring( "ui_team" ) == "opfor" ) ) - { - scriptmenuresponse "changeclass_opfor"; - } - } - onFocus - { - play "mouse_over"; - if ( dvarstring( "gameMode" ) != "mp" ) - { - setItemColor "mw2_button" backcolor 0 0 0 0; - } - setItemColor self backcolor 0 0 0 1; - setLocalVarBool "ui_menuAButton" ( 1 ); - setLocalVarFloat "ui_popupYPos" ( getfocuseditemy( ) ); - } - leaveFocus - { - setItemColor self backcolor 0 0 0 "0.0"; - setLocalVarString "ui_hint_text" ( "@NULL_EMPTY" ); - setLocalVarBool "ui_menuAButton" ( 0 ); - } - } - itemDef - { - name "game_choose_team" - rect -64 48 336 20 1 1 - visible 1 - group "mw2_button" - style 1 - forecolor 1 1 1 1 - disablecolor 0.6 0.55 0.55 1 - background "menu_button_selection_bar" - type 1 - textfont 3 - textalign 6 - textalignx -60 - textscale 0.375 - text "@MPUI_CHANGE_TEAM" - disabled when ( !( dvarbool( "ui_allow_teamchange" ) && ( !dvarbool( "onlinegame" ) || dvarbool( "xblive_privatematch" ) ) ) ) - action - { - play "mouse_click"; - scriptmenuresponse "changeteam"; - } - onFocus - { - play "mouse_over"; - if ( dvarstring( "gameMode" ) != "mp" ) - { - setItemColor "mw2_button" backcolor 0 0 0 0; - } - setItemColor self backcolor 0 0 0 1; - setLocalVarBool "ui_menuAButton" ( 1 ); - setLocalVarFloat "ui_popupYPos" ( getfocuseditemy( ) ); - } - leaveFocus - { - setItemColor self backcolor 0 0 0 "0.0"; - setLocalVarString "ui_hint_text" ( "@NULL_EMPTY" ); - setLocalVarBool "ui_menuAButton" ( 0 ); - } - } - itemDef - { - rect 0 68 216 1 1 1 - decoration - visible 1 - style 3 - forecolor 1 1 1 0.65 - background "gradient_fadein" - textscale 0.55 - } - itemDef - { - name "game_options" - rect -64 68 336 20 1 1 - visible 1 - group "mw2_button" - style 1 - forecolor 1 1 1 1 - disablecolor 0.6 0.55 0.55 1 - background "menu_button_selection_bar" - type 1 - textfont 3 - textalign 6 - textalignx -60 - textscale 0.375 - text "@MPUI_MUTE_PLAYERS" - action - { - play "mouse_click"; - close self; - open "muteplayer"; - } - onFocus - { - play "mouse_over"; - if ( dvarstring( "gameMode" ) != "mp" ) - { - setItemColor "mw2_button" backcolor 0 0 0 0; - } - setItemColor self backcolor 0 0 0 1; - setLocalVarBool "ui_menuAButton" ( 1 ); - setLocalVarFloat "ui_popupYPos" ( getfocuseditemy( ) ); - } - leaveFocus - { - setItemColor self backcolor 0 0 0 "0.0"; - setLocalVarString "ui_hint_text" ( "@NULL_EMPTY" ); - setLocalVarBool "ui_menuAButton" ( 0 ); - } - } - itemDef - { - name "game_options" - rect -64 88 336 20 1 1 - visible 1 - group "mw2_button" - style 1 - forecolor 1 1 1 1 - disablecolor 0.6 0.55 0.55 1 - background "menu_button_selection_bar" - type 1 - textfont 3 - textalign 6 - textalignx -60 - textscale 0.375 - text "@MENU_OPTIONS" - action - { - play "mouse_click"; - close self; - open "pc_options_video"; - execnow "set ui_allow_graphic_change 0"; - } - onFocus - { - play "mouse_over"; - if ( dvarstring( "gameMode" ) != "mp" ) - { - setItemColor "mw2_button" backcolor 0 0 0 0; - } - setItemColor self backcolor 0 0 0 1; - setLocalVarBool "ui_menuAButton" ( 1 ); - setLocalVarFloat "ui_popupYPos" ( getfocuseditemy( ) ); - } - leaveFocus - { - setItemColor self backcolor 0 0 0 "0.0"; - setLocalVarString "ui_hint_text" ( "@NULL_EMPTY" ); - setLocalVarBool "ui_menuAButton" ( 0 ); - } - } - itemDef - { - name "game_options" - rect -64 108 336 20 1 1 - visible 1 - group "mw2_button" - style 1 - forecolor 1 1 1 1 - disablecolor 0.6 0.55 0.55 1 - background "menu_button_selection_bar" - type 1 - textfont 3 - textalign 6 - textalignx -60 - textscale 0.375 - disabled when(dvarBool("party_host")) - text "@MENU_ADD_TO_FAVORITES" - action - { - play "mouse_click"; - close self; - //open "muteplayer"; - uiScript "CreateCurrentServerFavorite"; - } - onFocus - { - play "mouse_over"; - if ( dvarstring( "gameMode" ) != "mp" ) - { - setItemColor "mw2_button" backcolor 0 0 0 0; - } - setItemColor self backcolor 0 0 0 1; - setLocalVarBool "ui_menuAButton" ( 1 ); - setLocalVarFloat "ui_popupYPos" ( getfocuseditemy( ) ); - } - leaveFocus - { - setItemColor self backcolor 0 0 0 "0.0"; - setLocalVarString "ui_hint_text" ( "@NULL_EMPTY" ); - setLocalVarBool "ui_menuAButton" ( 0 ); - } - } - itemDef - { - name "game_callvote" - rect -64 128 336 20 1 1 - visible 1 - group "mw2_button" - style 1 - forecolor 1 1 1 1 - disablecolor 0.6 0.55 0.55 1 - background "menu_button_selection_bar" - type 1 - textfont 3 - textalign 6 - textalignx -60 - textscale 0.375 - //disabled when(dvarBool("g_allowvote")) - text "@MPUI_CALL_VOTE" - action - { - play "mouse_click"; - close self; - open "callvote"; - } - onFocus - { - play "mouse_over"; - if ( dvarstring( "gameMode" ) != "mp" ) - { - setItemColor "mw2_button" backcolor 0 0 0 0; - } - setItemColor self backcolor 0 0 0 1; - setLocalVarBool "ui_menuAButton" ( 1 ); - setLocalVarFloat "ui_popupYPos" ( getfocuseditemy( ) ); - } - leaveFocus - { - setItemColor self backcolor 0 0 0 "0.0"; - setLocalVarString "ui_hint_text" ( "@NULL_EMPTY" ); - setLocalVarBool "ui_menuAButton" ( 0 ); - } - } - itemDef - { - name "game_endgame" - rect -64 148 336 20 1 1 - visible 1 - group "mw2_button" - style 1 - forecolor 1 1 1 1 - disablecolor 0.6 0.55 0.55 1 - background "menu_button_selection_bar" - type 1 - textfont 3 - textalign 6 - textalignx -60 - textscale 0.375 - text "@MENU_END_GAME" - visible when ( !( dvarbool( "onlinegame" ) && !dvarbool( "xblive_privatematch" ) ) && ( dvarbool( "sv_running" ) ) ) - action - { - play "mouse_click"; - open "popup_endgame"; - } - onFocus - { - play "mouse_over"; - if ( dvarstring( "gameMode" ) != "mp" ) - { - setItemColor "mw2_button" backcolor 0 0 0 0; - } - setItemColor self backcolor 0 0 0 1; - setLocalVarBool "ui_menuAButton" ( 1 ); - setLocalVarFloat "ui_popupYPos" ( getfocuseditemy( ) ); - } - leaveFocus - { - setItemColor self backcolor 0 0 0 "0.0"; - setLocalVarString "ui_hint_text" ( "@NULL_EMPTY" ); - setLocalVarBool "ui_menuAButton" ( 0 ); - } - } - itemDef - { - name "game_leavegame" - rect -64 148 336 20 1 1 - visible 1 - group "mw2_button" - style 1 - forecolor 1 1 1 1 - disablecolor 0.6 0.55 0.55 1 - background "menu_button_selection_bar" - type 1 - textfont 3 - textalign 6 - textalignx -60 - textscale 0.375 - text "@MENU_LEAVE_GAME" - visible when ( ( dvarbool( "onlinegame" ) && !dvarbool( "xblive_privatematch" ) ) || !( dvarbool( "sv_running" ) ) ) - action - { - play "mouse_click"; - if ( ( dvarbool( "onlinegame" ) && !dvarbool( "xblive_privatematch" ) ) == 0 && ( ( dvarbool( "sv_running" ) ) == 0 ) && ( inprivateparty( ) && !privatepartyhost( ) && privatepartyhostinlobby( ) ) ) - { - open "popup_leavegameandparty"; - } - if ( ( dvarbool( "onlinegame" ) && !dvarbool( "xblive_privatematch" ) ) == 0 && ( ( dvarbool( "sv_running" ) ) == 0 ) && ( !inprivateparty( ) || privatepartyhost( ) || !privatepartyhostinlobby( ) ) ) - { - open "popup_leavegame"; - } - if ( ( dvarbool( "onlinegame" ) && !dvarbool( "xblive_privatematch" ) ) && ( dvarbool( "sv_running" ) ) ) - { - open "popup_endgame_ranked"; - } - if ( ( dvarbool( "onlinegame" ) && !dvarbool( "xblive_privatematch" ) ) && ( dvarbool( "sv_running" ) ) == 0 && ( inprivateparty( ) && !privatepartyhost( ) && privatepartyhostinlobby( ) ) ) - { - open "popup_leavegameandparty_ranked"; - } - if ( ( dvarbool( "onlinegame" ) && !dvarbool( "xblive_privatematch" ) ) && ( dvarbool( "sv_running" ) ) == 0 && ( !inprivateparty( ) || privatepartyhost( ) || !privatepartyhostinlobby( ) ) ) - { - open "popup_leavegame_ranked"; - } - } - onFocus - { - play "mouse_over"; - if ( dvarstring( "gameMode" ) != "mp" ) - { - setItemColor "mw2_button" backcolor 0 0 0 0; - } - setItemColor self backcolor 0 0 0 1; - setLocalVarBool "ui_menuAButton" ( 1 ); - setLocalVarFloat "ui_popupYPos" ( getfocuseditemy( ) ); - } - leaveFocus - { - setItemColor self backcolor 0 0 0 "0.0"; - setLocalVarString "ui_hint_text" ( "@NULL_EMPTY" ); - setLocalVarBool "ui_menuAButton" ( 0 ); - } - } - itemDef - { - rect -64 -40 336 20 1 3 - visible 1 - group "mw2_button" - style 1 - forecolor 1 1 1 1 - disablecolor 0.6 0.55 0.55 1 - background "menu_button_selection_bar" - type 1 - textfont 3 - textalign 6 - textalignx -60 - textscale 0.375 - text "@PLATFORM_FRIENDS_CAPS" - action - { - play "mouse_click"; - open "popup_friends"; - } - onFocus - { - play "mouse_over"; - if ( dvarstring( "gameMode" ) != "mp" ) - { - setItemColor "mw2_button" backcolor 0 0 0 0; - } - setItemColor self backcolor 0 0 0 1; - setLocalVarBool "ui_menuAButton" ( 1 ); - } - leaveFocus - { - setItemColor self backcolor 0 0 0 "0.0"; - setLocalVarString "ui_hint_text" ( "@NULL_EMPTY" ); - setLocalVarBool "ui_menuAButton" ( 0 ); - } - } - itemDef - { - rect -64 -20 336 20 1 3 - visible 1 - group "mw2_button" - style 1 - forecolor 1 1 1 1 - disablecolor 0.6 0.55 0.55 1 - background "menu_button_selection_bar" - type 1 - textfont 3 - textalign 6 - textalignx -60 - textscale 0.375 - text "@PLATFORM_BACK_CAPS" - visible when ( "@PLATFORM_BACK_CAPS" == "@PLATFORM_BACK_CAPS" ) - action - { - play "mouse_click"; - play "mouse_click"; - "escape" self; - } - onFocus - { - play "mouse_over"; - if ( dvarstring( "gameMode" ) != "mp" ) - { - setItemColor "mw2_button" backcolor 0 0 0 0; - } - setItemColor self backcolor 0 0 0 1; - setLocalVarBool "ui_menuAButton" ( 1 ); - } - leaveFocus - { - setItemColor self backcolor 0 0 0 "0.0"; - setLocalVarString "ui_hint_text" ( "@NULL_EMPTY" ); - setLocalVarBool "ui_menuAButton" ( 0 ); - } - } - itemDef - { - rect -64 -20 336 20 1 3 - visible 1 - group "mw2_button" - style 1 - forecolor 1 1 1 1 - disablecolor 0.6 0.55 0.55 1 - background "menu_button_selection_bar" - type 1 - textfont 3 - textalign 6 - textalignx -60 - textscale 0.375 - text "@PLATFORM_BACK_CAPS" - visible when ( "@PLATFORM_BACK_CAPS" == "@PLATFORM_GAME_SUMMARY_CAPS" ) - action - { - play "mouse_click"; - play "mouse_click"; - open "popup_summary"; - } - onFocus - { - play "mouse_over"; - if ( dvarstring( "gameMode" ) != "mp" ) - { - setItemColor "mw2_button" backcolor 0 0 0 0; - } - setItemColor self backcolor 0 0 0 1; - setLocalVarBool "ui_menuAButton" ( 1 ); - } - leaveFocus - { - setItemColor self backcolor 0 0 0 "0.0"; - setLocalVarString "ui_hint_text" ( "@NULL_EMPTY" ); - setLocalVarBool "ui_menuAButton" ( 0 ); - } - } - } +{ + menuDef + { + name "class" + rect 0 0 640 480 0 0 + forecolor 1 1 1 1 + focuscolor 1 1 1 1 + blurWorld 7 + onOpen + { + focusfirst; + } + onEsc + { + scriptmenuresponse "back"; + } + execKey "f" + { + play "mouse_click"; + open "popup_friends"; + } + itemDef + { + rect 0 0 640 480 4 4 + decoration + visible 1 + style 3 + forecolor 0 0 0 0.4 + background "white" + textscale 0.55 + } + itemDef + { + rect 0 0 640 480 4 4 + decoration + visible 1 + style 3 + forecolor 1 1 1 0 + background "mockup_bg_glow" + textscale 0.55 + exp forecolor a ( ( ( sin( milliseconds( ) / 1500 ) + 1 ) * 0.25 ) + 0.25 ) + } + itemDef + { + rect 0 0 640 480 4 4 + decoration + visible 1 + style 3 + forecolor 1 1 1 0 + background "mockup_bg_glow" + textscale 0.55 + exp forecolor a ( ( ( sin( milliseconds( ) / 480 ) + 1 ) * 0.25 ) + 0.25 ) + } + itemDef + { + rect -64 0 280 480 1 0 + decoration + visible 1 + style 3 + forecolor 0 0 0 0.25 + background "gradient_fadein_fadebottom" + textscale 0.55 + } + itemDef + { + rect 0 0 272 28 1 1 + decoration + visible 1 + forecolor 1 1 1 1 + textfont 9 + textalign 6 + textalignx -60 + textscale 0.5 + text "@MENU_OPTIONS_UPPER_CASE" + } + itemDef + { + name "fullmap_border" + rect -260 135 240 240 3 1 + decoration + visible 1 + border 1 + bordersize 0.666667 + forecolor 1 1 1 1 + bordercolor 1 1 1 0.35 + textscale 0.55 + visible when ( ( !isempjammed( ) ) ) + } + itemDef + { + rect -260 135 240 240 3 1 + decoration + visible 1 + style 3 + forecolor 0.89 0.98 0.95 0.05 + background "minimap_scanlines" + textscale 0.55 + visible when ( ( !isempjammed( ) ) ) + } + itemDef + { + name "fullmap_map" + rect -260 135 240 240 3 1 + decoration + visible 1 + ownerdraw 181 + forecolor 1 1 1 1 + background "compass_map_default" + type 8 + textscale 0.55 + visible when ( ( !isempjammed( ) ) ) + } + itemDef + { + name "fullmap_friendlies" + rect -260 135 240 240 3 1 + decoration + visible 1 + ownerdraw 185 + forecolor 1 1 1 1 + type 8 + textscale 0.55 + exp forecolor a ( 1 - radarjamintensity( ) ) + visible when ( ( !isempjammed( ) ) ) + } + itemDef + { + name "fullmap_enemies" + rect -260 135 240 240 3 1 + decoration + visible 1 + ownerdraw 188 + forecolor 1 1 1 1 + type 8 + textscale 0.55 + exp forecolor a ( 1 - radarjamintensity( ) ) + visible when ( ( !isempjammed( ) ) ) + } + itemDef + { + name "fullmap_objectives" + rect -260 135 240 240 3 1 + decoration + visible 1 + ownerdraw 182 + forecolor 1 1 1 1 + background "objective_line" + type 8 + textscale 0.55 + visible when ( ( !isempjammed( ) ) ) + } + itemDef + { + name "fullmap_sentries" + rect -260 135 240 240 3 1 + decoration + visible 1 + ownerdraw 189 + forecolor 1 1 1 1 + type 8 + textscale 0.55 + exp forecolor a ( 1 - radarjamintensity( ) ) + visible when ( ( !isempjammed( ) ) ) + } + itemDef + { + name "fullmap_player" + rect -260 135 240 240 3 1 + decoration + visible 1 + ownerdraw 183 + forecolor 1 1 1 1 + background "compassping_player" + type 8 + textscale 0.55 + exp forecolor a ( 1 - radarjamintensity( ) ) + visible when ( ( !isempjammed( ) ) ) + } + itemDef + { + rect -260 135 240 240 3 1 + decoration + visible 1 + style 3 + forecolor 0.64 0.74 0.71 1 + background "white" + textscale 0.55 + exp forecolor a ( radarjamintensity( ) ) + visible when ( radarisjammed( ) && ( !isempjammed( ) ) ) + } + itemDef + { + rect -260 135 240 240 3 1 + decoration + visible 1 + style 3 + forecolor 0.89 0.98 0.95 1 + background "ac130_overlay_grain" + textscale 0.55 + exp forecolor a ( radarjamintensity( ) ) + visible when ( radarisjammed( ) && ( !isempjammed( ) ) ) + } + itemDef + { + rect -260 135 240 240 3 1 + decoration + visible 1 + style 3 + forecolor 1 1 1 1 + background "stencil_base" + textscale 0.55 + visible when ( ( !isempjammed( ) ) ) + } + itemDef + { + rect -260 135 240 240 3 1 + decoration + visible 1 + style 3 + forecolor 1 1 1 1 + background "scanlines_stencil" + textscale 0.55 + exp rect y ( ( 135 - 240 ) + ( ( 240 * 2 ) * ( 1 - ( ( milliseconds( ) % 4000 ) / 4000 ) ) ) ) + visible when ( ( !isempjammed( ) ) ) + } + itemDef + { + rect -260 135 240 240 3 1 + decoration + visible 1 + style 3 + forecolor 0.89 0.98 0.95 1 + background "stencil_fill" + textscale 0.55 + visible when ( ( !isempjammed( ) ) ) + } + itemDef + { + rect -260 115 -136 20 3 1 + decoration + visible 1 + style 1 + forecolor 1 1 1 1 + backcolor 0 0 0 0.35 + background "gradient_fadein" + textfont 9 + textalign 4 + textalignx 4 + textscale 0.375 + visible when ( ( !isempjammed( ) ) ) + exp text ( getmapname( ) ) + } + itemDef + { + rect -272 0 272 28 3 1 + decoration + visible 1 + forecolor 1 1 1 1 + textfont 9 + textalign 4 + textalignx 4 + textscale 0.35 + exp text ( gametypename( ) ) + } + itemDef + { + rect -272 28 272 60 3 1 + decoration + autowrapped + visible 1 + forecolor 1 1 1 0.75 + textalign 4 + textalignx 4 + textscale 0.375 + exp text ( gametypedescription( ) ) + } + itemDef + { + rect 10 58 128 128 1 1 + decoration + visible 1 + style 3 + forecolor 1 1 1 0.275 + textscale 0.55 + visible when ( localvarstring( "ui_team" ) == "marines" ) + exp material ( dvarstring( "g_TeamIcon_Allies" ) ) + } + itemDef + { + rect 10 58 128 128 1 1 + decoration + visible 1 + style 3 + forecolor 1 1 1 0.275 + textscale 0.55 + visible when ( localvarstring( "ui_team" ) == "opfor" ) + exp material ( dvarstring( "g_TeamIcon_Axis" ) ) + } + itemDef + { + rect 10 58 128 128 1 1 + decoration + visible 1 + style 3 + forecolor 1 1 1 0.275 + textscale 0.55 + visible when ( team( "name" ) == "TEAM_FREE" && localvarstring( "ui_team" ) == "marines" ) + exp material ( dvarstring( "g_TeamIcon_Allies" ) ) + } + itemDef + { + rect 10 58 128 128 1 1 + decoration + visible 1 + style 3 + forecolor 1 1 1 0.275 + textscale 0.55 + visible when ( team( "name" ) == "TEAM_FREE" && localvarstring( "ui_team" ) == "opfor" ) + exp material ( dvarstring( "g_TeamIcon_Axis" ) ) + } + itemDef + { + rect 10 196 128 128 1 1 + decoration + visible 1 + forecolor 1 1 1 0.2 + textfont 6 + textscale 0.4583 + visible when ( team( "name" ) == "TEAM_ALLIES" ) + exp text ( "@" + dvarstring( "g_TeamName_Allies" ) ) + } + itemDef + { + rect 10 196 128 128 1 1 + decoration + visible 1 + forecolor 1 1 1 0.2 + textfont 6 + textscale 0.4583 + visible when ( team( "name" ) == "TEAM_FREE" && localvarstring( "ui_team" ) == "marines" ) + exp text ( "@" + dvarstring( "g_TeamName_Allies" ) ) + } + itemDef + { + rect 10 196 128 128 1 1 + decoration + visible 1 + forecolor 1 1 1 0.2 + textfont 6 + textscale 0.4583 + visible when ( team( "name" ) == "TEAM_AXIS" ) + exp text ( "@" + dvarstring( "g_TeamName_Axis" ) ) + } + itemDef + { + rect 10 196 128 128 1 1 + decoration + visible 1 + forecolor 1 1 1 0.2 + textfont 6 + textscale 0.4583 + visible when ( team( "name" ) == "TEAM_FREE" && localvarstring( "ui_team" ) == "opfor" ) + exp text ( "@" + dvarstring( "g_TeamName_Axis" ) ) + } + itemDef + { + name "game_choose_class" + rect -64 28 336 20 1 1 + visible 1 + group "mw2_button" + style 1 + forecolor 1 1 1 1 + disablecolor 0.6 0.55 0.55 1 + background "menu_button_selection_bar" + type 1 + textfont 3 + textalign 6 + textalignx -60 + textscale 0.375 + text "@MPUI_CHOOSE_CLASS" + disabled when ( !( ( localvarstring( "ui_team" ) == "marines" ) || ( localvarstring( "ui_team" ) == "opfor" ) ) || !( 1 ) ) + action + { + play "mouse_click"; + if ( ( localvarstring( "ui_team" ) == "marines" ) ) + { + scriptmenuresponse "changeclass_marines"; + } + if ( ( localvarstring( "ui_team" ) == "opfor" ) ) + { + scriptmenuresponse "changeclass_opfor"; + } + } + onFocus + { + play "mouse_over"; + if ( dvarstring( "gameMode" ) != "mp" ) + { + setItemColor "mw2_button" backcolor 0 0 0 0; + } + setItemColor self backcolor 0 0 0 1; + setLocalVarBool "ui_menuAButton" ( 1 ); + setLocalVarFloat "ui_popupYPos" ( getfocuseditemy( ) ); + } + leaveFocus + { + setItemColor self backcolor 0 0 0 "0.0"; + setLocalVarString "ui_hint_text" ( "@NULL_EMPTY" ); + setLocalVarBool "ui_menuAButton" ( 0 ); + } + } + itemDef + { + name "game_choose_team" + rect -64 48 336 20 1 1 + visible 1 + group "mw2_button" + style 1 + forecolor 1 1 1 1 + disablecolor 0.6 0.55 0.55 1 + background "menu_button_selection_bar" + type 1 + textfont 3 + textalign 6 + textalignx -60 + textscale 0.375 + text "@MPUI_CHANGE_TEAM" + disabled when ( !( dvarbool( "ui_allow_teamchange" ) && ( !dvarbool( "onlinegame" ) || dvarbool( "xblive_privatematch" ) ) ) ) + action + { + play "mouse_click"; + scriptmenuresponse "changeteam"; + } + onFocus + { + play "mouse_over"; + if ( dvarstring( "gameMode" ) != "mp" ) + { + setItemColor "mw2_button" backcolor 0 0 0 0; + } + setItemColor self backcolor 0 0 0 1; + setLocalVarBool "ui_menuAButton" ( 1 ); + setLocalVarFloat "ui_popupYPos" ( getfocuseditemy( ) ); + } + leaveFocus + { + setItemColor self backcolor 0 0 0 "0.0"; + setLocalVarString "ui_hint_text" ( "@NULL_EMPTY" ); + setLocalVarBool "ui_menuAButton" ( 0 ); + } + } + itemDef + { + name "game_options" + rect -64 68 336 20 1 1 + visible 1 + group "mw2_button" + style 1 + forecolor 1 1 1 1 + disablecolor 0.6 0.55 0.55 1 + background "menu_button_selection_bar" + type 1 + textfont 3 + textalign 6 + textalignx -60 + textscale 0.375 + text "@MPUI_MUTE_PLAYERS" + action + { + play "mouse_click"; + close self; + open "muteplayer"; + } + onFocus + { + play "mouse_over"; + if ( dvarstring( "gameMode" ) != "mp" ) + { + setItemColor "mw2_button" backcolor 0 0 0 0; + } + setItemColor self backcolor 0 0 0 1; + setLocalVarBool "ui_menuAButton" ( 1 ); + setLocalVarFloat "ui_popupYPos" ( getfocuseditemy( ) ); + } + leaveFocus + { + setItemColor self backcolor 0 0 0 "0.0"; + setLocalVarString "ui_hint_text" ( "@NULL_EMPTY" ); + setLocalVarBool "ui_menuAButton" ( 0 ); + } + } + itemDef + { + rect 0 88 216 1 1 1 + decoration + visible 1 + style 3 + forecolor 1 1 1 0.65 + background "gradient_fadein" + textscale 0.55 + } + itemDef + { + name "game_options" + rect -64 88 336 20 1 1 + visible 1 + group "mw2_button" + style 1 + forecolor 1 1 1 1 + disablecolor 0.6 0.55 0.55 1 + background "menu_button_selection_bar" + type 1 + textfont 3 + textalign 6 + textalignx -60 + textscale 0.375 + text "@MENU_OPTIONS" + action + { + play "mouse_click"; + close self; + open "pc_options_video"; + execnow "set ui_allow_graphic_change 0"; + } + onFocus + { + play "mouse_over"; + if ( dvarstring( "gameMode" ) != "mp" ) + { + setItemColor "mw2_button" backcolor 0 0 0 0; + } + setItemColor self backcolor 0 0 0 1; + setLocalVarBool "ui_menuAButton" ( 1 ); + setLocalVarFloat "ui_popupYPos" ( getfocuseditemy( ) ); + } + leaveFocus + { + setItemColor self backcolor 0 0 0 "0.0"; + setLocalVarString "ui_hint_text" ( "@NULL_EMPTY" ); + setLocalVarBool "ui_menuAButton" ( 0 ); + } + } + itemDef + { + name "game_options" + rect -64 108 336 20 1 1 + visible 1 + group "mw2_button" + style 1 + forecolor 1 1 1 1 + disablecolor 0.6 0.55 0.55 1 + background "menu_button_selection_bar" + type 1 + textfont 3 + textalign 6 + textalignx -60 + textscale 0.375 + disabled when(dvarBool("party_host")) + text "@MENU_ADD_TO_FAVORITES" + action + { + play "mouse_click"; + close self; + uiScript "CreateCurrentServerFavorite"; + } + onFocus + { + play "mouse_over"; + if ( dvarstring( "gameMode" ) != "mp" ) + { + setItemColor "mw2_button" backcolor 0 0 0 0; + } + setItemColor self backcolor 0 0 0 1; + setLocalVarBool "ui_menuAButton" ( 1 ); + setLocalVarFloat "ui_popupYPos" ( getfocuseditemy( ) ); + } + leaveFocus + { + setItemColor self backcolor 0 0 0 "0.0"; + setLocalVarString "ui_hint_text" ( "@NULL_EMPTY" ); + setLocalVarBool "ui_menuAButton" ( 0 ); + } + } + itemDef + { + name "game_endgame" + rect -64 128 336 20 1 1 + visible 1 + group "mw2_button" + style 1 + forecolor 1 1 1 1 + disablecolor 0.6 0.55 0.55 1 + background "menu_button_selection_bar" + type 1 + textfont 3 + textalign 6 + textalignx -60 + textscale 0.375 + text "@MENU_END_GAME" + visible when ( !( dvarbool( "onlinegame" ) && !dvarbool( "xblive_privatematch" ) ) && ( dvarbool( "sv_running" ) ) ) + action + { + play "mouse_click"; + open "popup_endgame"; + } + onFocus + { + play "mouse_over"; + if ( dvarstring( "gameMode" ) != "mp" ) + { + setItemColor "mw2_button" backcolor 0 0 0 0; + } + setItemColor self backcolor 0 0 0 1; + setLocalVarBool "ui_menuAButton" ( 1 ); + setLocalVarFloat "ui_popupYPos" ( getfocuseditemy( ) ); + } + leaveFocus + { + setItemColor self backcolor 0 0 0 "0.0"; + setLocalVarString "ui_hint_text" ( "@NULL_EMPTY" ); + setLocalVarBool "ui_menuAButton" ( 0 ); + } + } + itemDef + { + name "game_leavegame" + rect -64 128 336 20 1 1 + visible 1 + group "mw2_button" + style 1 + forecolor 1 1 1 1 + disablecolor 0.6 0.55 0.55 1 + background "menu_button_selection_bar" + type 1 + textfont 3 + textalign 6 + textalignx -60 + textscale 0.375 + text "@MENU_LEAVE_GAME" + visible when ( ( dvarbool( "onlinegame" ) && !dvarbool( "xblive_privatematch" ) ) || !( dvarbool( "sv_running" ) ) ) + action + { + play "mouse_click"; + if ( ( dvarbool( "onlinegame" ) && !dvarbool( "xblive_privatematch" ) ) == 0 && ( ( dvarbool( "sv_running" ) ) == 0 ) && ( inprivateparty( ) && !privatepartyhost( ) && privatepartyhostinlobby( ) ) ) + { + open "popup_leavegameandparty"; + } + if ( ( dvarbool( "onlinegame" ) && !dvarbool( "xblive_privatematch" ) ) == 0 && ( ( dvarbool( "sv_running" ) ) == 0 ) && ( !inprivateparty( ) || privatepartyhost( ) || !privatepartyhostinlobby( ) ) ) + { + open "popup_leavegame"; + } + if ( ( dvarbool( "onlinegame" ) && !dvarbool( "xblive_privatematch" ) ) && ( dvarbool( "sv_running" ) ) ) + { + open "popup_endgame_ranked"; + } + if ( ( dvarbool( "onlinegame" ) && !dvarbool( "xblive_privatematch" ) ) && ( dvarbool( "sv_running" ) ) == 0 && ( inprivateparty( ) && !privatepartyhost( ) && privatepartyhostinlobby( ) ) ) + { + open "popup_leavegameandparty_ranked"; + } + if ( ( dvarbool( "onlinegame" ) && !dvarbool( "xblive_privatematch" ) ) && ( dvarbool( "sv_running" ) ) == 0 && ( !inprivateparty( ) || privatepartyhost( ) || !privatepartyhostinlobby( ) ) ) + { + open "popup_leavegame_ranked"; + } + } + onFocus + { + play "mouse_over"; + if ( dvarstring( "gameMode" ) != "mp" ) + { + setItemColor "mw2_button" backcolor 0 0 0 0; + } + setItemColor self backcolor 0 0 0 1; + setLocalVarBool "ui_menuAButton" ( 1 ); + setLocalVarFloat "ui_popupYPos" ( getfocuseditemy( ) ); + } + leaveFocus + { + setItemColor self backcolor 0 0 0 "0.0"; + setLocalVarString "ui_hint_text" ( "@NULL_EMPTY" ); + setLocalVarBool "ui_menuAButton" ( 0 ); + } + } + itemDef + { + rect -64 -40 336 20 1 3 + visible 1 + group "mw2_button" + style 1 + forecolor 1 1 1 1 + disablecolor 0.6 0.55 0.55 1 + background "menu_button_selection_bar" + type 1 + textfont 3 + textalign 6 + textalignx -60 + textscale 0.375 + text "@PLATFORM_FRIENDS_CAPS" + action + { + play "mouse_click"; + open "popup_friends"; + } + onFocus + { + play "mouse_over"; + if ( dvarstring( "gameMode" ) != "mp" ) + { + setItemColor "mw2_button" backcolor 0 0 0 0; + } + setItemColor self backcolor 0 0 0 1; + setLocalVarBool "ui_menuAButton" ( 1 ); + } + leaveFocus + { + setItemColor self backcolor 0 0 0 "0.0"; + setLocalVarString "ui_hint_text" ( "@NULL_EMPTY" ); + setLocalVarBool "ui_menuAButton" ( 0 ); + } + } + itemDef + { + rect -64 -20 336 20 1 3 + visible 1 + group "mw2_button" + style 1 + forecolor 1 1 1 1 + disablecolor 0.6 0.55 0.55 1 + background "menu_button_selection_bar" + type 1 + textfont 3 + textalign 6 + textalignx -60 + textscale 0.375 + text "@PLATFORM_BACK_CAPS" + visible when ( "@PLATFORM_BACK_CAPS" == "@PLATFORM_BACK_CAPS" ) + action + { + play "mouse_click"; + play "mouse_click"; + "escape" self; + } + onFocus + { + play "mouse_over"; + if ( dvarstring( "gameMode" ) != "mp" ) + { + setItemColor "mw2_button" backcolor 0 0 0 0; + } + setItemColor self backcolor 0 0 0 1; + setLocalVarBool "ui_menuAButton" ( 1 ); + } + leaveFocus + { + setItemColor self backcolor 0 0 0 "0.0"; + setLocalVarString "ui_hint_text" ( "@NULL_EMPTY" ); + setLocalVarBool "ui_menuAButton" ( 0 ); + } + } + itemDef + { + rect -64 -20 336 20 1 3 + visible 1 + group "mw2_button" + style 1 + forecolor 1 1 1 1 + disablecolor 0.6 0.55 0.55 1 + background "menu_button_selection_bar" + type 1 + textfont 3 + textalign 6 + textalignx -60 + textscale 0.375 + text "@PLATFORM_BACK_CAPS" + visible when ( "@PLATFORM_BACK_CAPS" == "@PLATFORM_GAME_SUMMARY_CAPS" ) + action + { + play "mouse_click"; + play "mouse_click"; + open "popup_summary"; + } + onFocus + { + play "mouse_over"; + if ( dvarstring( "gameMode" ) != "mp" ) + { + setItemColor "mw2_button" backcolor 0 0 0 0; + } + setItemColor self backcolor 0 0 0 1; + setLocalVarBool "ui_menuAButton" ( 1 ); + } + leaveFocus + { + setItemColor self backcolor 0 0 0 "0.0"; + setLocalVarString "ui_hint_text" ( "@NULL_EMPTY" ); + setLocalVarBool "ui_menuAButton" ( 0 ); + } + } + } } \ No newline at end of file diff --git a/iw4x/iw4x_00/ui_mp/scriptmenus/kickplayer.menu b/iw4x/iw4x_00/ui_mp/scriptmenus/kickplayer.menu deleted file mode 100644 index 8877e70..0000000 --- a/iw4x/iw4x_00/ui_mp/scriptmenus/kickplayer.menu +++ /dev/null @@ -1,125 +0,0 @@ -#include "ui/menudef.h" -#include "ui_mp/main.inc" - -#define MENU_NAME "kickplayer" -#define MENU_TITLE "@MPUI_CALLVOTE" -#define MENU_SECTION_TITLE "" - -#undef CHOICE_GROUP -#define CHOICE_GROUP MENU_NAME -{ - menuDef - { - name MENU_NAME - rect 0 0 640 480 - foreColor CHOICE_TEXTCOLOR - focusColor CHOICE_TEXTCOLOR - blurWorld 7 - onEsc - { - close "self"; - open "class"; - } - - #define BACKGROUND_PC_OPTIONS - #define BACKGROUND_IW4 - #define SIDEBAR_RIGHT - #include "ui_mp/bg.inc" - - itemDef - { - rect 0 0 272 28 1 1 - decoration - visible 1 - forecolor 1 1 1 1 - textfont 9 - textalign 6 - textalignx -60 - textscale 0.5 - text MENU_TITLE - } - - #define CHOICE_Y(i) (28 + (i * 20)) - #define CHOICE_ORIGIN(i) -64 CHOICE_Y(i) - #define CHOICE_RECT(i) CHOICE_ORIGIN(i) 336 20 HORIZONTAL_ALIGN_LEFT VERTICAL_ALIGN_TOP - - #define HR_ORIGIN(i) 0 (CHOICE_Y(i) - 0.5) - #define HR_RECT(i) HR_ORIGIN(i) 216 1 HORIZONTAL_ALIGN_LEFT VERTICAL_ALIGN_TOP - - MENU_CHOICE_BUTTON_VIS(0, "button_1", "@MP_VOTE_MAPRESTART", exec "cmd callvote map_restart"; close self;, ;, 1) - MENU_CHOICE_BUTTON_VIS(1, "button_2", "@MP_VOTE_NEXTMAP", exec "cmd callvote map_rotate"; close self;, ;, 1) - MENU_CHOICE_BUTTON_VIS(2, "button_3", "@MENU_CHANGE_MAP", open "changemap"; close "changegametype"; close "kickplayer"; close "callvote";, ;, 1) - MENU_CHOICE_BUTTON_VIS(3, "button_4", "Change Gametype", open "changegametype"; close "changemap"; close "kickplayer"; close "callvote";, ;, 1) - MENU_CHOICE_BUTTON_VIS(4, "button_5", "@MPUI_KICK_PLAYER", open "kickplayer"; close "changemap"; close "changegametype"; close "callvote";, ;, 1) - - #undef CHOICE_Y - #undef CHOICE_ORIGIN - #undef CHOICE_RECT - - #include "ui_mp/pc_options.inc" - - PC_OPTIONS_SECTION_TITLE("@MPUI_KICK_PLAYER") - - ITEM_BUTTON_BACK(close "self") - - itemDef - { - name "maplist" - visible 1 - rect 275 42 300 270 1 1 - forecolor 1 1 1 1 - style 1 - type ITEM_TYPE_LISTBOX - textscale 0.375 - textfont 3 - elementtype LISTBOX_TEXT - elementwidth 120 - elementheight 24 - textalignx 6 - border 1 - bordersize 1 - bordercolor 1 1 1 0.15 - outlinecolor 1 1 1 0.2 - feeder FEEDER_PLAYER_LIST - columns 1 2 190 25 - mouseEnter - { - setitemcolor "maplist"; - bordercolor 1 1 1 0.55; - } - mouseExit - { - setitemcolor "maplist"; - bordercolor 1 1 1 0.15; - } - } - itemDef - { - rect 275 312 320 20 1 1 - style 1 - forecolor 1 1 1 1 - background "menu_setting_selection_bar" - type 1 - textfont 3 - textalign 6 - textalignx -55 - textscale 0.375 - text "@MPUI_CALL_VOTE" - visible 1 - onFocus - { - play "mouse_over"; - setItemColor self backcolor 0 0 0 1; - } - leaveFocus - { - setItemColor self backcolor 0 0 0 0; - } - action - { - close "self"; - uiScript "voteTypeMap"; - } - } - } -} \ No newline at end of file