1318 lines
57 KiB
Plaintext
1318 lines
57 KiB
Plaintext
{
|
|
menuDef
|
|
{
|
|
name "menu_online_barracks"
|
|
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
|
|
{
|
|
focusFirst;
|
|
}
|
|
onESC
|
|
{
|
|
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
|
|
textscale 0.55
|
|
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
|
|
{
|
|
rect 0 28 272 28 1 1
|
|
decoration
|
|
autowrapped
|
|
visible 1
|
|
textalign 6
|
|
textalignx -59
|
|
textscale 0.5833
|
|
textfont 9
|
|
exp text "@MPUI_BARRACKS_CAP";
|
|
}
|
|
itemDef
|
|
{
|
|
rect -272 0 0 18 3 1
|
|
style 1
|
|
visible when(inlobby());
|
|
textalign 4
|
|
textalignx 20
|
|
textscale 0.375
|
|
textfont 3
|
|
forecolor 1 1 1 0.65
|
|
background "white"
|
|
dvar "party_statusString"
|
|
}
|
|
itemDef
|
|
{
|
|
rect 0 320 215 18 1 1
|
|
decoration
|
|
autowrapped
|
|
visible 1
|
|
textalign 6
|
|
textalignx -1
|
|
textscale 0.375
|
|
textfont 3
|
|
forecolor 1 1 1 0.65
|
|
exp text localvarstring("ui_hint_text");
|
|
}
|
|
itemDef
|
|
{
|
|
name "button_0"
|
|
text "@MPUI_CHALLENGES_CAPS"
|
|
group "mw2_button"
|
|
rect -64 56 336 20 1 1
|
|
style 1
|
|
type 1
|
|
visible 1
|
|
disabled when(!isitemunlocked("challenges"));
|
|
textalign 6
|
|
textalignx -60
|
|
textscale 0.375
|
|
textfont 1
|
|
disablecolor 0.6 0.55 0.55 1
|
|
background "menu_button_selection_bar"
|
|
onFocus
|
|
{
|
|
play mouse_over;
|
|
setItemColor self backColor 0 0 0 1;
|
|
if (isitemunlocked("challenges"))
|
|
{
|
|
setLocalVarString ui_hint_text ("@MPUI_DESC_CHALLENGES");
|
|
}
|
|
else
|
|
{
|
|
if (tablelookup("mp/unlockTable.csv", 0, "challenges", 2) == 9999)
|
|
{
|
|
setLocalVarString ui_hint_text ("@PERKS_UNLOCKED_AT_NONE");
|
|
}
|
|
else
|
|
{
|
|
if (tablelookup("mp/unlockTable.csv", 0, "challenges", 3) != "")
|
|
{
|
|
setLocalVarString ui_hint_text ("@PERKS_UNLOCKED_BY_CHALLENGE");
|
|
}
|
|
else
|
|
{
|
|
setLocalVarString ui_hint_text ("@" + tablelookup("mp/rankTable.csv", 0, tablelookup("mp/unlockTable.csv", 0, "challenges", 2), 17));
|
|
}
|
|
}
|
|
exec "set ui_hint_text THIS MENU SHOULD BE UPDATED TO USE setLocalVarString ui_hint_text;";
|
|
}
|
|
}
|
|
leaveFocus
|
|
{
|
|
setItemColor self backColor 0 0 0 0;
|
|
setLocalVarString ui_hint_text ("@NULL_EMPTY");
|
|
setLocalVarBool ui_menuAButton (0);
|
|
}
|
|
action
|
|
{
|
|
play mouse_click;
|
|
setPlayerData ( featureNew , challenges , false );
|
|
open menu_challenges;
|
|
}
|
|
}
|
|
itemDef
|
|
{
|
|
rect 236 56 40 20 1 1
|
|
style 3
|
|
decoration
|
|
visible when((getplayerdata("prestige") < int(tablelookup("mp/rankIconTable.csv", 0, "maxprestige", 1)) && getplayerdata("experience") >= int(tablelookup("mp/rankTable.csv", 0, int(tablelookup("mp/rankTable.csv", 0, "maxrank", 1)), 7))) && getplayerdata("featureNew", "prestige"));
|
|
align 2
|
|
textscale 0.55
|
|
exp material "specialty_new";
|
|
}
|
|
itemDef
|
|
{
|
|
name "button_1"
|
|
text "@MPUI_HIGHLIGHTS_CAPS"
|
|
group "mw2_button"
|
|
rect -64 76 336 20 1 1
|
|
style 1
|
|
type 1
|
|
visible 1
|
|
disabled when(0);
|
|
textalign 6
|
|
textalignx -60
|
|
textscale 0.375
|
|
textfont 1
|
|
disablecolor 0.6 0.55 0.55 1
|
|
background "menu_button_selection_bar"
|
|
onFocus
|
|
{
|
|
play mouse_over;
|
|
setItemColor self backColor 0 0 0 1;
|
|
setLocalVarString ui_hint_text ("@MPUI_DESC_HIGHLIGHTS");
|
|
}
|
|
leaveFocus
|
|
{
|
|
setItemColor self backColor 0 0 0 0;
|
|
setLocalVarString ui_hint_text ("@NULL_EMPTY");
|
|
setLocalVarBool ui_menuAButton (0);
|
|
}
|
|
action
|
|
{
|
|
play mouse_click;
|
|
open menu_records;
|
|
}
|
|
}
|
|
itemDef
|
|
{
|
|
rect 0 95.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_2"
|
|
text "@MENU_CUSTOM_TITLE_CAPS"
|
|
group "mw2_button"
|
|
rect -64 96 336 20 1 1
|
|
style 1
|
|
type 1
|
|
visible 1
|
|
disabled when(0);
|
|
textalign 6
|
|
textalignx -60
|
|
textscale 0.375
|
|
textfont 1
|
|
disablecolor 0.6 0.55 0.55 1
|
|
background "menu_button_selection_bar"
|
|
onFocus
|
|
{
|
|
play mouse_over;
|
|
setItemColor self backColor 0 0 0 1;
|
|
setLocalVarString ui_hint_text ("@MPUI_DESC_CUSTOM_TITLE");
|
|
}
|
|
leaveFocus
|
|
{
|
|
setItemColor self backColor 0 0 0 0;
|
|
setLocalVarString ui_hint_text ("@NULL_EMPTY");
|
|
setLocalVarBool ui_menuAButton (0);
|
|
}
|
|
action
|
|
{
|
|
play mouse_click;
|
|
open popup_customtitle;
|
|
}
|
|
}
|
|
itemDef
|
|
{
|
|
name "button_3"
|
|
text "@MPUI_CLAN_TAG_CAPS"
|
|
group "mw2_button"
|
|
rect -64 116 336 20 1 1
|
|
style 1
|
|
type 1
|
|
visible 1
|
|
disabled when(0);
|
|
textalign 6
|
|
textalignx -60
|
|
textscale 0.375
|
|
textfont 1
|
|
disablecolor 0.6 0.55 0.55 1
|
|
background "menu_button_selection_bar"
|
|
onFocus
|
|
{
|
|
play mouse_over;
|
|
setItemColor self backColor 0 0 0 1;
|
|
setLocalVarString ui_hint_text ("@MPUI_DESC_CLANTAG");
|
|
}
|
|
leaveFocus
|
|
{
|
|
setItemColor self backColor 0 0 0 0;
|
|
setLocalVarString ui_hint_text ("@NULL_EMPTY");
|
|
setLocalVarBool ui_menuAButton (0);
|
|
}
|
|
action
|
|
{
|
|
play mouse_click;
|
|
open popup_customclan;
|
|
}
|
|
}
|
|
itemDef
|
|
{
|
|
rect 0 135.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 "@MPUI_RESET_STATS_CAPS"
|
|
group "mw2_button"
|
|
rect -64 136 336 20 1 1
|
|
style 1
|
|
type 1
|
|
visible 1
|
|
disabled when(0);
|
|
textalign 6
|
|
textalignx -60
|
|
textscale 0.375
|
|
textfont 1
|
|
disablecolor 0.6 0.55 0.55 1
|
|
background "menu_button_selection_bar"
|
|
onFocus
|
|
{
|
|
play mouse_over;
|
|
setItemColor self backColor 0 0 0 1;
|
|
setLocalVarString ui_hint_text ("@MPUI_DESC_RESET_STATS");
|
|
}
|
|
leaveFocus
|
|
{
|
|
setItemColor self backColor 0 0 0 0;
|
|
setLocalVarString ui_hint_text ("@NULL_EMPTY");
|
|
setLocalVarBool ui_menuAButton (0);
|
|
}
|
|
action
|
|
{
|
|
play mouse_click;
|
|
open stats_reset;
|
|
}
|
|
}
|
|
itemDef
|
|
{
|
|
name "button_5"
|
|
text "@MPUI_UNLOCK_STATS_CAPS"
|
|
group "mw2_button"
|
|
rect -64 156 336 20 1 1
|
|
style 1
|
|
type 1
|
|
visible 1
|
|
disabled when(0);
|
|
textalign 6
|
|
textalignx -60
|
|
textscale 0.375
|
|
textfont 1
|
|
disablecolor 0.6 0.55 0.55 1
|
|
background "menu_button_selection_bar"
|
|
onFocus
|
|
{
|
|
play mouse_over;
|
|
setItemColor self backColor 0 0 0 1;
|
|
setLocalVarString ui_hint_text ("@MPUI_DESC_UNLOCK_STATS");
|
|
}
|
|
leaveFocus
|
|
{
|
|
setItemColor self backColor 0 0 0 0;
|
|
setLocalVarString ui_hint_text ("@NULL_EMPTY");
|
|
setLocalVarBool ui_menuAButton (0);
|
|
}
|
|
action
|
|
{
|
|
play mouse_click;
|
|
open stats_unlock;
|
|
}
|
|
}
|
|
itemDef
|
|
{
|
|
rect 0 155.5 216 1 1 1
|
|
style 3
|
|
decoration
|
|
visible when((getplayerdata("prestige") == int(tablelookup("mp/rankIconTable.csv", 0, "maxprestige", 1))) == 0);
|
|
textscale 0.55
|
|
forecolor 1 1 1 0.65
|
|
background "gradient_fadein"
|
|
}
|
|
itemDef
|
|
{
|
|
name "button_6"
|
|
text "@MPUI_PRESTIGE_MODE_CAPS"
|
|
group "mw2_button"
|
|
rect -64 176 336 20 1 1
|
|
style 1
|
|
type 1
|
|
visible when(!(getplayerdata("prestige") == int(tablelookup("mp/rankIconTable.csv", 0, "maxprestige", 1))));
|
|
disabled when(!(getplayerdata("prestige") < int(tablelookup("mp/rankIconTable.csv", 0, "maxprestige", 1)) && getplayerdata("experience") >= int(tablelookup("mp/rankTable.csv", 0, int(tablelookup("mp/rankTable.csv", 0, "maxrank", 1)), 7))) && !(getplayerdata("prestige") == int(tablelookup("mp/rankIconTable.csv", 0, "maxprestige", 1))));
|
|
textalign 6
|
|
textalignx -60
|
|
textscale 0.375
|
|
textfont 1
|
|
disablecolor 0.6 0.55 0.55 1
|
|
background "menu_button_selection_bar"
|
|
onFocus
|
|
{
|
|
play mouse_over;
|
|
setItemColor self backColor 0 0 0 1;
|
|
setPlayerData ( featureNew , prestige , false );
|
|
if (!(getplayerdata("prestige") < int(tablelookup("mp/rankIconTable.csv", 0, "maxprestige", 1)) && getplayerdata("experience") >= int(tablelookup("mp/rankTable.csv", 0, int(tablelookup("mp/rankTable.csv", 0, "maxrank", 1)), 7))))
|
|
{
|
|
setLocalVarString ui_hint_text ("@MPUI_DESC_PRESTIGE2");
|
|
}
|
|
else
|
|
{
|
|
setLocalVarString ui_hint_text ("@MPUI_DESC_PRESTIGE");
|
|
}
|
|
}
|
|
leaveFocus
|
|
{
|
|
setItemColor self backColor 0 0 0 0;
|
|
setLocalVarString ui_hint_text ("@NULL_EMPTY");
|
|
setLocalVarBool ui_menuAButton (0);
|
|
}
|
|
action
|
|
{
|
|
play mouse_click;
|
|
open prestige_reset1;
|
|
}
|
|
}
|
|
itemDef
|
|
{
|
|
rect 236 156 40 20 1 1
|
|
style 3
|
|
decoration
|
|
visible when((getplayerdata("prestige") < int(tablelookup("mp/rankIconTable.csv", 0, "maxprestige", 1)) && getplayerdata("experience") >= int(tablelookup("mp/rankTable.csv", 0, int(tablelookup("mp/rankTable.csv", 0, "maxrank", 1)), 7))) && getplayerdata("featureNew", "prestige"));
|
|
align 2
|
|
textscale 0.55
|
|
exp material "specialty_new";
|
|
}
|
|
itemDef
|
|
{
|
|
name "playercard_background"
|
|
rect 0 0 208 70 3 1
|
|
style 3
|
|
decoration
|
|
visible when(getplayercardinfo(0, 1, 0) != 0);
|
|
textscale 0.55
|
|
forecolor 0 0 0 0.25
|
|
background "white"
|
|
exp rect x (- 208);
|
|
exp rect y (28);
|
|
}
|
|
itemDef
|
|
{
|
|
name "playercard_foreground"
|
|
rect 0 0 208 70 3 1
|
|
style 1
|
|
decoration
|
|
visible when(getplayercardinfo(0, 1, 0) != 0);
|
|
textalign 4
|
|
textaligny -20
|
|
textscale 0.375
|
|
textfont 6
|
|
backcolor 1 1 1 1
|
|
background "cardtitle_248x48"
|
|
exp rect x (- 208);
|
|
exp rect y (28);
|
|
}
|
|
itemDef
|
|
{
|
|
name "playercard_title"
|
|
rect 0 0 160 32 3 1
|
|
style 1
|
|
type 1
|
|
visible when(getplayercardinfo(0, 1, 0) != 0);
|
|
textalign 9
|
|
textscale 0.375
|
|
textstyle 8
|
|
textfont 3
|
|
backcolor 1 1 1 1
|
|
onFocus
|
|
{
|
|
play mouse_over;
|
|
if (isitemunlocked("playercard_title"))
|
|
{
|
|
setLocalVarString ui_hint_text "@MPUI_DESC_PLAYERCARD_TITLE";
|
|
}
|
|
else
|
|
{
|
|
setLocalVarString ui_hint_text "@PERKS_UNLOCKED_BY_CHALLENGE";
|
|
}
|
|
setLocalVarBool ui_menuAButton 1;
|
|
}
|
|
leaveFocus
|
|
{
|
|
setLocalVarString ui_hint_text "@NULL_EMPTY";
|
|
setLocalVarBool ui_menuAButton 1;
|
|
}
|
|
action
|
|
{
|
|
play mouse_click;
|
|
if (isitemunlocked("playercard_title"))
|
|
{
|
|
open menu_playercard_title_popup;
|
|
setPlayerData ( featureNew , playercard_title , false );
|
|
}
|
|
}
|
|
exp text "@" + tablelookupbyrow("mp/cardTitleTable.csv", getplayercardinfo(1, 1, 0), 1);
|
|
exp material tablelookupbyrow("mp/cardTitleTable.csv", getplayercardinfo(1, 1, 0), 2);
|
|
exp rect x - 208;
|
|
exp rect y 28 - 2;
|
|
exp forecolor r tablelookupbyrow("mp/cardTitleTable.csv", getplayercardinfo(1, 1, 0), 3);
|
|
exp forecolor g tablelookupbyrow("mp/cardTitleTable.csv", getplayercardinfo(1, 1, 0), 4);
|
|
exp forecolor b tablelookupbyrow("mp/cardTitleTable.csv", getplayercardinfo(1, 1, 0), 5);
|
|
}
|
|
itemDef
|
|
{
|
|
name "playercard_name"
|
|
rect 0 0 160 18 3 1
|
|
type 1
|
|
visible when(getplayercardinfo(0, 1, 0) != 0);
|
|
textalign 4
|
|
textalignx 8
|
|
textscale 0.3333
|
|
textstyle 8
|
|
textfont 10
|
|
onFocus
|
|
{
|
|
play mouse_over;
|
|
setItemColor self backcolor 0 0 0 1;
|
|
setLocalVarString ui_hint_text "@MPUI_DESC_CHANGE_NAME";
|
|
setLocalVarBool ui_menuAButton 1;
|
|
}
|
|
leaveFocus
|
|
{
|
|
setItemColor self backcolor 0 0 0 0;
|
|
setLocalVarString ui_hint_text "@NULL_EMPTY";
|
|
setLocalVarBool ui_menuAButton 1;
|
|
}
|
|
action
|
|
{
|
|
play mouse_click;
|
|
open popup_playername;
|
|
}
|
|
exp text getplayercardinfo(8, 1, 0);
|
|
exp rect x - 208;
|
|
exp rect y 28 + 28;
|
|
}
|
|
itemDef
|
|
{
|
|
name "playercard_icon"
|
|
rect 0 0 48 48 3 1
|
|
style 3
|
|
type 1
|
|
visible when(getplayercardinfo(0, 1, 0) != 0);
|
|
textscale 0.55
|
|
onFocus
|
|
{
|
|
play mouse_over;
|
|
if (isitemunlocked("playercard_icon"))
|
|
{
|
|
setLocalVarString ui_hint_text "@MPUI_DESC_PLAYERCARD_ICON";
|
|
}
|
|
else
|
|
{
|
|
setLocalVarString ui_hint_text "@PERKS_UNLOCKED_BY_CHALLENGE";
|
|
}
|
|
setLocalVarBool ui_menuAButton 1;
|
|
}
|
|
leaveFocus
|
|
{
|
|
setLocalVarString ui_hint_text "@NULL_EMPTY";
|
|
setLocalVarBool ui_menuAButton 1;
|
|
}
|
|
action
|
|
{
|
|
play mouse_click;
|
|
if (isitemunlocked("playercard_icon"))
|
|
{
|
|
open menu_playercard_icon_popup;
|
|
setPlayerData ( featureNew , playercard_icon , false );
|
|
}
|
|
}
|
|
exp material tablelookupbyrow("mp/cardIconTable.csv", getplayercardinfo(2, 1, 0), 1);
|
|
exp rect x (- 208) + 160;
|
|
exp rect y (28);
|
|
}
|
|
itemDef
|
|
{
|
|
name "playercard_rankicon"
|
|
rect 0 0 20 20 3 1
|
|
style 1
|
|
decoration
|
|
visible when((getplayercardinfo(0, 1, 0) != 0) && (getplayercardinfo(4, 1, 0) >= 0));
|
|
textscale 0.55
|
|
backcolor 1 1 1 1
|
|
exp material tablelookup("mp/rankIconTable.csv", 0, getplayercardinfo(4, 1, 0), (getplayercardinfo(5, 1, 0) + 1));
|
|
exp rect x (- 208) + 164;
|
|
exp rect y (28) + 48;
|
|
}
|
|
itemDef
|
|
{
|
|
name "playercard_rank"
|
|
rect 0 0 20 20 3 1
|
|
decoration
|
|
visible when((getplayercardinfo(0, 1, 0) != 0) && (getplayercardinfo(4, 1, 0) >= 0));
|
|
textalign 9
|
|
textalignx 20
|
|
textscale 0.375
|
|
textstyle 8
|
|
textfont 3
|
|
exp text tablelookup("mp/rankTable.csv", 0, getplayercardinfo(4, 1, 0), 14);
|
|
exp rect x (- 208) + 164;
|
|
exp rect y (28) + 48;
|
|
}
|
|
itemDef
|
|
{
|
|
name "playercard_clantag"
|
|
rect 0 0 208 20 3 1
|
|
style 1
|
|
decoration
|
|
visible when((getplayercardinfo(0, 1, 0) != 0) && (getplayercardinfo(9, 1, 0) != ""));
|
|
textalign 8
|
|
textalignx 2
|
|
textscale 0.375
|
|
textfont 3
|
|
exp text "[" + getplayercardinfo(9, 1, 0) + "]";
|
|
exp rect x (- 208);
|
|
exp rect y (28) + 48;
|
|
}
|
|
itemDef
|
|
{
|
|
name "playercard_killstreak1"
|
|
rect 0 0 20 20 3 1
|
|
style 3
|
|
decoration
|
|
visible 1
|
|
textscale 0.55
|
|
exp material tablelookup("mp/killstreakTable.csv", 1, (getplayerdata("killstreaks", 0)), 16);
|
|
exp rect x (- 140) + 32;
|
|
exp rect y (28 + 48);
|
|
}
|
|
itemDef
|
|
{
|
|
name "playercard_killstreak2"
|
|
rect 0 0 20 20 3 1
|
|
style 3
|
|
decoration
|
|
visible 1
|
|
textscale 0.55
|
|
exp material tablelookup("mp/killstreakTable.csv", 1, (getplayerdata("killstreaks", 1)), 16);
|
|
exp rect x (- 140) + 53;
|
|
exp rect y (28 + 48);
|
|
}
|
|
itemDef
|
|
{
|
|
name "playercard_killstreak3"
|
|
rect 0 0 20 20 3 1
|
|
style 3
|
|
decoration
|
|
visible 1
|
|
textscale 0.55
|
|
exp material tablelookup("mp/killstreakTable.csv", 1, (getplayerdata("killstreaks", 2)), 16);
|
|
exp rect x (- 140) + 74;
|
|
exp rect y (28 + 48);
|
|
}
|
|
itemDef
|
|
{
|
|
rect -208 100 -208 260 3 1
|
|
style 3
|
|
decoration
|
|
visible 1
|
|
textscale 0.55
|
|
forecolor 1 1 1 0.1
|
|
background "gradient_fadein"
|
|
}
|
|
itemDef
|
|
{
|
|
rect -208 100 -208 20 3 1
|
|
style 1
|
|
decoration
|
|
visible 1
|
|
textalign 4
|
|
textalignx 4
|
|
textscale 0.375
|
|
textfont 3
|
|
backcolor 0 0 0 0.35
|
|
background "white"
|
|
exp text "@MPUI_RANK_PRE";
|
|
}
|
|
itemDef
|
|
{
|
|
rect -208 100 208 20 3 1
|
|
decoration
|
|
visible 1
|
|
textalign 6
|
|
textalignx -22
|
|
textscale 0.375
|
|
textfont 3
|
|
exp text "@" + tablelookup("mp/ranktable.csv", 0, levelforexperience(getplayerdata("experience")), 5);
|
|
}
|
|
itemDef
|
|
{
|
|
rect -18 101 18 18 3 1
|
|
style 3
|
|
decoration
|
|
visible 1
|
|
textscale 0.55
|
|
exp material tablelookup("mp/rankIconTable.csv", 0, levelforexperience(getplayerdata("experience")), getplayerdata("prestige") + 1);
|
|
}
|
|
itemDef
|
|
{
|
|
rect -208 120 -208 20 3 1
|
|
decoration
|
|
visible 1
|
|
textalign 4
|
|
textalignx 4
|
|
textscale 0.375
|
|
textfont 3
|
|
forecolor 1 1 1 0.65
|
|
exp text "@MPUI_XP_PRE";
|
|
}
|
|
itemDef
|
|
{
|
|
rect -208 120 208 20 3 1
|
|
decoration
|
|
visible 1
|
|
textalign 6
|
|
textalignx -4
|
|
textscale 0.375
|
|
textfont 3
|
|
forecolor 1 1 1 0.65
|
|
exp text getplayerdata("experience");
|
|
}
|
|
itemDef
|
|
{
|
|
rect -208 140 -208 20 3 1
|
|
style 1
|
|
decoration
|
|
visible when((levelforexperience(getplayerdata("experience")) < int(tablelookup("mp/rankTable.csv", 0, "maxrank", 1)) || getplayerdata("prestige") < int(tablelookup("mp/rankIconTable.csv", 0, "maxprestige", 1))) && (getplayerdata("prestige") < int(tablelookup("mp/rankIconTable.csv", 0, "maxprestige", 1)) && levelforexperience(getplayerdata("experience")) == int(tablelookup("mp/rankTable.csv", 0, "maxrank", 1))) == 0);
|
|
textalign 4
|
|
textalignx 4
|
|
textscale 0.375
|
|
textfont 3
|
|
backcolor 0 0 0 0.35
|
|
background "white"
|
|
exp text "@MPUI_NEXT_PRE";
|
|
}
|
|
itemDef
|
|
{
|
|
rect -208 140 208 20 3 1
|
|
decoration
|
|
visible when((levelforexperience(getplayerdata("experience")) < int(tablelookup("mp/rankTable.csv", 0, "maxrank", 1)) || getplayerdata("prestige") < int(tablelookup("mp/rankIconTable.csv", 0, "maxprestige", 1))) && (getplayerdata("prestige") < int(tablelookup("mp/rankIconTable.csv", 0, "maxprestige", 1)) && levelforexperience(getplayerdata("experience")) == int(tablelookup("mp/rankTable.csv", 0, "maxrank", 1))) == 0);
|
|
textalign 6
|
|
textalignx -22
|
|
textscale 0.375
|
|
textfont 3
|
|
exp text "@" + tablelookup("mp/ranktable.csv", 0, levelforexperience(getplayerdata("experience")) + 1, 5);
|
|
}
|
|
itemDef
|
|
{
|
|
rect -18 141 18 18 3 1
|
|
style 3
|
|
decoration
|
|
visible when((levelforexperience(getplayerdata("experience")) < int(tablelookup("mp/rankTable.csv", 0, "maxrank", 1)) || getplayerdata("prestige") < int(tablelookup("mp/rankIconTable.csv", 0, "maxprestige", 1))) && (getplayerdata("prestige") < int(tablelookup("mp/rankIconTable.csv", 0, "maxprestige", 1)) && levelforexperience(getplayerdata("experience")) == int(tablelookup("mp/rankTable.csv", 0, "maxrank", 1))) == 0);
|
|
textscale 0.55
|
|
exp material tablelookup("mp/rankIconTable.csv", 0, levelforexperience(getplayerdata("experience")) + 1, getplayerdata("prestige") + 1);
|
|
}
|
|
itemDef
|
|
{
|
|
rect -208 140 -208 20 3 1
|
|
style 1
|
|
decoration
|
|
visible when((levelforexperience(getplayerdata("experience")) < int(tablelookup("mp/rankTable.csv", 0, "maxrank", 1)) || getplayerdata("prestige") < int(tablelookup("mp/rankIconTable.csv", 0, "maxprestige", 1))) && (getplayerdata("prestige") < int(tablelookup("mp/rankIconTable.csv", 0, "maxprestige", 1)) && levelforexperience(getplayerdata("experience")) == int(tablelookup("mp/rankTable.csv", 0, "maxrank", 1))));
|
|
textalign 4
|
|
textalignx 4
|
|
textscale 0.375
|
|
textfont 3
|
|
backcolor 0 0 0 0.35
|
|
background "white"
|
|
exp text "@MPUI_NEXT_PRE";
|
|
}
|
|
itemDef
|
|
{
|
|
rect -208 140 208 20 3 1
|
|
decoration
|
|
visible when((levelforexperience(getplayerdata("experience")) < int(tablelookup("mp/rankTable.csv", 0, "maxrank", 1)) || getplayerdata("prestige") < int(tablelookup("mp/rankIconTable.csv", 0, "maxprestige", 1))) && (getplayerdata("prestige") < int(tablelookup("mp/rankIconTable.csv", 0, "maxprestige", 1)) && levelforexperience(getplayerdata("experience")) == int(tablelookup("mp/rankTable.csv", 0, "maxrank", 1))));
|
|
textalign 6
|
|
textalignx -22
|
|
textscale 0.375
|
|
textfont 3
|
|
exp text "@MPUI_PRESTIGE";
|
|
}
|
|
itemDef
|
|
{
|
|
rect -18 141 18 18 3 1
|
|
style 3
|
|
decoration
|
|
visible when((levelforexperience(getplayerdata("experience")) < int(tablelookup("mp/rankTable.csv", 0, "maxrank", 1)) || getplayerdata("prestige") < int(tablelookup("mp/rankIconTable.csv", 0, "maxprestige", 1))) && (getplayerdata("prestige") < int(tablelookup("mp/rankIconTable.csv", 0, "maxprestige", 1)) && levelforexperience(getplayerdata("experience")) == int(tablelookup("mp/rankTable.csv", 0, "maxrank", 1))));
|
|
textscale 0.55
|
|
exp material tablelookup("mp/rankIconTable.csv", 0, 0, getplayerdata("prestige") + 2);
|
|
}
|
|
itemDef
|
|
{
|
|
rect -208 140 -208 20 3 1
|
|
style 1
|
|
decoration
|
|
visible when((levelforexperience(getplayerdata("experience")) < int(tablelookup("mp/rankTable.csv", 0, "maxrank", 1)) || getplayerdata("prestige") < int(tablelookup("mp/rankIconTable.csv", 0, "maxprestige", 1))) && (getplayerdata("prestige") < int(tablelookup("mp/rankIconTable.csv", 0, "maxprestige", 1)) && levelforexperience(getplayerdata("experience")) == int(tablelookup("mp/rankTable.csv", 0, "maxrank", 1))));
|
|
textalign 4
|
|
textalignx 4
|
|
textscale 0.375
|
|
textfont 3
|
|
backcolor 0 0 0 0.35
|
|
background "white"
|
|
exp text "@MPUI_NEXT_PRE";
|
|
}
|
|
itemDef
|
|
{
|
|
rect -208 140 208 20 3 1
|
|
decoration
|
|
visible when((levelforexperience(getplayerdata("experience")) < int(tablelookup("mp/rankTable.csv", 0, "maxrank", 1)) || getplayerdata("prestige") < int(tablelookup("mp/rankIconTable.csv", 0, "maxprestige", 1))) && (getplayerdata("prestige") < int(tablelookup("mp/rankIconTable.csv", 0, "maxprestige", 1)) && levelforexperience(getplayerdata("experience")) == int(tablelookup("mp/rankTable.csv", 0, "maxrank", 1))));
|
|
textalign 6
|
|
textalignx -22
|
|
textscale 0.375
|
|
textfont 3
|
|
exp text "@MPUI_PRESTIGE";
|
|
}
|
|
itemDef
|
|
{
|
|
rect -18 141 18 18 3 1
|
|
style 3
|
|
decoration
|
|
visible when((levelforexperience(getplayerdata("experience")) < int(tablelookup("mp/rankTable.csv", 0, "maxrank", 1)) || getplayerdata("prestige") < int(tablelookup("mp/rankIconTable.csv", 0, "maxprestige", 1))) && (getplayerdata("prestige") < int(tablelookup("mp/rankIconTable.csv", 0, "maxprestige", 1)) && levelforexperience(getplayerdata("experience")) == int(tablelookup("mp/rankTable.csv", 0, "maxrank", 1))));
|
|
textscale 0.55
|
|
exp material tablelookup("mp/rankIconTable.csv", 0, 0, getplayerdata("prestige") + 2);
|
|
}
|
|
itemDef
|
|
{
|
|
rect -208 140 -208 20 3 1
|
|
style 1
|
|
decoration
|
|
visible when((levelforexperience(getplayerdata("experience")) < int(tablelookup("mp/rankTable.csv", 0, "maxrank", 1)) || getplayerdata("prestige") < int(tablelookup("mp/rankIconTable.csv", 0, "maxprestige", 1))) == 0);
|
|
textalign 4
|
|
textalignx 4
|
|
textscale 0.375
|
|
textfont 3
|
|
backcolor 0 0 0 0.35
|
|
background "white"
|
|
exp text "@MPUI_NEXT_PRE";
|
|
}
|
|
itemDef
|
|
{
|
|
rect -208 140 208 20 3 1
|
|
decoration
|
|
visible when((levelforexperience(getplayerdata("experience")) < int(tablelookup("mp/rankTable.csv", 0, "maxrank", 1)) || getplayerdata("prestige") < int(tablelookup("mp/rankIconTable.csv", 0, "maxprestige", 1))) == 0);
|
|
textalign 6
|
|
textalignx -4
|
|
textscale 0.375
|
|
textfont 3
|
|
exp text "@MPUI_NONE";
|
|
}
|
|
itemDef
|
|
{
|
|
rect -80 162 80 16 3 1
|
|
style 3
|
|
decoration
|
|
visible 1
|
|
textscale 0.55
|
|
forecolor 1 1 1 0.35
|
|
background "black"
|
|
}
|
|
itemDef
|
|
{
|
|
rect -80 164 25 12 3 1
|
|
style 3
|
|
decoration
|
|
visible 1
|
|
textscale 0.55
|
|
forecolor 1 0.9 0.5 0.6
|
|
background "gradient_fadein"
|
|
exp rect w 0 - 80 * (int(tablelookup("mp/rankTable.csv", 0, levelforexperience(getplayerdata("experience")), 2)) - getplayerdata("experience")) / int(tablelookup("mp/rankTable.csv", 0, levelforexperience(getplayerdata("experience")), 3));
|
|
}
|
|
itemDef
|
|
{
|
|
rect -208 160 -208 20 3 1
|
|
decoration
|
|
visible 1
|
|
textalign 4
|
|
textalignx 4
|
|
textscale 0.375
|
|
textfont 3
|
|
forecolor 1 1 1 0.65
|
|
exp text "@MPUI_XP_REQUIRED_PRE";
|
|
}
|
|
itemDef
|
|
{
|
|
rect -208 160 208 20 3 1
|
|
decoration
|
|
visible 1
|
|
textalign 6
|
|
textalignx -4
|
|
textscale 0.375
|
|
textfont 3
|
|
forecolor 1 1 1 0.65
|
|
exp text int(tablelookup("mp/rankTable.csv", 0, levelforexperience(getplayerdata("experience")), 7) - getplayerdata("experience"));
|
|
}
|
|
itemDef
|
|
{
|
|
rect -208 180 -208 20 3 1
|
|
style 1
|
|
decoration
|
|
visible 1
|
|
textalign 4
|
|
textalignx 4
|
|
textscale 0.375
|
|
textfont 3
|
|
backcolor 0 0 0 0.35
|
|
background "white"
|
|
exp text "@MPUI_SCORE_PRE";
|
|
}
|
|
itemDef
|
|
{
|
|
rect -208 180 208 20 3 1
|
|
decoration
|
|
visible 1
|
|
textalign 6
|
|
textalignx -4
|
|
textscale 0.375
|
|
textfont 3
|
|
exp text getplayerdata("score");
|
|
}
|
|
itemDef
|
|
{
|
|
rect -208 200 -208 20 3 1
|
|
decoration
|
|
visible 1
|
|
textalign 4
|
|
textalignx 4
|
|
textscale 0.375
|
|
textfont 3
|
|
forecolor 1 1 1 0.65
|
|
exp text "@MPUI_WINS_PRE";
|
|
}
|
|
itemDef
|
|
{
|
|
rect -208 200 208 20 3 1
|
|
decoration
|
|
visible 1
|
|
textalign 6
|
|
textalignx -4
|
|
textscale 0.375
|
|
textfont 3
|
|
forecolor 1 1 1 0.65
|
|
exp text getplayerdata("wins");
|
|
}
|
|
itemDef
|
|
{
|
|
rect -208 220 -208 20 3 1
|
|
decoration
|
|
visible 1
|
|
textalign 4
|
|
textalignx 4
|
|
textscale 0.375
|
|
textfont 3
|
|
forecolor 1 1 1 0.65
|
|
exp text "@MPUI_LOSSES_PRE";
|
|
}
|
|
itemDef
|
|
{
|
|
rect -208 220 208 20 3 1
|
|
decoration
|
|
visible 1
|
|
textalign 6
|
|
textalignx -4
|
|
textscale 0.375
|
|
textfont 3
|
|
forecolor 1 1 1 0.65
|
|
exp text getplayerdata("losses");
|
|
}
|
|
itemDef
|
|
{
|
|
rect -208 240 -208 20 3 1
|
|
decoration
|
|
visible 1
|
|
textalign 4
|
|
textalignx 4
|
|
textscale 0.375
|
|
textfont 3
|
|
forecolor 1 1 1 0.65
|
|
exp text "@MPUI_TIES_PRE";
|
|
}
|
|
itemDef
|
|
{
|
|
rect -208 240 208 20 3 1
|
|
decoration
|
|
visible 1
|
|
textalign 6
|
|
textalignx -4
|
|
textscale 0.375
|
|
textfont 3
|
|
forecolor 1 1 1 0.65
|
|
exp text getplayerdata("ties");
|
|
}
|
|
itemDef
|
|
{
|
|
rect -208 260 -208 20 3 1
|
|
decoration
|
|
visible 1
|
|
textalign 4
|
|
textalignx 4
|
|
textscale 0.375
|
|
textfont 3
|
|
forecolor 1 1 1 0.65
|
|
exp text "@MPUI_WINSTREAK_PRE";
|
|
}
|
|
itemDef
|
|
{
|
|
rect -208 260 208 20 3 1
|
|
decoration
|
|
visible 1
|
|
textalign 6
|
|
textalignx -4
|
|
textscale 0.375
|
|
textfont 3
|
|
forecolor 1 1 1 0.65
|
|
exp text getplayerdata("winStreak");
|
|
}
|
|
itemDef
|
|
{
|
|
rect -208 280 -208 20 3 1
|
|
style 1
|
|
decoration
|
|
visible 1
|
|
textalign 4
|
|
textalignx 4
|
|
textscale 0.375
|
|
textfont 3
|
|
backcolor 0 0 0 0.35
|
|
background "white"
|
|
exp text "@MPUI_KILLS_PRE";
|
|
}
|
|
itemDef
|
|
{
|
|
rect -208 280 208 20 3 1
|
|
decoration
|
|
visible 1
|
|
textalign 6
|
|
textalignx -4
|
|
textscale 0.375
|
|
textfont 3
|
|
forecolor 1 1 1 0.65
|
|
exp text getplayerdata("kills");
|
|
}
|
|
itemDef
|
|
{
|
|
rect -208 300 -208 20 3 1
|
|
decoration
|
|
visible 1
|
|
textalign 4
|
|
textalignx 4
|
|
textscale 0.375
|
|
textfont 3
|
|
forecolor 1 1 1 0.65
|
|
exp text "@MPUI_HEADSHOTS_PRE";
|
|
}
|
|
itemDef
|
|
{
|
|
rect -208 300 208 20 3 1
|
|
decoration
|
|
visible 1
|
|
textalign 6
|
|
textalignx -4
|
|
textscale 0.375
|
|
textfont 3
|
|
forecolor 1 1 1 0.65
|
|
exp text getplayerdata("headshots");
|
|
}
|
|
itemDef
|
|
{
|
|
rect -208 320 -208 20 3 1
|
|
decoration
|
|
visible 1
|
|
textalign 4
|
|
textalignx 4
|
|
textscale 0.375
|
|
textfont 3
|
|
forecolor 1 1 1 0.65
|
|
exp text "@MPUI_ASSISTS_PRE";
|
|
}
|
|
itemDef
|
|
{
|
|
rect -208 320 208 20 3 1
|
|
decoration
|
|
visible 1
|
|
textalign 6
|
|
textalignx -4
|
|
textscale 0.375
|
|
textfont 3
|
|
forecolor 1 1 1 0.65
|
|
exp text getplayerdata("assists");
|
|
}
|
|
itemDef
|
|
{
|
|
rect -208 340 -208 20 3 1
|
|
decoration
|
|
visible 1
|
|
textalign 4
|
|
textalignx 4
|
|
textscale 0.375
|
|
textfont 3
|
|
forecolor 1 1 1 0.65
|
|
exp text "@MPUI_STREAK_PRE";
|
|
}
|
|
itemDef
|
|
{
|
|
rect -208 340 208 20 3 1
|
|
decoration
|
|
visible 1
|
|
textalign 6
|
|
textalignx -4
|
|
textscale 0.375
|
|
textfont 3
|
|
forecolor 1 1 1 0.65
|
|
exp text getplayerdata("killStreak");
|
|
}
|
|
itemDef
|
|
{
|
|
rect -208 360 -208 20 3 1
|
|
style 1
|
|
decoration
|
|
visible 1
|
|
textalign 4
|
|
textalignx 4
|
|
textscale 0.375
|
|
textfont 3
|
|
backcolor 0 0 0 0.35
|
|
background "white"
|
|
exp text "@MPUI_DEATHS_PRE";
|
|
}
|
|
itemDef
|
|
{
|
|
rect -208 360 208 20 3 1
|
|
decoration
|
|
visible 1
|
|
textalign 6
|
|
textalignx -4
|
|
textscale 0.375
|
|
textfont 3
|
|
exp text getplayerdata("deaths");
|
|
}
|
|
itemDef
|
|
{
|
|
rect -208 380 -208 20 3 1
|
|
style 1
|
|
decoration
|
|
visible 1
|
|
textalign 4
|
|
textalignx 4
|
|
textscale 0.375
|
|
textfont 3
|
|
backcolor 0 0 0 0.35
|
|
background "white"
|
|
exp text "@MPUI_TIME_PLAYED_PRE";
|
|
}
|
|
itemDef
|
|
{
|
|
rect -208 380 208 20 3 1
|
|
decoration
|
|
visible 1
|
|
textalign 6
|
|
textalignx -4
|
|
textscale 0.375
|
|
textfont 3
|
|
exp text secondsastime(getplayerdata("timePlayedAllies") + getplayerdata("timePlayedOpfor") + getplayerdata("timePlayedOther"));
|
|
}
|
|
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;
|
|
}
|
|
}
|
|
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;
|
|
}
|
|
}
|
|
}
|
|
}
|