Initial commit of IW4x rawfiles as of IW4x version 0.6.1

This commit is contained in:
Dv4L committed 2021-04-04 18:20:03 +02:00
1 parent 123c13c92e
commit aa7fa3afcf
705 files changed
+287401

No files matched your search

+311
View File
@@ -0,0 +1,311 @@
{
menuDef
{
name "auconfirm"
rect -150 -84 300 84 2 2
popup
legacySplitScreenScale
style 1
forecolor 1 1 1 1
backcolor 1 1 1 1
background "white"
focuscolor 1 1 1 1
onOpen
{
setLocalVarInt "ui_centerPopup" ( 1 );
exec "setfromdvar ui_name name";
setfocus "nameEntry";
}
onClose
{
setLocalVarInt "ui_centerPopup" ( 0 );
}
onEsc
{
close self;
}
itemDef
{
rect -1004 -564 1708 960 2 2
decoration
visible 1
style 1
forecolor 1 1 1 1
backcolor 0 0 0 0.35
background "white"
textscale 0.55
}
itemDef
{
rect -1004 -564 1708 960 2 2
decoration
visible 1
style 1
forecolor 1 1 1 1
backcolor 1 1 1 1
background "xpbar_stencilbase"
textscale 0.55
}
itemDef
{
rect 0 0 300 84 2 2
decoration
visible 1
style 1
forecolor 1 1 1 1
backcolor 0.5 0.5 0.5 1
background "white"
textscale 0.55
}
itemDef
{
rect -150 -44 1708 480 2 2
decoration
visible 1
style 3
forecolor 1 1 1 0.75
background "mw2_popup_bg_fogstencil"
textscale 0.55
exp rect x ( 0 - ( ( float( milliseconds( ) % 60000 ) / 60000 ) * ( 854 ) ) )
}
itemDef
{
rect -150 -44 -1708 -480 2 2
decoration
visible 1
style 3
forecolor 0.85 0.85 0.85 1
background "mw2_popup_bg_fogscroll"
textscale 0.55
exp rect x ( 0 - ( ( float( milliseconds( ) % 60000 ) / 60000 ) * ( 854 ) ) )
}
itemDef
{
rect 0 0 300 0 2 2
decoration
visible 1
style 3
forecolor 1 1 1 1
background "mockup_popup_bg_stencilfill"
textscale 0.55
exp rect h ( ( 24 + 3 * 20 ) )
}
itemDef
{
rect -150 -44 -1708 -480 2 2
decoration
visible 1
style 3
forecolor 1 1 1 0.75
background "mw2_popup_bg_fogstencil"
textscale 0.55
exp rect x ( ( - 854 ) + ( ( float( milliseconds( ) % 50000 ) / 50000 ) * ( 854 ) ) )
}
itemDef
{
rect -150 -44 -1708 -480 2 2
decoration
visible 1
style 3
forecolor 0.85 0.85 0.85 1
background "mw2_popup_bg_fogscroll"
textscale 0.55
exp rect x ( ( - 854 ) + ( ( float( milliseconds( ) % 50000 ) / 50000 ) * ( 854 ) ) )
}
itemDef
{
rect -150 -44 300 0 1 1
decoration
visible 1
style 3
forecolor 1 1 1 0
background "small_box_lightfx"
textscale 0.55
exp rect h ( ( 24 + 3 * 20 ) )
}
itemDef
{
rect -64 -64 64 64 2 2
decoration
visible 1
style 3
forecolor 0 0 0 1
background "drop_shadow_tl"
textscale 0.55
visible when ( 1 )
}
itemDef
{
rect 0 -64 300 64 2 2
decoration
visible 1
style 3
forecolor 0 0 0 1
background "drop_shadow_t"
textscale 0.55
visible when ( 1 )
}
itemDef
{
rect 300 -64 64 64 2 2
decoration
visible 1
style 3
forecolor 0 0 0 1
background "drop_shadow_tr"
textscale 0.55
visible when ( 1 )
}
itemDef
{
rect 300 0 64 0 2 2
decoration
visible 1
style 3
forecolor 0 0 0 1
background "drop_shadow_r"
textscale 0.55
exp rect h ( ( 24 + 3 * 20 ) )
visible when ( 1 )
}
itemDef
{
rect 300 0 64 64 2 2
decoration
visible 1
style 3
forecolor 0 0 0 1
background "drop_shadow_br"
textscale 0.55
exp rect y ( ( 0 - 0 ) + ( ( 24 + 3 * 20 ) ) )
visible when ( 1 )
}
itemDef
{
rect 0 0 300 64 2 2
decoration
visible 1
style 3
forecolor 0 0 0 1
background "drop_shadow_b"
textscale 0.55
exp rect y ( ( 0 - 0 ) + ( ( 24 + 3 * 20 ) ) )
visible when ( 1 )
}
itemDef
{
rect -64 0 64 64 2 2
decoration
visible 1
style 3
forecolor 0 0 0 1
background "drop_shadow_bl"
textscale 0.55
exp rect y ( ( 0 - 0 ) + ( ( 24 + 3 * 20 ) ) )
visible when ( 1 )
}
itemDef
{
rect -64 0 64 0 2 2
decoration
visible 1
style 3
forecolor 0 0 0 1
background "drop_shadow_l"
textscale 0.55
exp rect h ( ( 24 + 3 * 20 ) )
visible when ( 1 )
}
itemDef
{
rect 0 0 300 24 2 2
decoration
visible 1
style 1
forecolor 1 1 1 1
background "gradient_fadein"
textfont 9
textalign 5
textalignx -4
textscale 0.375
text "@MENU_DOWNLOAD_AUTOUPDATE_PATCH"
}
itemDef
{
name "yes"
rect 6 44 292 20 2 2
visible 1
group "mw2_popup_button"
style 1
forecolor 1 1 1 1
disablecolor 0.6 0.55 0.55 1
background "popup_button_selection_bar"
type 1
textfont 3
textalign 6
textalignx -24
textscale 0.375
text "@MENU_YES"
visible when ( 1 )
action
{
play "mouse_click";
exec "getautoupdate";
}
onFocus
{
play "mouse_over";
if ( dvarstring( "gameMode" ) != "mp" )
{
setItemColor "mw2_popup_button" backcolor 0 0 0 0;
}
setItemColor self backcolor 0 0 0 1;
setLocalVarBool "ui_popupAButton" ( 1 );
}
leaveFocus
{
setItemColor self backcolor 1 1 1 0;
setLocalVarBool "ui_popupAButton" ( 0 );
}
}
itemDef
{
name "no"
rect 6 64 292 20 2 2
visible 1
group "mw2_popup_button"
style 1
forecolor 1 1 1 1
disablecolor 0.6 0.55 0.55 1
background "popup_button_selection_bar"
type 1
textfont 3
textalign 6
textalignx -24
textscale 0.375
text "@MENU_NO"
visible when ( 1 )
action
{
play "mouse_click";
exec "setfromdvar name ui_name";
close self;
}
onFocus
{
play "mouse_over";
if ( dvarstring( "gameMode" ) != "mp" )
{
setItemColor "mw2_popup_button" backcolor 0 0 0 0;
}
setItemColor self backcolor 0 0 0 1;
setLocalVarBool "ui_popupAButton" ( 1 );
}
leaveFocus
{
setItemColor self backcolor 1 1 1 0;
setLocalVarBool "ui_popupAButton" ( 0 );
}
}
}
}
+861
View File
@@ -0,0 +1,861 @@
#ifndef PLAYERCARD_POS_Y
#define PLAYERCARD_POS_Y 28
#endif
#ifndef MENU_PANEL_STATS_POS_Y
#define MENU_PANEL_STATS_POS_Y 100
#endif
#ifdef ENABLE_CLANTAG
#define MENU_ITEM_PLAYERCARD_BOTTOM \
itemDef \
{ \
name "playercard_clantag" \
rect 0 0 208 20 HORIZONTAL_ALIGN_RIGHT VERTICAL_ALIGN_TOP \
decoration \
visible 1 \
style WINDOW_STYLE_FILLED \
foreColor CHOICE_TEXTCOLOR \
textFont UI_FONT_SMALL \
textAlign ITEM_ALIGN_MIDDLE_LEFT \
textAlignX 2 \
textScale CHOICE_TEXTSIZE \
exp rect x ((-208)) \
exp rect y ((PLAYERCARD_POS_Y) + 48) \
visible when ((getplayercardinfo(0, 1, 0) != 0) && (getplayercardinfo(9, 1, 0) != "")) \
exp text ("[" + getplayercardinfo(9, 1, 0) + "]") \
} \
itemDef \
{ \
name "playercard_killstreak1" \
rect 0 0 20 20 HORIZONTAL_ALIGN_RIGHT VERTICAL_ALIGN_TOP \
style WINDOW_STYLE_SHADER \
foreColor CHOICE_TEXTCOLOR \
decoration \
textScale 0.55 \
visible 1 \
exp material (tableLookup("mp/killstreakTable.csv", 1, (getPlayerData("killstreaks", 0)), 16)) \
exp rect x ((-140) + 32) \
exp rect y ((PLAYERCARD_POS_Y + 48)) \
} \
itemDef \
{ \
name "playercard_killstreak2" \
rect 0 0 20 20 HORIZONTAL_ALIGN_RIGHT VERTICAL_ALIGN_TOP \
style WINDOW_STYLE_SHADER \
foreColor CHOICE_TEXTCOLOR \
decoration \
textScale 0.55 \
visible 1 \
exp material (tableLookup("mp/killstreakTable.csv", 1, (getPlayerData("killstreaks", 1)), 16)) \
exp rect x ((-140) + 53) \
exp rect y ((PLAYERCARD_POS_Y + 48)) \
} \
itemDef \
{ \
name "playercard_killstreak3" \
rect 0 0 20 20 HORIZONTAL_ALIGN_RIGHT VERTICAL_ALIGN_TOP \
style WINDOW_STYLE_SHADER \
foreColor CHOICE_TEXTCOLOR \
decoration \
textScale 0.55 \
visible 1 \
exp material (tableLookup("mp/killstreakTable.csv", 1, (getPlayerData("killstreaks", 2)), 16)) \
exp rect x ((-140) + 74) \
exp rect y ((PLAYERCARD_POS_Y + 48)) \
}
#else
#define MENU_ITEM_PLAYERCARD_BOTTOM \
itemDef \
{ \
name "playercard_clantag" \
rect 0 0 208 20 HORIZONTAL_ALIGN_RIGHT VERTICAL_ALIGN_TOP \
decoration \
visible 1 \
style WINDOW_STYLE_FILLED \
foreColor CHOICE_TEXTCOLOR \
textFont UI_FONT_SMALL \
textAlign ITEM_ALIGN_MIDDLE_LEFT \
textAlignX 8 \
textScale CHOICE_TEXTSIZE \
exp rect x ((-208)) \
exp rect y ((PLAYERCARD_POS_Y) + 48) \
visible when ((getplayercardinfo(0, 1, 0) != 0) && (getplayercardinfo(9, 1, 0) != "")) \
exp text ("[" + getplayercardinfo(9, 1, 0) + "]") \
} \
itemDef \
{ \
name "playercard_killstreak1" \
rect 0 0 20 20 HORIZONTAL_ALIGN_RIGHT VERTICAL_ALIGN_TOP \
style WINDOW_STYLE_SHADER \
foreColor CHOICE_TEXTCOLOR \
decoration \
textScale 0.55 \
visible 1 \
exp material (tableLookup("mp/killstreakTable.csv", 1, (getPlayerData("killstreaks", 0)), 16)) \
exp rect x ((-208) + 8) \
exp rect y ((PLAYERCARD_POS_Y + 48)) \
} \
itemDef \
{ \
name "playercard_killstreak2" \
rect 0 0 20 20 HORIZONTAL_ALIGN_RIGHT VERTICAL_ALIGN_TOP \
style WINDOW_STYLE_SHADER \
foreColor CHOICE_TEXTCOLOR \
decoration \
textScale 0.55 \
visible 1 \
exp material (tableLookup("mp/killstreakTable.csv", 1, (getPlayerData("killstreaks", 1)), 16)) \
exp rect x ((-208) + 29) \
exp rect y ((PLAYERCARD_POS_Y + 48)) \
} \
itemDef \
{ \
name "playercard_killstreak3" \
rect 0 0 20 20 HORIZONTAL_ALIGN_RIGHT VERTICAL_ALIGN_TOP \
style WINDOW_STYLE_SHADER \
foreColor CHOICE_TEXTCOLOR \
decoration \
textScale 0.55 \
visible 1 \
exp material (tableLookup("mp/killstreakTable.csv", 1, (getPlayerData("killstreaks", 2)), 16)) \
exp rect x ((-208) + 50) \
exp rect y ((PLAYERCARD_POS_Y + 48)) \
}
#endif
#define MENU_ITEM_PLAYERCARD \
itemDef \
{ \
name "playercard_background" \
rect 0 0 208 70 HORIZONTAL_ALIGN_RIGHT VERTICAL_ALIGN_TOP \
decoration \
visible 1 \
style WINDOW_STYLE_SHADER \
foreColor 0 0 0 0.25 \
background "white" \
textScale 0.55 \
exp rect x ((-208)) \
exp rect y ((PLAYERCARD_POS_Y)) \
visible when (getplayercardinfo(0, 1, 0) != 0) \
} \
itemDef \
{ \
name "playercard_foreground" \
rect 0 0 208 70 HORIZONTAL_ALIGN_RIGHT VERTICAL_ALIGN_TOP \
decoration \
visible 1 \
style WINDOW_STYLE_FILLED \
foreColor CHOICE_TEXTCOLOR \
backColor 1 1 1 1 \
background "cardtitle_248x48" \
textFont UI_FONT_OBJECTIVE \
textAlign ITEM_ALIGN_TOP_LEFT \
textAlignY -20 \
textScale CHOICE_TEXTSIZE \
exp rect x ((-208)) \
exp rect y ((PLAYERCARD_POS_Y)) \
visible when (getplayercardinfo(0, 1, 0) != 0) \
} \
itemDef \
{ \
name "playercard_title" \
rect 0 0 160 32 HORIZONTAL_ALIGN_RIGHT VERTICAL_ALIGN_TOP \
visible 1 \
style WINDOW_STYLE_FILLED \
type ITEM_TYPE_BUTTON \
foreColor CHOICE_TEXTCOLOR \
backColor 1 1 1 1 \
textFont UI_FONT_SMALL \
textStyle 8 \
textAlign ITEM_ALIGN_MIDDLE_CENTER \
textScale CHOICE_TEXTSIZE \
exp rect x (-208) \
exp rect y (PLAYERCARD_POS_Y - 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)) \
visible when (getplayercardinfo(0, 1, 0) != 0) \
exp text ("@" + tablelookupbyrow("mp/cardTitleTable.csv", getplayercardinfo(1 ,1 ,0), 1)) \
exp material (tablelookupbyrow("mp/cardTitleTable.csv", getplayercardinfo(1, 1, 0), 2)) \
onFocus \
{ \
play CHOICE_FOCUS_SOUND; \
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 CHOICE_CLICK_SOUND; \
if (isItemUnlocked("playercard_title")) \
{ \
open "menu_playercard_title_popup"; \
setPlayerData("featureNew", "playercard_title", "false"); \
} \
} \
} \
itemDef \
{ \
name "playercard_name" \
rect 0 0 160 18 HORIZONTAL_ALIGN_RIGHT VERTICAL_ALIGN_TOP \
visible 1 \
type ITEM_TYPE_BUTTON \
foreColor CHOICE_TEXTCOLOR \
textFont 10 \
textAlign ITEM_ALIGN_TOP_LEFT \
textAlignX 8 \
textStyle 8 \
textScale 0.3333 \
exp rect x (-208) \
exp rect y (PLAYERCARD_POS_Y + 28) \
visible when (getplayercardinfo(0, 1, 0) != 0) \
exp text (getplayercardinfo(8, 1, 0)) \
onFocus \
{ \
play CHOICE_FOCUS_SOUND; \
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 CHOICE_CLICK_SOUND; \
open "popup_playername"; \
} \
} \
itemDef \
{ \
name "playercard_icon" \
rect 0 0 48 48 HORIZONTAL_ALIGN_RIGHT VERTICAL_ALIGN_TOP \
visible 1 \
style WINDOW_STYLE_SHADER \
type ITEM_TYPE_BUTTON \
foreColor CHOICE_TEXTCOLOR \
textScale 0.55 \
exp rect x ((-208) + 160) \
exp rect y ((PLAYERCARD_POS_Y)) \
visible when (getplayercardinfo(0, 1, 0) != 0) \
exp material (tablelookupbyrow("mp/cardIconTable.csv", getplayercardinfo(2, 1, 0), 1)) \
onFocus \
{ \
play CHOICE_FOCUS_SOUND; \
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 CHOICE_CLICK_SOUND; \
if(isItemUnlocked("playercard_icon")) \
{ \
open "menu_playercard_icon_popup"; \
setPlayerData ("featureNew", "playercard_icon", "false"); \
} \
} \
} \
itemDef \
{ \
name "playercard_rankicon" \
rect 0 0 20 20 HORIZONTAL_ALIGN_RIGHT VERTICAL_ALIGN_TOP \
decoration \
visible 1 \
style WINDOW_STYLE_FILLED \
foreColor CHOICE_TEXTCOLOR \
backColor 1 1 1 1 \
textScale 0.55 \
exp rect x ((-208) + 164) \
exp rect y ((PLAYERCARD_POS_Y) + 48) \
visible when ((getplayercardinfo(0, 1, 0) != 0) && (getplayercardinfo(4, 1, 0) >= 0)) \
exp material (tablelookup("mp/rankIconTable.csv", 0, getplayercardinfo(4, 1, 0), (getplayercardinfo(5, 1, 0) + 1))) \
} \
itemDef \
{ \
name "playercard_rank" \
rect 0 0 20 20 HORIZONTAL_ALIGN_RIGHT VERTICAL_ALIGN_TOP \
decoration \
visible 1 \
foreColor CHOICE_TEXTCOLOR \
textFont UI_FONT_SMALL \
textAlign ITEM_ALIGN_MIDDLE_CENTER \
textAlignX 20 \
textScale CHOICE_TEXTSIZE \
textStyle 8 \
exp rect x ((-208) + 164) \
exp rect y ((PLAYERCARD_POS_Y) + 48) \
visible when ((getplayercardinfo(0, 1, 0) != 0) && (getplayercardinfo(4, 1, 0) >= 0)) \
exp text (tablelookup("mp/rankTable.csv", 0, getplayercardinfo(4, 1, 0), 14)) \
} \
MENU_ITEM_PLAYERCARD_BOTTOM
#define MENU_ITEM_PLAYERSTATS \
itemDef \
{ \
rect -208 MENU_PANEL_STATS_POS_Y -208 260 HORIZONTAL_ALIGN_RIGHT VERTICAL_ALIGN_TOP \
decoration \
visible 1 \
style WINDOW_STYLE_SHADER \
foreColor 1 1 1 0.1 \
background "gradient_fadein" \
textScale 0.55 \
} \
itemDef \
{ \
rect -208 MENU_PANEL_STATS_POS_Y -208 20 HORIZONTAL_ALIGN_RIGHT VERTICAL_ALIGN_TOP \
decoration \
visible 1 \
style WINDOW_STYLE_FILLED \
foreColor CHOICE_TEXTCOLOR \
backColor 0 0 0 0.35 \
background "white" \
textfont UI_FONT_SMALL \
textAlign ITEM_ALIGN_TOP_LEFT \
textAlignX 4 \
textScale CHOICE_TEXTSIZE \
visible 1 \
exp text ("@MPUI_RANK_PRE") \
} \
itemDef \
{ \
rect -208 MENU_PANEL_STATS_POS_Y 208 20 HORIZONTAL_ALIGN_RIGHT VERTICAL_ALIGN_TOP \
decoration \
visible 1 \
foreColor CHOICE_TEXTCOLOR \
textFont UI_FONT_SMALL \
textAlign ITEM_ALIGN_TOP_RIGHT \
textAlignx -22 \
textscale CHOICE_TEXTSIZE \
exp text ("@" + tablelookup("mp/ranktable.csv", 0, levelforexperience(getplayerdata("experience")), 5)) \
} \
itemDef \
{ \
rect -18 (MENU_PANEL_STATS_POS_Y + 1) 18 18 HORIZONTAL_ALIGN_RIGHT VERTICAL_ALIGN_TOP \
decoration \
visible 1 \
style WINDOW_STYLE_SHADER \
foreColor CHOICE_TEXTCOLOR \
textScale 0.55 \
exp material (tablelookup("mp/rankIconTable.csv", 0, levelforexperience(getplayerdata("experience")) , getplayerdata("prestige") + 1)) \
} \
itemDef \
{ \
rect -208 (MENU_PANEL_STATS_POS_Y + 20) -208 20 HORIZONTAL_ALIGN_RIGHT VERTICAL_ALIGN_TOP \
decoration \
visible 1 \
foreColor 1 1 1 0.65 \
textFont UI_FONT_SMALL \
textAlign ITEM_ALIGN_TOP_LEFT \
textAlignX 4 \
textScale CHOICE_TEXTSIZE \
exp text ( "@MPUI_XP_PRE" ) \
} \
itemDef \
{ \
rect -208 (MENU_PANEL_STATS_POS_Y + 20) 208 20 HORIZONTAL_ALIGN_RIGHT VERTICAL_ALIGN_TOP \
decoration \
visible 1 \
foreColor 1 1 1 0.65 \
textFont UI_FONT_SMALL \
textAlign ITEM_ALIGN_TOP_RIGHT \
textAlignX -4 \
textScale CHOICE_TEXTSIZE \
exp text (getplayerdata("experience")) \
} \
itemDef \
{ \
rect -208 (MENU_PANEL_STATS_POS_Y + 40) -208 20 HORIZONTAL_ALIGN_RIGHT VERTICAL_ALIGN_TOP \
decoration \
visible 1 \
style WINDOW_STYLE_FILLED \
foreColor CHOICE_TEXTCOLOR \
backColor 0 0 0 0.35 \
background "white" \
textFont UI_FONT_SMALL \
textAlign ITEM_ALIGN_TOP_LEFT \
textAlignX 4 \
textscale CHOICE_TEXTSIZE \
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) \
exp text ("@MPUI_NEXT_PRE") \
} \
itemDef \
{ \
rect -208 (MENU_PANEL_STATS_POS_Y + 40) 208 20 HORIZONTAL_ALIGN_RIGHT VERTICAL_ALIGN_TOP \
decoration \
visible 1 \
foreColor CHOICE_TEXTCOLOR \
textFont UI_FONT_SMALL \
textAlign ITEM_ALIGN_TOP_RIGHT \
textAlignX -22 \
textScale CHOICE_TEXTSIZE \
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) \
exp text ("@" + tablelookup("mp/ranktable.csv", 0, levelforexperience(getplayerdata("experience")) + 1, 5)) \
} \
itemDef \
{ \
rect -18 (MENU_PANEL_STATS_POS_Y + 41) 18 18 HORIZONTAL_ALIGN_RIGHT VERTICAL_ALIGN_TOP \
decoration \
visible 1 \
style WINDOW_STYLE_SHADER \
foreColor CHOICE_TEXTCOLOR \
textscale 0.55 \
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) \
exp material (tablelookup("mp/rankIconTable.csv", 0, levelforexperience(getplayerdata("experience")) + 1, getplayerdata("prestige") + 1)) \
} \
itemDef \
{ \
rect -208 (MENU_PANEL_STATS_POS_Y + 40) -208 20 HORIZONTAL_ALIGN_RIGHT VERTICAL_ALIGN_TOP \
decoration \
visible 1 \
style WINDOW_STYLE_FILLED \
foreColor CHOICE_TEXTCOLOR \
backColor 0 0 0 0.35 \
background "white" \
textFont UI_FONT_SMALL \
textAlign ITEM_ALIGN_TOP_LEFT \
textAlignX 4 \
textScale CHOICE_TEXTSIZE \
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)))) \
exp text ("@MPUI_NEXT_PRE") \
} \
itemDef \
{ \
rect -208 (MENU_PANEL_STATS_POS_Y + 40) 208 20 HORIZONTAL_ALIGN_RIGHT VERTICAL_ALIGN_TOP \
decoration \
visible 1 \
foreColor CHOICE_TEXTCOLOR \
textFont UI_FONT_SMALL \
textAlign ITEM_ALIGN_TOP_RIGHT \
textAlignX -22 \
textScale CHOICE_TEXTSIZE \
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)))) \
exp text ("@MPUI_PRESTIGE") \
} \
itemDef \
{ \
rect -18 (MENU_PANEL_STATS_POS_Y + 41) 18 18 HORIZONTAL_ALIGN_RIGHT VERTICAL_ALIGN_TOP \
decoration \
visible 1 \
style WINDOW_STYLE_SHADER \
foreColor CHOICE_TEXTCOLOR \
textScale 0.55 \
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)))) \
exp material (tablelookup("mp/rankIconTable.csv", 0, 0, getplayerdata("prestige") + 2)) \
} \
itemDef \
{ \
rect -208 (MENU_PANEL_STATS_POS_Y + 40) -208 20 HORIZONTAL_ALIGN_RIGHT VERTICAL_ALIGN_TOP \
decoration \
visible 1 \
style WINDOW_STYLE_FILLED \
foreColor CHOICE_TEXTCOLOR \
backColor 0 0 0 0.35 \
background "white" \
textFont UI_FONT_SMALL \
textAlign ITEM_ALIGN_TOP_LEFT \
textAlignX 4 \
textScale CHOICE_TEXTSIZE \
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)))) \
exp text ("@MPUI_NEXT_PRE") \
} \
itemDef \
{ \
rect -208 (MENU_PANEL_STATS_POS_Y + 40) 208 20 HORIZONTAL_ALIGN_RIGHT VERTICAL_ALIGN_TOP \
decoration \
visible 1 \
foreColor CHOICE_TEXTCOLOR \
textFont UI_FONT_SMALL \
textAlign ITEM_ALIGN_TOP_RIGHT \
textAlignX -22 \
textScale CHOICE_TEXTSIZE \
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)))) \
exp text ("@MPUI_PRESTIGE") \
} \
itemDef \
{ \
rect -18 (MENU_PANEL_STATS_POS_Y + 41) 18 18 HORIZONTAL_ALIGN_RIGHT VERTICAL_ALIGN_TOP \
decoration \
visible 1 \
style WINDOW_STYLE_SHADER \
foreColor CHOICE_TEXTCOLOR \
textScale 0.55 \
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)))) \
exp material (tablelookup("mp/rankIconTable.csv", 0, 0, getplayerdata("prestige") + 2)) \
} \
itemDef \
{ \
rect -208 (MENU_PANEL_STATS_POS_Y + 40) -208 20 HORIZONTAL_ALIGN_RIGHT VERTICAL_ALIGN_TOP \
decoration \
visible 1 \
style WINDOW_STYLE_FILLED \
foreColor CHOICE_TEXTCOLOR \
backColor 0 0 0 0.35 \
background "white" \
textFont UI_FONT_SMALL \
textAlign ITEM_ALIGN_TOP_LEFT \
textAlignX 4 \
textScale CHOICE_TEXTSIZE \
visible when ((levelforexperience(getplayerdata("experience")) < int(tablelookup("mp/rankTable.csv", 0, "maxrank", 1)) || getplayerdata("prestige") < int(tablelookup("mp/rankIconTable.csv", 0, "maxprestige", 1))) == 0) \
exp text ("@MPUI_NEXT_PRE") \
} \
itemDef \
{ \
rect -208 (MENU_PANEL_STATS_POS_Y + 40) 208 20 HORIZONTAL_ALIGN_RIGHT VERTICAL_ALIGN_TOP \
decoration \
visible 1 \
foreColor CHOICE_TEXTCOLOR \
textFont UI_FONT_SMALL \
textAlign ITEM_ALIGN_TOP_RIGHT \
textAlignX -4 \
textScale CHOICE_TEXTSIZE \
visible when ((levelforexperience(getplayerdata("experience")) < int(tablelookup("mp/rankTable.csv", 0, "maxrank", 1)) || getplayerdata("prestige") < int(tablelookup("mp/rankIconTable.csv", 0, "maxprestige", 1))) == 0) \
exp text ("@MPUI_NONE") \
}\
itemDef \
{ \
rect -80 (MENU_PANEL_STATS_POS_Y + 62) 80 16 HORIZONTAL_ALIGN_RIGHT VERTICAL_ALIGN_TOP \
decoration \
visible 1 \
style WINDOW_STYLE_SHADER \
foreColor 1 1 1 0.35 \
background "black" \
textScale 0.55 \
} \
itemDef \
{ \
rect -80 (MENU_PANEL_STATS_POS_Y + 64) 25 12 HORIZONTAL_ALIGN_RIGHT VERTICAL_ALIGN_TOP \
decoration \
visible 1 \
style WINDOW_STYLE_SHADER \
foreColor 1 0.9 0.5 0.6 \
background "gradient_fadein" \
textScale 0.55 \
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 (MENU_PANEL_STATS_POS_Y + 60) -208 20 HORIZONTAL_ALIGN_RIGHT VERTICAL_ALIGN_TOP \
decoration \
visible 1 \
foreColor 1 1 1 0.65 \
textFont UI_FONT_SMALL \
textAlign ITEM_ALIGN_TOP_LEFT \
textAlignX 4 \
textScale CHOICE_TEXTSIZE \
exp text ("@MPUI_XP_REQUIRED_PRE") \
} \
itemDef \
{ \
rect -208 (MENU_PANEL_STATS_POS_Y + 60) 208 20 HORIZONTAL_ALIGN_RIGHT VERTICAL_ALIGN_TOP \
decoration \
visible 1 \
foreColor 1 1 1 0.65 \
textFont UI_FONT_SMALL \
textAlign ITEM_ALIGN_TOP_RIGHT \
textAlignX -4 \
textScale CHOICE_TEXTSIZE \
exp text (int(tablelookup("mp/rankTable.csv", 0, levelforexperience(getplayerdata("experience")), 7) - getplayerdata("experience"))) \
} \
itemDef \
{ \
rect -208 (MENU_PANEL_STATS_POS_Y + 80) -208 20 HORIZONTAL_ALIGN_RIGHT VERTICAL_ALIGN_TOP \
decoration \
visible 1 \
style WINDOW_STYLE_FILLED \
foreColor CHOICE_TEXTCOLOR \
backColor 0 0 0 0.35 \
background "white" \
textFont UI_FONT_SMALL \
textAlign ITEM_ALIGN_TOP_LEFT \
textAlignX 4 \
textScale CHOICE_TEXTSIZE \
exp text ("@MPUI_SCORE_PRE") \
} \
itemDef \
{ \
rect -208 (MENU_PANEL_STATS_POS_Y + 80) 208 20 HORIZONTAL_ALIGN_RIGHT VERTICAL_ALIGN_TOP \
decoration \
visible 1 \
foreColor CHOICE_TEXTCOLOR \
textFont UI_FONT_SMALL \
textAlign ITEM_ALIGN_TOP_RIGHT \
textAlignX -4 \
textScale CHOICE_TEXTSIZE \
exp text (getplayerdata("score")) \
} \
itemDef \
{ \
rect -208 (MENU_PANEL_STATS_POS_Y + 100) -208 20 HORIZONTAL_ALIGN_RIGHT VERTICAL_ALIGN_TOP \
decoration \
visible 1 \
foreColor 1 1 1 0.65 \
textFont UI_FONT_SMALL \
textAlign ITEM_ALIGN_TOP_LEFT \
textAlignX 4 \
textScale CHOICE_TEXTSIZE \
exp text ("@MPUI_WINS_PRE") \
} \
itemDef \
{ \
rect -208 (MENU_PANEL_STATS_POS_Y + 100) 208 20 HORIZONTAL_ALIGN_RIGHT VERTICAL_ALIGN_TOP \
decoration \
visible 1 \
foreColor 1 1 1 0.65 \
textFont UI_FONT_SMALL \
textAlign ITEM_ALIGN_TOP_RIGHT \
textAlignX -4 \
textScale CHOICE_TEXTSIZE \
exp text (getplayerdata("wins")) \
} \
itemDef \
{ \
rect -208 (MENU_PANEL_STATS_POS_Y + 120) -208 20 HORIZONTAL_ALIGN_RIGHT VERTICAL_ALIGN_TOP \
decoration \
visible 1 \
foreColor 1 1 1 0.65 \
textFont UI_FONT_SMALL \
textAlign ITEM_ALIGN_TOP_LEFT \
textAlignX 4 \
textScale CHOICE_TEXTSIZE \
exp text ("@MPUI_LOSSES_PRE") \
} \
itemDef \
{ \
rect -208 (MENU_PANEL_STATS_POS_Y + 120) 208 20 HORIZONTAL_ALIGN_RIGHT VERTICAL_ALIGN_TOP \
decoration \
visible 1 \
foreColor 1 1 1 0.65 \
textFont UI_FONT_SMALL \
textAlign ITEM_ALIGN_TOP_RIGHT \
textAlignX -4 \
textScale CHOICE_TEXTSIZE \
exp text (getplayerdata("losses")) \
} \
itemDef \
{ \
rect -208 (MENU_PANEL_STATS_POS_Y + 140) -208 20 HORIZONTAL_ALIGN_RIGHT VERTICAL_ALIGN_TOP \
decoration \
visible 1 \
foreColor 1 1 1 0.65 \
textFont UI_FONT_SMALL \
textAlign ITEM_ALIGN_TOP_LEFT \
textAlignX 4 \
textScale CHOICE_TEXTSIZE \
exp text ("@MPUI_TIES_PRE") \
} \
itemDef \
{ \
rect -208 (MENU_PANEL_STATS_POS_Y + 140) 208 20 HORIZONTAL_ALIGN_RIGHT VERTICAL_ALIGN_TOP \
decoration \
visible 1 \
foreColor 1 1 1 0.65 \
textFont UI_FONT_SMALL \
textAlign ITEM_ALIGN_TOP_RIGHT \
textAlignX -4 \
textScale CHOICE_TEXTSIZE \
exp text (getplayerdata("ties")) \
} \
itemDef \
{ \
rect -208 (MENU_PANEL_STATS_POS_Y + 160) -208 20 HORIZONTAL_ALIGN_RIGHT VERTICAL_ALIGN_TOP \
decoration \
visible 1 \
foreColor 1 1 1 0.65 \
textFont UI_FONT_SMALL \
textAlign ITEM_ALIGN_TOP_LEFT \
textAlignX 4 \
textScale CHOICE_TEXTSIZE \
exp text ("@MPUI_WINSTREAK_PRE") \
} \
itemDef \
{ \
rect -208 (MENU_PANEL_STATS_POS_Y + 160) 208 20 HORIZONTAL_ALIGN_RIGHT VERTICAL_ALIGN_TOP \
decoration \
visible 1 \
foreColor 1 1 1 0.65 \
textFont UI_FONT_SMALL \
textAlign ITEM_ALIGN_TOP_RIGHT \
textAlignX -4 \
textScale CHOICE_TEXTSIZE \
exp text (getplayerdata("winStreak")) \
} \
itemDef \
{ \
rect -208 (MENU_PANEL_STATS_POS_Y + 180) -208 20 HORIZONTAL_ALIGN_RIGHT VERTICAL_ALIGN_TOP \
decoration \
visible 1 \
style WINDOW_STYLE_FILLED \
foreColor CHOICE_TEXTCOLOR \
backColor 0 0 0 0.35 \
background "white" \
textFont UI_FONT_SMALL \
textAlign ITEM_ALIGN_TOP_LEFT \
textAlignX 4 \
textScale CHOICE_TEXTSIZE \
exp text ("@MPUI_KILLS_PRE") \
} \
itemDef \
{ \
rect -208 (MENU_PANEL_STATS_POS_Y + 180) 208 20 HORIZONTAL_ALIGN_RIGHT VERTICAL_ALIGN_TOP \
decoration \
visible 1 \
foreColor 1 1 1 0.65 \
textFont UI_FONT_SMALL \
textAlign ITEM_ALIGN_TOP_RIGHT \
textAlignX -4 \
textScale CHOICE_TEXTSIZE \
exp text (getplayerdata("kills")) \
} \
itemDef \
{ \
rect -208 (MENU_PANEL_STATS_POS_Y + 200) -208 20 HORIZONTAL_ALIGN_RIGHT VERTICAL_ALIGN_TOP \
decoration \
visible 1 \
foreColor 1 1 1 0.65 \
textFont UI_FONT_SMALL \
textAlign ITEM_ALIGN_TOP_LEFT \
textAlignX 4 \
textScale CHOICE_TEXTSIZE \
exp text ("@MPUI_HEADSHOTS_PRE") \
} \
itemDef \
{ \
rect -208 (MENU_PANEL_STATS_POS_Y + 200) 208 20 HORIZONTAL_ALIGN_RIGHT VERTICAL_ALIGN_TOP \
decoration \
visible 1 \
foreColor 1 1 1 0.65 \
textFont UI_FONT_SMALL \
textAlign ITEM_ALIGN_TOP_RIGHT \
textAlignX -4 \
textScale CHOICE_TEXTSIZE \
exp text (getplayerdata("headshots")) \
} \
itemDef \
{ \
rect -208 (MENU_PANEL_STATS_POS_Y + 220) -208 20 HORIZONTAL_ALIGN_RIGHT VERTICAL_ALIGN_TOP \
decoration \
visible 1 \
foreColor 1 1 1 0.65 \
textFont UI_FONT_SMALL \
textAlign ITEM_ALIGN_TOP_LEFT \
textAlignX 4 \
textScale CHOICE_TEXTSIZE \
exp text ("@MPUI_ASSISTS_PRE") \
} \
itemDef \
{ \
rect -208 (MENU_PANEL_STATS_POS_Y + 220) 208 20 HORIZONTAL_ALIGN_RIGHT VERTICAL_ALIGN_TOP \
decoration \
visible 1 \
foreColor 1 1 1 0.65 \
textFont UI_FONT_SMALL \
textAlign ITEM_ALIGN_TOP_RIGHT \
textAlignX -4 \
textScale CHOICE_TEXTSIZE \
exp text (getplayerdata("assists")) \
} \
itemDef \
{ \
rect -208 (MENU_PANEL_STATS_POS_Y + 240) -208 20 HORIZONTAL_ALIGN_RIGHT VERTICAL_ALIGN_TOP \
decoration \
visible 1 \
foreColor 1 1 1 0.65 \
textFont UI_FONT_SMALL \
textAlign ITEM_ALIGN_TOP_LEFT \
textAlignX 4 \
textScale CHOICE_TEXTSIZE \
exp text ("@MPUI_STREAK_PRE") \
} \
itemDef \
{ \
rect -208 (MENU_PANEL_STATS_POS_Y + 240) 208 20 HORIZONTAL_ALIGN_RIGHT VERTICAL_ALIGN_TOP \
decoration \
visible 1 \
foreColor 1 1 1 0.65 \
textFont UI_FONT_SMALL \
textAlign ITEM_ALIGN_TOP_RIGHT \
textAlignX -4 \
textScale CHOICE_TEXTSIZE \
exp text (getplayerdata("killStreak")) \
} \
itemDef \
{ \
rect -208 (MENU_PANEL_STATS_POS_Y + 260) -208 20 HORIZONTAL_ALIGN_RIGHT VERTICAL_ALIGN_TOP \
decoration \
visible 1 \
style WINDOW_STYLE_FILLED \
foreColor CHOICE_TEXTCOLOR \
backColor 0 0 0 0.35 \
background "white" \
textFont UI_FONT_SMALL \
textAlign ITEM_ALIGN_TOP_LEFT \
textAlignX 4 \
textScale CHOICE_TEXTSIZE \
exp text ("@MPUI_DEATHS_PRE") \
} \
itemDef \
{ \
rect -208 (MENU_PANEL_STATS_POS_Y + 260) 208 20 HORIZONTAL_ALIGN_RIGHT VERTICAL_ALIGN_TOP \
decoration \
visible 1 \
foreColor CHOICE_TEXTCOLOR \
textFont UI_FONT_SMALL \
textAlign ITEM_ALIGN_TOP_RIGHT \
textAlignX -4 \
textScale CHOICE_TEXTSIZE \
exp text (getplayerdata("deaths")) \
} \
itemDef \
{ \
rect -208 (MENU_PANEL_STATS_POS_Y + 280) -208 20 HORIZONTAL_ALIGN_RIGHT VERTICAL_ALIGN_TOP \
decoration \
visible 1 \
style WINDOW_STYLE_FILLED \
foreColor CHOICE_TEXTCOLOR \
backColor 0 0 0 0.35 \
background "white" \
textFont UI_FONT_SMALL \
textAlign ITEM_ALIGN_TOP_LEFT \
textAlignX 4 \
textScale CHOICE_TEXTSIZE \
exp text ("@MPUI_TIME_PLAYED_PRE") \
} \
itemDef \
{ \
rect -208 (MENU_PANEL_STATS_POS_Y + 280) 208 20 HORIZONTAL_ALIGN_RIGHT VERTICAL_ALIGN_TOP \
decoration \
visible 1 \
foreColor CHOICE_TEXTCOLOR \
textFont UI_FONT_SMALL \
textAlign ITEM_ALIGN_TOP_RIGHT \
textAlignX -4 \
textScale CHOICE_TEXTSIZE \
exp text (secondsastime(getplayerdata("timePlayedAllies") + getplayerdata("timePlayedOpfor") + getplayerdata("timePlayedOther"))) \
}
+271
View File
@@ -0,0 +1,271 @@
#define BACKGROUND_IMAGE(imageArg) \
itemDef \
{ \
rect -107 0 854 480 HORIZONTAL_ALIGN_SUBLEFT VERTICAL_ALIGN_SUBTOP \
style WINDOW_STYLE_SHADER \
foreColor 1 1 1 1 \
textscale 0.55 \
decoration \
visible when (dvarString( "fs_game" ) == "" && !(dvarBool("cl_ingame") || dvarBool("sv_running"))) \
background imageArg \
}
#ifdef BACKGROUND_PC_OPTIONS
#undef BACKGROUND_IMAGE
#define BACKGROUND_IMAGE(imageArg) \
itemDef \
{ \
rect -107 0 854 480 HORIZONTAL_ALIGN_SUBLEFT VERTICAL_ALIGN_SUBTOP \
style WINDOW_STYLE_SHADER \
foreColor 1 1 1 1 \
textscale 0.55 \
decoration \
visible when (!(dvarBool("cl_ingame") || dvarBool("sv_running"))) \
background imageArg \
}
#endif
itemDef
{
rect -427 -240 854 480 2 2
decoration
visible 1
style 3
forecolor 0 0 0 0.4
background "white"
textscale 0.55
visible when ((dvarBool("cl_ingame") || dvarBool("sv_running")))
}
itemDef
{
rect 0 0 640 480 4 4
decoration
visible 1
style 3
forecolor 1 1 1 1
background "mw2_main_background"
textscale 0.55
visible when (dvarString( "fs_game" ) == "" && !(dvarBool("cl_ingame") || dvarBool("sv_running")))
}
#ifdef BACKGROUND_PC_OPTIONS
itemDef
{
rect 0 0 640 480 4 4
decoration
visible 1
style 3
forecolor 1 1 1 1
background "mw2_main_background"
textscale 0.55
visible when (dvarString( "fs_game" ) != "" && !(dvarBool("cl_ingame") || dvarBool("sv_running")))
}
#endif
#ifndef BACKGROUND_PC_OPTIONS
#ifdef BACKGROUND_SP
BACKGROUND_IMAGE("mw2_main_sp_image")
#endif
#ifdef BACKGROUND_CO
BACKGROUND_IMAGE("mw2_main_co_image")
#endif
#ifdef BACKGROUND_MP
BACKGROUND_IMAGE("mw2_main_mp_image")
#endif
#ifdef BACKGROUND_IW4
BACKGROUND_IMAGE("animbg_blur_front")
#endif
#endif
itemDef
{
rect 0 0 1708 480 0 0
decoration
visible 1
style 3
forecolor 1 1 1 0.5
background "mw2_main_cloud_overlay"
textscale 0.55
exp rect x ((0 - 107 ) - ((float(milliseconds() % 60000 ) / 60000) * (854)))
visible when (!(dvarBool("cl_ingame") || dvarBool("sv_running")))
}
itemDef
{
rect 0 0 -1708 -480 0 0
decoration
visible 1
style 3
forecolor 1 1 1 0.5
background "mw2_main_cloud_overlay"
textscale 0.55
exp rect x ((0 - 107 + 854) + ((float(milliseconds() % 50000) / 50000) * (854)))
visible when (!(dvarBool("cl_ingame") || dvarBool("sv_running")))
}
#ifdef BACKGROUND_PC_OPTIONS
#ifdef BACKGROUND_SP
BACKGROUND_IMAGE("mw2_main_sp_image")
#endif
#ifdef BACKGROUND_CO
BACKGROUND_IMAGE("mw2_main_co_image")
#endif
#ifdef BACKGROUND_MP
BACKGROUND_IMAGE("mw2_main_mp_image")
#endif
#ifdef BACKGROUND_IW4
BACKGROUND_IMAGE("animbg_blur_front")
#endif
#endif
itemDef
{
rect 0 0 640 480 4 4
decoration
visible 1
style 3
forecolor 1 1 1 0.523696
background "mockup_bg_glow"
textscale 0.55
exp forecolor a (((sin(milliseconds() / 1500) + 1) * 0.25) + 0.25)
visible when (!(dvarBool("cl_ingame") || dvarBool("sv_running")))
}
itemDef
{
rect 0 0 640 480 4 4
decoration
visible 1
style 3
forecolor 1 1 1 0.476023
background "mockup_bg_glow"
textscale 0.55
exp forecolor a (((sin(milliseconds() / 480) + 1) * 0.25) + 0.25)
visible when (!(dvarBool("cl_ingame") || dvarBool("sv_running")))
}
#ifndef DISABLE_SIDEBAR
itemDef
{
rect -64 0 280 480 HORIZONTAL_ALIGN_LEFT VERTICAL_ALIGN_SUBTOP
style WINDOW_STYLE_SHADER
foreColor 1 1 1 0.1
background "gradient_bottom"
decoration
textScale 0.55
visible 1
}
#endif
#ifdef SIDEBAR_RIGHT
itemDef
{
rect -64 0 280 480 HORIZONTAL_ALIGN_LEFT VERTICAL_ALIGN_SUBTOP
decoration
style WINDOW_STYLE_SHADER
forecolor 1 1 1 0.1
background "gradient_fadein_fadebottom"
textscale 0.55
visible 1
}
itemDef
{
rect 0 0 640 480 HORIZONTAL_ALIGN_FULLSCREEN VERTICAL_ALIGN_FULLSCREEN
style WINDOW_STYLE_SHADER
forecolor 0.25 0.25 0.25 0.75
background "gradient_fadein"
textscale 0.55
visible when (dvarInt("cl_ingame") == 0)
}
itemDef
{
rect 0 0 640 480 HORIZONTAL_ALIGN_FULLSCREEN VERTICAL_ALIGN_FULLSCREEN
style WINDOW_STYLE_SHADER
forecolor 0.25 0.25 0.25 0.75
background "gradient_fadein"
textscale 0.55
visible when (dvarInt("cl_ingame") == 0)
}
itemDef
{
rect -64 0 280 480 HORIZONTAL_ALIGN_LEFT VERTICAL_ALIGN_SUBTOP
decoration
style WINDOW_STYLE_SHADER
forecolor 1 1 1 0.1
background "gradient_fadein_fadebottom"
textscale 0.55
visible 1
}
#endif
#ifdef BACKGROUND_FULL
itemDef
{
rect 0 0 640 480 HORIZONTAL_ALIGN_FULLSCREEN VERTICAL_ALIGN_SUBTOP
decoration
style WINDOW_STYLE_SHADER
forecolor 1 1 1 0.1
background "gradient_fadein_fadebottom"
textscale 0.55
visible 1
}
itemDef
{
rect 0 0 640 480 HORIZONTAL_ALIGN_FULLSCREEN VERTICAL_ALIGN_FULLSCREEN
style WINDOW_STYLE_SHADER
forecolor 0.25 0.25 0.25 0.75
background "gradient_fadein"
textscale 0.55
visible when (dvarInt("cl_ingame") == 0)
}
itemDef
{
rect 0 0 640 480 HORIZONTAL_ALIGN_FULLSCREEN VERTICAL_ALIGN_FULLSCREEN
style WINDOW_STYLE_SHADER
forecolor 0.25 0.25 0.25 0.75
background "gradient_fadein"
textscale 0.55
visible when (dvarInt("cl_ingame") == 0)
}
itemDef
{
rect 0 0 640 480 HORIZONTAL_ALIGN_FULLSCREEN VERTICAL_ALIGN_SUBTOP
decoration
style WINDOW_STYLE_SHADER
forecolor 1 1 1 0.1
background "gradient_fadein_fadebottom"
textscale 0.55
visible 1
}
#endif
#ifndef HIDE_MOD
itemDef
{
rect -40 0 300 20 HORIZONTAL_ALIGN_SUBLEFT VERTICAL_ALIGN_TOP
foreColor 1 1 1 0.8
textAlignY -4
textScale 0.2
decoration
text "@MPUI_MOD"
visible when ((dvarString("fs_game") != "") && (dvarInt("cl_ingame") == 0))
}
itemDef
{
name "mod"
rect -40 0 300 20 HORIZONTAL_ALIGN_SUBLEFT VERTICAL_ALIGN_TOP
decoration
foreColor 1 1 1 0.8
textAlignX 16
textAlignY -4
textScale 0.2
exp text dvarString("fs_game")
visible when ((dvarString("fs_game") != "") && (dvarInt("cl_ingame") == 0))
}
#endif
+332
View File
@@ -0,0 +1,332 @@
#define NUM_CUSTOM_CLASSES 15
#define CALCULATED_HEIGHT ( 24 + ( ( int( 5 + min( 5 , getplayerdata( "prestige" ) / 2 + 0.500000 ) ) ) + ( int( min( 10, getplayerdata( "prestige" ) ) / 10.0 ) * ( NUM_CUSTOM_CLASSES - 10 ) ) ) * 20 )
{
menuDef
{
name cac_popup
fullscreen 0
rect -64 0 280 0 1 1
style 1
foreColor 1 1 1 1
backColor 1 1 1 1
background white
exp rect Y ( localvarfloat( "ui_cac_popup_ypos" ) )
exp rect H ( CALCULATED_HEIGHT )
fadeCycle 1
fadeClamp 1
fadeAmount 0.1
onOpen
{
setLocalVarFloat ui_cac_popup_ypos 0.000000;
setLocalVarInt ui_leftPopup 1;
focusFirst;
open "cac_popup_preview";
}
onClose
{
setLocalVarInt ui_leftPopup 1;
close "cac_popup_preview";
close "main_background";
}
onESC
{
close "self";
}
focusColor 1 1 1 1
popup
outOfBoundsClick
allowedBinding "+talk"
itemDef
{
rect -854 -480 1708 960 1 1
style 1
foreColor 1 1 1 1
backColor 0 0 0 0.35
background white
decoration
visible when ( !localvarint( "ui_centerPopup" ) )
}
itemDef
{
rect -854 -480 1708 960 1 1
style 1
foreColor 1 1 1 1
backColor 1 1 1 1
background xpbar_stencilbase
decoration
visible 1
}
itemDef
{
rect 0 0 280 0 1 1
style 1
foreColor 1 1 1 1
backColor 0.5 0.5 0.5 1
background white
decoration
visible 1
exp rect H ( )
}
itemDef
{
rect 0 0 1708 480 1 1
style 3
foreColor 1 1 1 0.75
background mw2_popup_bg_fogstencil
decoration
visible 1
exp rect X ( 0 - ( ( float( milliseconds( ) % 60000 ) / 60000 ) * ( 854 ) ) )
}
itemDef
{
rect 0 0 -1708 -480 1 1
style 3
foreColor 0.85 0.85 0.85 1
background mw2_popup_bg_fogscroll
decoration
visible 1
exp rect X ( 0 - ( ( float( milliseconds( ) % 60000 ) / 60000 ) * ( 854 ) ) )
}
itemDef
{
rect 0 0 280 0 1 1
style 3
foreColor 1 1 1 1
background mockup_popup_bg_stencilfill
decoration
visible 1
exp rect H ( CALCULATED_HEIGHT )
}
itemDef
{
rect 0 0 -1708 -480 1 1
style 3
foreColor 1 1 1 0.75
background mw2_popup_bg_fogstencil
decoration
visible 1
exp rect X ( ( - 854 ) + ( ( float( milliseconds( ) % 50000 ) / 50000 ) * ( 854 ) ) )
}
itemDef
{
rect 0 0 -1708 -480 1 1
style 3
foreColor 0.85 0.85 0.85 1
background mw2_popup_bg_fogscroll
decoration
visible 1
exp rect X ( ( - 854 ) + ( ( float( milliseconds( ) % 50000 ) / 50000 ) * ( 854 ) ) )
}
itemDef
{
rect 0 0 280 0 1 1
style 3
foreColor 1 1 1 0
background small_box_lightfx
decoration
visible 1
exp rect H ( CALCULATED_HEIGHT )
}
itemDef
{
rect -32 -32 32 32 1 1
style 3
foreColor 0 0 0 1
background drop_shadow_tl
decoration
visible when ( !localvarint( "ui_centerPopup" ) )
}
itemDef
{
rect 0 -32 280 32 1 1
style 3
foreColor 0 0 0 1
background drop_shadow_t
decoration
visible when ( !localvarint( "ui_centerPopup" ) )
}
itemDef
{
rect 280 -32 32 32 1 1
style 3
foreColor 0 0 0 1
background drop_shadow_tr
decoration
visible when ( !localvarint( "ui_centerPopup" ) )
}
itemDef
{
rect 280 0 32 0 1 1
style 3
foreColor 0 0 0 1
background drop_shadow_r
decoration
visible when ( !localvarint( "ui_centerPopup" ) )
exp rect H ( CALCULATED_HEIGHT )
}
itemDef
{
rect 280 0 32 32 1 1
style 3
foreColor 0 0 0 1
background drop_shadow_br
decoration
visible when ( !localvarint( "ui_centerPopup" ) )
exp rect H ( CALCULATED_HEIGHT )
}
itemDef
{
rect 0 0 280 32 1 1
style 3
foreColor 0 0 0 1
background drop_shadow_b
decoration
visible when ( !localvarint( "ui_centerPopup" ) )
exp rect H ( CALCULATED_HEIGHT )
}
itemDef
{
rect -32 0 32 32 1 1
style 3
foreColor 0 0 0 1
background drop_shadow_bl
decoration
visible when ( !localvarint( "ui_centerPopup" ) )
exp rect H ( CALCULATED_HEIGHT )
}
itemDef
{
rect -32 0 32 0 1 1
style 3
foreColor 0 0 0 1
background drop_shadow_l
decoration
visible when ( !localvarint( "ui_centerPopup" ) )
exp rect H ( CALCULATED_HEIGHT )
}
itemDef
{
rect 280 0 -256 0 1 1
style 1
foreColor 1 1 1 1
backColor 0.35 0.35 0.35 1
background gradient_slow_fadein
decoration
visible 1
exp rect H ( CALCULATED_HEIGHT )
}
itemDef
{
rect 0 0 280 22 1 1
style 1
foreColor 1 1 1 1
backColor 1 1 1 0.25
background gradient_fadein
decoration
textAlign 6
textAlignX -4
textScale 0.375
textFont 9
text "@MENU_YOUR_CLASSES_CAPS"
visible 1
}
#define CAC_CLASS(nameArg,itemNum,prestigeNum,newVisArg) \
itemDef \
{ \
name nameArg \
rect 0 (24 + (itemNum*20)) 336 20 1 1 \
style 1 \
foreColor 1 1 1 1 \
background menu_button_selection_bar \
group mw2_popup_button \
type 1 \
textAlign 6 \
textAlignX -60 \
textScale 0.375 \
textFont 3 \
onFocus \
{ \
play "mouse_over"; \
if ( dvarstring( "gameMode" ) != "mp" ) \
{ \
setItemColor mw2_popup_button backcolor 0 0 0 0; \
} \
setItemColor self backcolor 0 0 0 1; \
setLocalVarBool ui_popupAButton 1; \
setLocalVarInt classIndex itemNum; \
if ( !( tablelookup( "mp/attachmentTable.csv" , 4 , getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "attachment" , 0 ) , 12 ) != "" || tablelookup( "mp/attachmentTable.csv" , 4 , getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 0 ) , 12 ) != "" ) && ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 0 ) == "specialty_null_gl" || getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 0 ) == "specialty_null_grip" || getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 0 ) == "specialty_null_shotgun" ) || getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 0 ) == "specialty_null_heartbeat" ) \
{ \
setPlayerData ( "customClasses" , localVarInt ( "classIndex"), "perks" , 0 , "specialty_null"; \
} \
setLocalVarString loadoutPrimary ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "weapon" ) ); \
setLocalVarString loadoutPrimaryAttachment ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "attachment" , 0 ) ); \
setLocalVarString loadoutPrimaryAttachment2 ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "attachment" , 1 ) ); \
if ( localvarstring( "loadoutPrimaryAttachment2" ) == "" ) \
{ \
setLocalVarString loadoutPrimaryAttachment2 ( "none" ); \
} \
setLocalVarString loadoutPrimaryCamo ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "camo" ) ); \
setLocalVarString loadoutSecondaryCamo ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "camo" ) ); \
setLocalVarString loadoutSecondary ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "weapon" ) ); \
setLocalVarString loadoutSecondaryAttachment ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 0 ) ); \
setLocalVarString loadoutSecondaryAttachment2 ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 1 ) ); \
if ( localvarstring( "loadoutSecondaryAttachment2" ) == "" ) \
{ \
setLocalVarString loadoutSecondaryAttachment2 ( "none" ); \
} \
setLocalVarString loadoutSecondaryCamo ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "camo" ) ); \
setLocalVarString loadoutEquipment ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 0 ) ); \
setLocalVarString loadoutPerk1 ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 1 ) ); \
setLocalVarString loadoutPerk2 ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 2 ) ); \
setLocalVarString loadoutPerk3 ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 3 ) ); \
setLocalVarString loadoutStreak1 ( getplayerdata( "killstreaks" , 0 ) ); \
setLocalVarString loadoutStreak2 ( getplayerdata( "killstreaks" , 1 ) ); \
setLocalVarString loadoutStreak3 ( getplayerdata( "killstreaks" , 2 ) ); \
setLocalVarString loadoutDeathStreak ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 4 ) ); \
setLocalVarString loadoutOffhandSecondary ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "specialGrenade" ) ); \
setLocalVarString loadoutClassName ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "name" ) ); \
} \
leaveFocus \
{ \
setItemColor self backcolor 1 1 1 0; \
setLocalVarBool ui_popupAButton 1; \
} \
action \
{ \
play "mouse_click"; \
setPlayerData ( "customClasses" , itemNum , "inUse" , "true"); \
setLocalVarInt classIndex itemNum; \
open "menu_cac_assault"; \
} \
exp text ( getplayerdata( "customClasses" , itemNum , "name" ) ) \
visible when(getplayerdata( "prestige" ) >= prestigeNum) \
} \
itemDef \
{ \
rect 64 (24 + (20*itemNum)) 40 20 1 1 \
style 3 \
foreColor 1 1 1 1 \
background specialty_new \
decoration \
textScale 0.55 \
visible when ( getplayerdata( "prestige" ) >= prestigeNum && newVisArg && getplayerdata( "customClasses" , 1 , "inUse" ) == 0 ) \
}
CAC_CLASS("cac_customclass1",0,0,0)
CAC_CLASS("cac_customclass2",1,0,1)
CAC_CLASS("cac_customclass3",2,0,1)
CAC_CLASS("cac_customclass4",3,0,1)
CAC_CLASS("cac_customclass5",4,0,1)
CAC_CLASS("cac_customclass6",5,1,1)
CAC_CLASS("cac_customclass7",6,3,1)
CAC_CLASS("cac_customclass8",7,5,1)
CAC_CLASS("cac_customclass9",8,7,1)
CAC_CLASS("cac_customclass10",9,9,1)
CAC_CLASS("cac_customclass11",10,10,1)
CAC_CLASS("cac_customclass12",11,10,1)
CAC_CLASS("cac_customclass13",12,10,1)
CAC_CLASS("cac_customclass14",13,10,1)
CAC_CLASS("cac_customclass15",14,10,1)
}
}
+110
View File
@@ -0,0 +1,110 @@
#include "ui/menudef.h"
#include "ui_mp/main.inc"
#define HIDE_MOD
#define MENU_NAME "changelog"
#define MENU_MUSIC "music_mainmenu_mp"
#define MENU_TITLE "@MENU_CHANGELOG"
#define ITEM_MENU_TITLE_RECT 10 0 272 28 HORIZONTAL_ALIGN_LEFT VERTICAL_ALIGN_TOP
#define ITEM_MENU_TITLE_RECT_WIDESCREEN 5 0 272 28 HORIZONTAL_ALIGN_SUBLEFT VERTICAL_ALIGN_TOP
#define ITEM_CHANGLOG_PANEL_WIDTH 640
#define ITEM_CHANGLOG_PANEL_HEIGHT 400
#define ITEM_CHANGLOG_PANEL_RECT 0 0 ITEM_CHANGLOG_PANEL_WIDTH ITEM_CHANGLOG_PANEL_HEIGHT HORIZONTAL_ALIGN_CENTER VERTICAL_ALIGN_TOP
#define ITEM_CHANGLOG_TEXT_WIDTH ITEM_CHANGLOG_PANEL_WIDTH
#define ITEM_CHANGLOG_TEXT_HEIGHT (ITEM_CHANGLOG_PANEL_HEIGHT - 3)
#define ITEM_CHANGLOG_TEXT_RECT 0 0 ITEM_CHANGLOG_TEXT_WIDTH ITEM_CHANGLOG_TEXT_HEIGHT HORIZONTAL_ALIGN_CENTER VERTICAL_ALIGN_TOP
#define ITEM_CHANGLOG \
ITEM_CHANGLOG_PANEL \
ITEM_CHANGLOG_TEXT
#define ITEM_CHANGLOG_PANEL \
itemDef \
{ \
rect ITEM_CHANGLOG_PANEL_RECT \
style WINDOW_STYLE_SHADER \
foreColor 0.3 0.3 0.3 0.5 \
background "white" \
decoration \
visible 1 \
exp rect x (0 - (ITEM_CHANGLOG_PANEL_WIDTH / 2)) \
} \
itemDef \
{ \
rect ITEM_CHANGLOG_PANEL_RECT \
style WINDOW_STYLE_FILLED \
foreColor CHOICE_TEXTCOLOR \
backColor 0 0 0 0.375 \
background "white" \
visible 1 \
exp rect x (0 - (ITEM_CHANGLOG_PANEL_WIDTH / 2)) \
}
#define ITEM_MENU_TITLE_VIS(textArg, visArg) \
itemDef \
{ \
rect 0 0 ITEM_CHANGLOG_TEXT_WIDTH 28 HORIZONTAL_ALIGN_CENTER VERTICAL_ALIGN_TOP \
foreColor CHOICE_TEXTCOLOR \
textFont 9 \
textScale 0.45 \
decoration \
text textArg \
textAlignX 5 \
textAlignY -10 \
visible visArg \
exp rect x (0 - (ITEM_CHANGLOG_TEXT_WIDTH / 2)) \
}
{
menuDef
{
name MENU_NAME
fullscreen 1
rect 0 0 640 480
foreColor CHOICE_TEXTCOLOR
focusColor CHOICE_TEXTCOLOR
soundLoop MENU_MUSIC
fadeCycle 1
fadeClamp 1
fadeAmount 0.1
MENU_ON_ESC(close self;)
#define DISABLE_SIDEBAR
//#define BACKGROUND_MP
#include "ui_mp/bg.inc"
ITEM_MENU_TITLE_VIS(MENU_TITLE, 1)
ITEM_CHANGLOG_PANEL
itemDef
{
rect ITEM_CHANGLOG_TEXT_RECT
style WINDOW_STYLE_FILLED
foreColor CHOICE_TEXTCOLOR
type ITEM_TYPE_LISTBOX
textAlignX 6
textAlignY 6
textScale CHOICE_TEXTSIZE
textFont 7
visible 1
feeder 62
elementWidth ITEM_CHANGLOG_TEXT_WIDTH
elementHeight 12
notSelectable
exp rect x(0 - (ITEM_CHANGLOG_TEXT_WIDTH / 2))
// numcols xpos textlen xwidth alignment
columns 1
0 ITEM_CHANGLOG_TEXT_WIDTH 100 0
}
ITEM_BUTTON_BACK(close self;)
}
}
+336
View File
@@ -0,0 +1,336 @@
// generic shader draw, text draw, ui art elements to be included by menu scripts that use such
#define PREPROC_SHADER_DRAW_ALIGNED( prect, porigin, pshader, pcolor, pborder, pbordersize, pbordercolor ) \
PREPROC_SHADER_DRAW_ALIGNED_VIS( prect, porigin, pshader, pcolor, pborder, pbordersize, pbordercolor, 1 )
#define PREPROC_SHADER_DRAW_ALIGNED_VIS( prect, porigin, pshader, pcolor, pborder, pbordersize, pbordercolor, visArg ) \
itemDef { \
style WINDOW_STYLE_SHADER \
rect prect \
origin porigin \
forecolor pcolor \
exp material( pshader ); \
border pborder \
bordersize pbordersize \
bordercolor pbordercolor \
visible visArg decoration }
// generic shader draw
#define PREPROC_SHADER_DRAW( prect, porigin, pshader, pcolor, pborder, pbordersize, pbordercolor ) \
itemDef { \
style WINDOW_STYLE_SHADER \
rect prect 0 0 origin porigin \
forecolor pcolor \
exp material( pshader ); \
border pborder \
bordersize pbordersize \
bordercolor pbordercolor \
visible 1 decoration }
#define PREPROC_SHADER_DRAW_VIS( prect, porigin, pshader, pcolor, pborder, pbordersize, pbordercolor, visArg ) \
itemDef { \
style WINDOW_STYLE_SHADER \
rect prect 0 0 origin porigin \
forecolor pcolor \
exp material( pshader ); \
border pborder \
bordersize pbordersize \
bordercolor pbordercolor \
visible 1 decoration }
// generic text draw
#define PREPROC_TEXT_DRAW( prect, porigin, ptext, psize, palignx, paligny, palign, pcolor ) \
itemDef { \
rect prect 0 0 origin porigin \
textalignx palignx textaligny paligny \
textstyle ITEM_TEXTSTYLE_SHADOWED \
textalign palign \
textscale psize \
forecolor pcolor \
ptext \
visible 1 decoration }
// generic text draw
#define PREPROC_TEXT_DRAW_ALIGNED( prect, porigin, ptext, psize, palignx, paligny, palign, pcolor ) \
itemDef { \
rect prect \
origin porigin \
textalignx palignx textaligny paligny \
textstyle ITEM_TEXTSTYLE_SHADOWED \
textalign palign \
textscale psize \
forecolor pcolor \
ptext \
visible 1 decoration autowrapped }
// generic text draw
#define PREPROC_TEXT_DRAW_ALIGNED_EXP( prect, porigin, ptext, psize, palignx, paligny, palign, pcolor ) \
itemDef { \
rect prect \
origin porigin \
textalignx palignx textaligny paligny \
textstyle ITEM_TEXTSTYLE_SHADOWED \
textalign palign \
textscale psize \
forecolor pcolor \
exp text( ptext ); \
visible 1 decoration autowrapped }
#define PREPROC_TEXT_DRAW_ALIGNED_EXP2( prect, porigin, ptext, pfont, psize, palignx, paligny, palign, pcolor ) \
itemDef { \
rect prect \
origin porigin \
textalignx palignx textaligny paligny \
textfont pfont \
textstyle ITEM_TEXTSTYLE_SHADOWED \
textalign palign \
textscale psize \
forecolor pcolor \
exp text( ptext ); \
visible 1 decoration autowrapped }
// generic shader draw using exp
#define PREPROC_SHADER_DRAW_EXP( prect, porigin, pshader, pcolor, pborder, pbordersize, pbordercolor ) \
itemDef { \
style WINDOW_STYLE_SHADER \
rect prect 0 0 origin porigin \
forecolor pcolor \
pshader;\
border pborder \
bordersize pbordersize \
bordercolor pbordercolor \
visible 1 decoration }
// generic text draw using exp
#define PREPROC_TEXT_DRAW_EXP( prect, porigin, ptext, psize, palignx, paligny, palign, pcolor ) \
itemDef { \
rect prect 0 0 origin porigin \
textalignx palignx textaligny paligny \
textstyle ITEM_TEXTSTYLE_SHADOWED \
textalign palign \
textscale psize \
forecolor pcolor \
ptext; \
visible 1 decoration }
// generic shader draw
#define PREPROC_SHADER_DRAW_ADV( px, py, pw, ph, pshader, pcolor, pborder, pbordersize, pbordercolor ) \
PREPROC_SHADER_DRAW_ADV_VIS( px, py, pw, ph, pshader, pcolor, pborder, pbordersize, pbordercolor, 1 )
#define PREPROC_SHADER_DRAW_ADV_VIS( px, py, pw, ph, pshader, pcolor, pborder, pbordersize, pbordercolor, visArg ) \
itemDef { \
style WINDOW_STYLE_SHADER \
exp rect X( px ) \
exp rect Y( py ) \
exp rect W( pw ) \
exp rect H( ph ) \
forecolor pcolor \
exp material( pshader ); \
border pborder \
bordersize pbordersize \
bordercolor pbordercolor \
visible visArg \
decoration }
// generic text draw
#define PREPROC_TEXT_DRAW_ADV( px, py, pw, ph, ptext, psize, palignx, paligny, palign, pcolor ) \
itemDef { \
exp rect X( px ) \
exp rect Y( py ) \
exp rect W( pw ) \
exp rect H( ph ) \
textalignx palignx textaligny paligny \
textstyle ITEM_TEXTSTYLE_SHADOWED \
textalign palign \
textscale psize \
forecolor pcolor \
ptext; \
visible 1 decoration }
#define PREPROC_PERFORATION( px, py, pw, ph, px2, py2, px3, py3 ) \
itemDef { \
style WINDOW_STYLE_SHADER \
exp rect X((px)+(px2)) \
exp rect Y((py)+(py2)) \
exp rect W(pw) \
exp rect H(ph) \
origin px3 py3 \
forecolor 1 1 1 1 \
exp material( "ui_perforation" ); \
visible 1 decoration }
#define PREPROC_PERFORATION_ALIGNED( px, py, pw, ph, px2, py2, palign ) \
itemDef { \
style WINDOW_STYLE_SHADER \
exp rect X((px)+(px2)) \
exp rect Y((py)+(py2)) \
exp rect W(pw) \
exp rect H(ph) \
rect 0 0 0 0 palign \
forecolor 1 1 1 1 \
exp material( "ui_perforation" ); \
visible 1 decoration }
// art bar with perforation texture
#define PERFORATIONBAR( px, py, pw, ph, px2, py2 ) \
PREPROC_PERFORATION( px, py, (ph)*4, ph, px2, py2, 0, 0 ) \
PREPROC_PERFORATION( (px)+(pw)-(ph)*4, py, -4*(ph), ph, px2, py2, 0, 0 )
// ------------------ preprocessing function definitions ------------------
#define SINGULAR_HIDEALL \
hide description_choice1; \
hide description2_choice1; \
hide highlight_choice1; \
hide a_button_choice1; \
hide description_choice2; \
hide description2_choice2; \
hide highlight_choice2; \
hide a_button_choice2; \
hide description_choice3; \
hide description2_choice3; \
hide highlight_choice3; \
hide a_button_choice3; \
hide description_choice4; \
hide description2_choice4; \
hide highlight_choice4; \
hide a_button_choice4; \
hide description_choice5; \
hide description2_choice5; \
hide highlight_choice5; \
hide a_button_choice5; \
hide description_choice6; \
hide description2_choice6; \
hide highlight_choice6; \
hide a_button_choice6; \
hide description_choice7; \
hide description2_choice7; \
hide highlight_choice7; \
hide a_button_choice7; \
hide description_choice8; \
hide description2_choice8; \
hide highlight_choice8; \
hide a_button_choice8; \
hide description_choice9; \
hide description2_choice9; \
hide highlight_choice9; \
hide a_button_choice9; \
hide description_choice10; \
hide description2_choice10; \
hide highlight_choice10; \
hide a_button_choice10; \
hide description_choice11; \
hide description2_choice11; \
hide highlight_choice11; \
hide a_button_choice11; \
hide description_choice12; \
hide description2_choice12; \
hide highlight_choice12; \
hide a_button_choice12; \
hide description_choice13; \
hide description2_choice13; \
hide highlight_choice13; \
hide a_button_choice13; \
hide description_choice14; \
hide description2_choice14; \
hide highlight_choice14; \
hide a_button_choice14; \
hide description_choice15; \
hide description2_choice15; \
hide highlight_choice15; \
hide a_button_choice15; \
hide description_choice16; \
hide description2_choice16; \
hide highlight_choice16; \
hide a_button_choice16; \
hide description_choice17; \
hide description2_choice17; \
hide highlight_choice17; \
hide a_button_choice17;
// singular button macro
#define SINGULAR_BUTTON( pnum, porigin, phighlight_size, ptext, paction ) \
SINGULAR_BUTTON_RAW( pnum, porigin, phighlight_size, ptext, paction, 1 )
#define SINGULAR_BUTTON_RAW( pnum, porigin, phighlight_size, ptext, paction, p_vis ) \
itemDef{ \
type ITEM_TYPE_BUTTON \
origin porigin \
textfont UI_FONT_NORMAL \
textstyle ITEM_TEXTSTYLE_SHADOWED \
exp text( ptext ); \
textscale TEXTSIZE_DEFAULT \
forecolor 1 1 1 0.5 \
visible when( p_vis ); \
onFocus{ \
play "mouse_over"; \
SINGULAR_HIDEALL \
show "description_choice"#pnum; \
show "description2_choice"#pnum; \
show "highlight_choice"#pnum; \
show "a_button_choice"#pnum; } \
leaveFocus{ \
hide "description_choice"#pnum; \
hide "description2_choice"#pnum; \
hide "highlight_choice"#pnum; \
hide "a_button_choice"#pnum; } \
action{ \
play "mouse_click"; \
paction }} \
itemDef { \
name "highlight_choice"#pnum \
style WINDOW_STYLE_SHADER \
rect porigin phighlight_size 0 0 \
origin -26 -19 \
background "white" \
forecolor 0.2 0.25 0.35 0.25 \
border 1 \
bordersize 1 \
bordercolor 0.8 0.95 1 0.4 \
visible 1 \
decoration } \
itemDef { \
name "a_button_choice"#pnum \
text "@XBOXLIVE_SELECTBUTTON" \
textfont UI_FONT_NORMAL \
textscale 0.27 \
rect porigin 20 20 0 0 \
origin -20 -3 \
forecolor 0 0 0 0.5 \
visible 1 \
decoration }
// full button that show/hides highlight, a button, description and gray out if locked
#define SINGULAR_BUTTON_FULL( pnum, porigin, phighlight_size, ptext, paction, pvis ) \
itemDef{ \
type ITEM_TYPE_BUTTON \
origin porigin \
textfont UI_FONT_NORMAL \
textstyle ITEM_TEXTSTYLE_SHADOWED \
exp text( ptext ); \
textscale TEXTSIZE_DEFAULT \
forecolor 0.25 0.25 0.25 1 \
visible when( !( pvis ) ); \
decoration } \
itemDef{ \
type ITEM_TYPE_BUTTON \
origin porigin \
textfont UI_FONT_NORMAL \
textstyle ITEM_TEXTSTYLE_SHADOWED \
exp text( "" ); \
visible when( !( pvis ) ); \
onFocus{ \
play "mouse_over"; \
SINGULAR_HIDEALL \
show "description2_choice"#pnum; \
show "highlight_choice"#pnum; \
hide "description_choice"#pnum; } \
leaveFocus{ \
hide "description2_choice"#pnum; \
hide "highlight_choice"#pnum; } } \
SINGULAR_BUTTON_RAW( pnum, porigin, phighlight_size, ptext, paction, pvis )
#define LOADOUT_PLATING_RAW( porigin, px, py, pw, ph, palign, vis_gradient_top, vis_gradient_bottom ) \
PREPROC_SHADER_DRAW_ALIGNED( (px-4) (py-8) pw ph palign, porigin, "white", 0.2 0.2 0.225 1, 0, 0, 0 0 0 0 ) \
PREPROC_SHADER_DRAW_ALIGNED( (px-4) (py-8) pw ph palign, porigin, "line_horizontal", 0.9 0.9 0.95 0.5, 0, 0, 0 0 0 0 ) \
PREPROC_SHADER_DRAW_ALIGNED( (px-4) (py+ph-8) pw 16 palign, porigin, "gradient_top", 1 1 1 0.4, 0, 0, 0 0 0 0 visible when( vis_gradient_bottom ) ) \
PREPROC_SHADER_DRAW_ALIGNED( (px-4) (py-24) pw 16 palign, porigin, "gradient_bottom", 1 1 1 0.4, 0, 0, 0 0 0 0 visible when( vis_gradient_top ) )
+285
View File
@@ -0,0 +1,285 @@
{
menuDef
{
name "connect"
rect 0 0 640 480 0 0
style 1
forecolor 1 1 1 1
focuscolor 1 1 1 1
onOpen
{
exec "selectStringTableEntryInDvar mp/didyouknow.csv 0 didyouknow";
}
itemDef
{
rect -426.667 -240 853.333 480 2 2
decoration
visible 1
style 3
forecolor 1 1 1 1
background "$levelbriefing"
textscale 0.55
}
itemDef
{
rect -426.667 -236 853.333 -400 2 1
decoration
visible 1
style 3
forecolor 1 1 1 1
background "gradient_bottom"
textscale 0.55
}
itemDef
{
rect -426.667 -163 853.333 200 2 3
decoration
visible 1
style 3
forecolor 1 1 1 1
background "gradient_bottom"
textscale 0.55
}
itemDef
{
rect 0 0 0 26 3 1
decoration
visible 1
//forecolor 1 0.8 0.4 1
//forecolor 0 0.68 1 1
//forecolor 0.525 0.753 0 1
forecolor 0.051 0.741 0 1
textfont 9
textalign 6
textalignx -8
textscale 0.5833
textstyle 3
exp text ( gametypename( ) )
}
itemDef
{
rect 0 26 0 26 3 1
decoration
visible 1
forecolor 1 1 1 1
textfont 9
textalign 6
textalignx -8
textscale 0.5833
textstyle 3
exp text ( getmapname( ) )
}
itemDef
{
rect 0 56 0 26 3 1
decoration
visible 1
forecolor 1 1 1 1
textfont 9
textalign 6
textalignx -8
textscale 0.275
textstyle 3
exp text ( connectioninfo( ) )
}
itemDef
{
rect 0 56 0 26 3 1
decoration
visible 1
forecolor 1 1 1 1
textfont 9
textalign 4
textalignx -6
textscale 0.275
textstyle 3
visible when ( connectioninfo( ) != "" && ( ( sin( milliseconds( ) * 0.005 ) + 1 ) * 0.5 <= 0.25 ) )
exp text ( "" )
}
itemDef
{
rect 0 56 0 26 3 1
decoration
visible 1
forecolor 1 1 1 1
textfont 9
textalign 4
textalignx -6
textscale 0.275
textstyle 3
visible when ( connectioninfo( ) != "" && ( ( sin( milliseconds( ) * 0.005 ) + 1 ) * 0.5 > 0.25 && ( sin( milliseconds( ) * 0.005 ) + 1 ) * 0.5 <= 0.5 ) )
exp text ( "." )
}
itemDef
{
rect 0 56 0 26 3 1
decoration
visible 1
forecolor 1 1 1 1
textfont 9
textalign 4
textalignx -6
textscale 0.275
textstyle 3
visible when ( connectioninfo( ) != "" && ( ( sin( milliseconds( ) * 0.005 ) + 1 ) * 0.5 > 0.5 && ( sin( milliseconds( ) * 0.005 ) + 1 ) * 0.5 <= 0.75 ) )
exp text ( ".." )
}
itemDef
{
rect 0 56 0 26 3 1
decoration
visible 1
forecolor 1 1 1 1
textfont 9
textalign 4
textalignx -6
textscale 0.275
textstyle 3
visible when ( connectioninfo( ) != "" && ( ( sin( milliseconds( ) * 0.005 ) + 1 ) * 0.5 > 0.75 ) )
exp text ( "..." )
}
itemDef
{
rect 0 86 0 26 3 1
decoration
forecolor 1 1 1 1
textfont 9
textalign 6
textalignx -8
textscale 0.375
textstyle 3
exp text(dvarString("fs_game"))
visible when (dvarstring("fs_game") != "")
}
itemDef
{
rect -252 -60 504 3 2 3
decoration
visible 1
style 1
forecolor 1 1 1 1
backcolor 1 1 1 0.2
textscale 0.55
visible when ( !dvarbool( "wideScreen" ) )
}
itemDef
{
name "loadbar"
rect -252 -60 504 3 2 3
decoration
visible 1
style 6
forecolor 1 1 1 0.5
background "white"
textscale 0.55
visible when ( !dvarbool( "wideScreen" ) )
}
itemDef
{
rect 20 -60 410 2 1 3
decoration
autowrapped
visible 1
forecolor 1 1 1 1
textfont 9
textalign 4
textaligny 4
textscale 0.275
textstyle 3
dvar "didyouknow"
visible when ( !dvarbool( "wideScreen" ) )
}
itemDef
{
rect -20 -60 0 2 1 3
decoration
visible 1
forecolor 1 1 1 1
textfont 9
textalign 4
textalignx 40
textaligny -26
textscale 0.5833
textstyle 3
text "@MENU_INTEL"
visible when ( !dvarbool( "wideScreen" ) )
}
itemDef
{
rect -320 -60 640 3 2 3
decoration
visible 1
style 1
forecolor 1 1 1 1
backcolor 1 1 1 0.2
textscale 0.55
visible when ( dvarbool( "wideScreen" ) )
}
itemDef
{
name "loadbar"
rect -320 -60 640 3 2 3
decoration
visible 1
style 6
forecolor 1 1 1 0.5
background "white"
textscale 0.55
visible when ( dvarbool( "wideScreen" ) )
}
itemDef
{
rect -36 -56 484 2 1 3
decoration
autowrapped
visible 1
forecolor 1 1 1 1
textfont 9
textalign 4
textalignx 80
textaligny 4
textscale 0.275
textstyle 3
dvar "didyouknow"
visible when ( dvarbool( "wideScreen" ) )
}
itemDef
{
rect -36 -60 0 2 1 3
decoration
visible 1
forecolor 1 1 1 1
textfont 9
textalign 4
textalignx 80
textaligny -26
textscale 0.5833
textstyle 3
text "@MENU_INTEL"
visible when ( dvarbool( "wideScreen" ) )
}
/*itemDef
{
//rect -104 -56 128 64 3 3
rect -170 -66 128 64 3 3
decoration
visible 1
style 3
forecolor 1 1 1 1
background "logo_iw"
textscale 0.55
visible when ( dvarbool( "wideScreen" ) )
}
itemDef
{
rect -148 -56 128 64 3 3
decoration
visible 1
style 3
forecolor 1 1 1 1
background "logo_iw"
textscale 0.55
visible when ( !dvarbool( "wideScreen" ) )
}*/
}
}
+70
View File
@@ -0,0 +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_KEYBINDSTATUS
ITEM_BUTTON_BACK(ON_MENU_ESC)
}
@@ -0,0 +1,336 @@
{
menuDef
{
name "createfavorite_popmenu"
rect -150 -84 300 116 2 2
popup
legacySplitScreenScale
style 1
forecolor 1 1 1 1
backcolor 1 1 1 1
background "white"
focuscolor 1 1 1 1
onOpen
{
setLocalVarInt "ui_centerPopup" ( 1 );
setfocus "passwordEntry";
}
onClose
{
setLocalVarInt "ui_centerPopup" ( 0 );
}
onEsc
{
close self;
}
itemDef
{
rect -1004 -564 1708 992 2 2
decoration
visible 1
style 1
forecolor 1 1 1 1
backcolor 0 0 0 0.35
background "white"
textscale 0.55
}
itemDef
{
rect -1004 -564 1708 992 2 2
decoration
visible 1
style 1
forecolor 1 1 1 1
backcolor 1 1 1 1
background "xpbar_stencilbase"
textscale 0.55
}
itemDef
{
rect 0 0 300 116 2 2
decoration
visible 1
style 1
forecolor 1 1 1 1
backcolor 0.5 0.5 0.5 1
background "white"
textscale 0.55
}
itemDef
{
rect -150 -44 1708 512 2 2
decoration
visible 1
style 3
forecolor 1 1 1 0.75
background "mw2_popup_bg_fogstencil"
textscale 0.55
exp rect x ( 0 - ( ( float( milliseconds( ) % 60000 ) / 60000 ) * ( 854 ) ) )
}
itemDef
{
rect -150 -44 -1708 -512 2 2
decoration
visible 1
style 3
forecolor 0.85 0.85 0.85 1
background "mw2_popup_bg_fogscroll"
textscale 0.55
exp rect x ( 0 - ( ( float( milliseconds( ) % 60000 ) / 60000 ) * ( 854 ) ) )
}
itemDef
{
rect 0 0 300 32 2 2
decoration
visible 1
style 3
forecolor 1 1 1 1
background "mockup_popup_bg_stencilfill"
textscale 0.55
exp rect h ( ( 56 + 3 * 20 ) )
}
itemDef
{
rect -150 -44 -1708 -512 2 2
decoration
visible 1
style 3
forecolor 1 1 1 0.75
background "mw2_popup_bg_fogstencil"
textscale 0.55
exp rect x ( ( 0 - 854 ) + ( ( float( milliseconds( ) % 50000 ) / 50000 ) * ( 854 ) ) )
}
itemDef
{
rect -150 -44 -1708 -512 2 2
decoration
visible 1
style 3
forecolor 0.85 0.85 0.85 1
background "mw2_popup_bg_fogscroll"
textscale 0.55
exp rect x ( ( 0 - 854 ) + ( ( float( milliseconds( ) % 50000 ) / 50000 ) * ( 854 ) ) )
}
itemDef
{
rect -150 -44 300 0 1 1
decoration
visible 1
style 3
forecolor 1 1 1 0
background "small_box_lightfx"
textscale 0.55
exp rect h ( ( 56 + 3 * 20 ) )
}
itemDef
{
rect -64 -64 64 64 2 2
decoration
visible 1
style 3
forecolor 0 0 0 1
background "drop_shadow_tl"
textscale 0.55
visible when ( 1 )
}
itemDef
{
rect 0 -64 300 64 2 2
decoration
visible 1
style 3
forecolor 0 0 0 1
background "drop_shadow_t"
textscale 0.55
visible when ( 1 )
}
itemDef
{
rect 300 -64 64 64 2 2
decoration
visible 1
style 3
forecolor 0 0 0 1
background "drop_shadow_tr"
textscale 0.55
visible when ( 1 )
}
itemDef
{
rect 300 0 64 0 2 2
decoration
visible 1
style 3
forecolor 0 0 0 1
background "drop_shadow_r"
textscale 0.55
//exp rect h ( ( 24 + 3 * 20 ) )
exp rect h ( ( 56 + 3 * 20 ) )
visible when ( 1 )
}
itemDef
{
rect 300 0 64 64 2 2
decoration
visible 1
style 3
forecolor 0 0 0 1
background "drop_shadow_br"
textscale 0.55
exp rect y ( ( 32 - 0 ) + ( ( 24 + 3 * 20 ) ) )
visible when ( 1 )
}
itemDef
{
rect 0 0 300 64 2 2
decoration
visible 1
style 3
forecolor 0 0 0 1
background "drop_shadow_b"
textscale 0.55
exp rect y ( ( 32 - 0 ) + ( ( 24 + 3 * 20 ) ) )
visible when ( 1 )
}
itemDef
{
rect -64 0 64 64 2 2
decoration
visible 1
style 3
forecolor 0 0 0 1
background "drop_shadow_bl"
textscale 0.55
exp rect y ( ( 32 - 0 ) + ( ( 24 + 3 * 20 ) ) )
visible when ( 1 )
}
itemDef
{
rect -64 0 64 0 2 2
decoration
visible 1
style 3
forecolor 0 0 0 1
background "drop_shadow_l"
textscale 0.55
exp rect h ( ( 56 + 3 * 20 ) )
visible when ( 1 )
}
itemDef
{
rect 0 0 300 24 2 2
decoration
visible 1
style 1
forecolor 1 1 1 1
background "gradient_fadein"
textfont 9
textalign 5
textalignx -4
textscale 0.375
text "@MENU_NEW_FAVORITE"
}
itemDef
{
name "fav_ip"
rect 10 40 280 20 2 2
visible 1
style 1
forecolor 1 1 1 1
backcolor 0 0 0 0.3
type 4
textfont 3
textalign 0
textalignX 5
textalignY 18
textscale 0.375
text "@MENU_IP_ADDRESS"
dvar "ui_favoriteAddress"
maxChars 22
maxPaintChars 22
visible 1
accept
{
uiScript CreateFavorite;
close self;
}
}
itemDef
{
name "yes"
rect 6 76 292 20 2 2
visible 1
group "mw2_popup_button"
style 1
forecolor 1 1 1 1
disablecolor 0.6 0.55 0.55 1
background "popup_button_selection_bar"
type 1
textfont 3
textalign 6
textalignx -24
textscale 0.375
text "@MENU_OK"
visible when ( 1 )
action
{
uiScript CreateFavorite;
play "mouse_click";
close self;
}
onFocus
{
play "mouse_over";
if ( dvarstring( "gameMode" ) != "mp" )
{
setItemColor "mw2_popup_button" backcolor 0 0 0 0;
}
setItemColor self backcolor 0 0 0 1;
setLocalVarBool "ui_popupAButton" ( 1 );
}
leaveFocus
{
setItemColor self backcolor 1 1 1 0;
setLocalVarBool "ui_popupAButton" ( 0 );
}
}
itemDef
{
name "cancel"
rect 6 96 292 20 2 2
visible 1
group "mw2_popup_button"
style 1
forecolor 1 1 1 1
disablecolor 0.6 0.55 0.55 1
background "popup_button_selection_bar"
type 1
textfont 3
textalign 6
textalignx -24
textscale 0.375
text "@MENU_CANCEL"
visible when ( 1 )
action
{
play "mouse_click";
close self;
}
onFocus
{
play "mouse_over";
if ( dvarstring( "gameMode" ) != "mp" )
{
setItemColor "mw2_popup_button" backcolor 0 0 0 0;
}
setItemColor self backcolor 0 0 0 1;
setLocalVarBool "ui_popupAButton" ( 1 );
}
leaveFocus
{
setItemColor self backcolor 1 1 1 0;
setLocalVarBool "ui_popupAButton" ( 0 );
}
}
}
}
+321
View File
@@ -0,0 +1,321 @@
#include "ui/menudef.h"
#include "ui_mp/main.inc"
#define MENU_NAME "createserver"
#define MENU_MUSIC "music_mainmenu_mp"
#define MENU_TITLE "@MENU_CREATE_GAME_CAPS"
#undef CHOICE_GROUP
#define CHOICE_GROUP MENU_NAME
#define CHOICE_Y(i) (48 + (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
#define MENU_PANEL_POS_X -300
#define MENU_PANEL_POS_Y 48
#define MENU_PANEL_WIDTH 300
#define MENU_PANEL_ITEM_WIDTH MENU_PANEL_WIDTH
#define MENU_PANEL_ITEM_HEIGHT 18
#define MENU_PANEL_ITEM_POS_X MENU_PANEL_POS_X
#define MENU_PANEL_ITEM_POS_Y(i) ((MENU_PANEL_POS_Y + 8) + (i * MENU_PANEL_ITEM_HEIGHT))
#define MENU_PANEL_ITEM_RECT(i) MENU_PANEL_POS_X MENU_PANEL_ITEM_POS_Y(i) MENU_PANEL_ITEM_WIDTH MENU_PANEL_ITEM_HEIGHT HORIZONTAL_ALIGN_RIGHT VERTICAL_ALIGN_TOP
#define MENU_PANEL_ITEM(itemIndex, nameArg, typeArg, textArg, dvarArg, maxCharsArg) \
MENU_PANEL_ITEM_VIS(itemIndex, nameArg, typeArg, textArg, dvarArg, maxCharsArg, 1)
#define MENU_PANEL_ITEM_VIS(itemIndex, nameArg, typeArg, textArg, dvarArg, maxCharsArg, visArg) \
itemDef \
{ \
name nameArg \
rect MENU_PANEL_ITEM_RECT(itemIndex) \
style WINDOW_STYLE_FILLED \
type typeArg \
foreColor CHOICE_TEXTCOLOR \
background "menu_rules_selection_bar" \
textFont UI_FONT_SMALL \
textAlign ITEM_ALIGN_RIGHT \
textAlignX -52 \
textAlignY 16 \
textScale CHOICE_TEXTSIZE \
text " " \
maxChars maxCharsArg \
maxPaintChars maxCharsArg \
dvar dvarArg \
visible visArg \
onFocus \
{ \
play CHOICE_FOCUS_SOUND \
setItemColor self backColor 0 0 0 1; \
} \
leaveFocus \
{ \
setItemColor self backColor 0 0 0 0; \
} \
} \
itemDef \
{ \
rect MENU_PANEL_ITEM_RECT(itemIndex) \
style WINDOW_STYLE_FILLED \
foreColor CHOICE_TEXTCOLOR \
textFont UI_FONT_SMALL \
textAlignX 8 \
textAlignY 16 \
textScale CHOICE_TEXTSIZE \
decoration \
text textArg \
visible visArg \
}
#define MENU_PANEL_SETTINGS \
itemDef \
{ \
name "panel_title" \
rect MENU_PANEL_POS_X MENU_PANEL_POS_Y MENU_PANEL_WIDTH 20 HORIZONTAL_ALIGN_RIGHT VERTICAL_ALIGN_TOP \
style WINDOW_STYLE_FILLED \
foreColor CHOICE_TEXTCOLOR \
backColor 0 0 0 0.45 \
background "gradient_center" \
textAlignX 6 \
textAlignY 18 \
textScale CHOICE_TEXTSIZE \
textFont 9 \
decoration \
text "@MENU_GAME_SETTINGS_CAPS" \
visible 1 \
} \
itemDef \
{ \
name "panel_background" \
rect MENU_PANEL_POS_X (MENU_PANEL_POS_Y + 20) MENU_PANEL_WIDTH 66 HORIZONTAL_ALIGN_RIGHT VERTICAL_ALIGN_TOP \
style WINDOW_STYLE_FILLED \
foreColor CHOICE_TEXTCOLOR \
backColor 1 1 1 0.1 \
decoration \
visible 1 \
} \
MENU_PANEL_ITEM(1, "hostname", ITEM_TYPE_EDITFIELD, "@MENU_SERVER_NAME", "sv_hostname", 18) \
MENU_PANEL_ITEM(2, "maxplayers", ITEM_TYPE_NUMERICFIELD, "@MENU_MAXIMUM_PLAYERS", "party_maxplayers", 2) \
MENU_PANEL_ITEM(3, "maxping", ITEM_TYPE_NUMERICFIELD, "@MENU_MAXIMUM_PING", "sv_maxping", 3)
#define MENU_ITEM_NAT_TYPE \
itemDef \
{ \
name "nattype" \
rect -64 188 336 20 HORIZONTAL_ALIGN_LEFT VERTICAL_ALIGN_TOP \
style WINDOW_STYLE_FILLED \
type ITEM_TYPE_BUTTON \
textFont UI_FONT_SMALL \
foreColor CHOICE_TEXTCOLOR \
textAlign ITEM_ALIGN_TOP_RIGHT \
textAlignX -60 \
textScale CHOICE_TEXTSIZE \
disableColor 0.6 0.55 0.55 1 \
background "menu_button_selection_bar" \
decoration \
visible when(getlocalizednattype() != locstring("@NETWORK_STRICT")) \
exp text(locstring("@NETWORK_YOURNATTYPE") + " " + getlocalizednattype()) \
} \
itemDef \
{ \
name "nattype" \
rect -64 188 336 20 HORIZONTAL_ALIGN_LEFT VERTICAL_ALIGN_TOP \
style WINDOW_STYLE_FILLED \
type ITEM_TYPE_BUTTON \
textFont UI_FONT_SMALL \
foreColor CHOICE_TEXTCOLOR \
textAlign ITEM_ALIGN_TOP_RIGHT \
textAlignX -60 \
textScale CHOICE_TEXTSIZE \
disableColor 0.6 0.55 0.55 1 \
background "menu_button_selection_bar" \
decoration \
visible when(getlocalizednattype() == locstring("@NETWORK_STRICT")) \
exp text(locstring("@NETWORK_YOURNATTYPE") + " ^1" + getlocalizednattype()) \
} \
itemDef \
{ \
name "namehint" \
rect 0 240 212 18 HORIZONTAL_ALIGN_LEFT VERTICAL_ALIGN_TOP \
type ITEM_TYPE_BUTTON \
foreColor CHOICE_TEXTCOLOR \
textAlign ITEM_ALIGN_LEGACY_RIGHT \
textscale 0.2916 \
autowrapped \
decoration \
visible when(getlocalizednattype() == locstring("@NETWORK_STRICT")) \
exp text("@PATCH_STRICTHINT") \
}
#define MENU_PANEL_MAP_PREVIEW_WIDTH 216
#define MENU_PANEL_MAP_PREVIEW_HEIGHT 122
#define MENU_PANEL_MAP_PREVIEW \
itemDef \
{ \
name "preview_image" \
rect 0 -139 MENU_PANEL_MAP_PREVIEW_WIDTH MENU_PANEL_MAP_PREVIEW_HEIGHT HORIZONTAL_ALIGN_LEFT VERTICAL_ALIGN_BOTTOM \
style WINDOW_STYLE_SHADER \
foreColor CHOICE_TEXTCOLOR \
textScale CHOICE_TEXTSIZE \
decoration \
visible 1 \
exp material("preview_" + dvarString("ui_mapname")) \
} \
itemDef \
{ \
name "preview_mapname" \
rect 0 -139 MENU_PANEL_MAP_PREVIEW_WIDTH (MENU_PANEL_MAP_PREVIEW_HEIGHT - 103) HORIZONTAL_ALIGN_LEFT VERTICAL_ALIGN_BOTTOM \
style WINDOW_STYLE_FILLED \
backColor 0 0 0 0.5 \
foreColor CHOICE_TEXTCOLOR \
textFont UI_FONT_SMALL \
textScale CHOICE_TEXTSIZE \
textAlign 6 \
textAlignX -4 \
textAlignY -1 \
decoration \
autoWrapped \
visible 1 \
exp text(dvarString("party_mapname")) \
} \
itemDef \
{ \
name "preview_gametype" \
rect 0 -36 MENU_PANEL_MAP_PREVIEW_WIDTH (MENU_PANEL_MAP_PREVIEW_HEIGHT - 103) HORIZONTAL_ALIGN_LEFT VERTICAL_ALIGN_BOTTOM \
style WINDOW_STYLE_FILLED \
backColor 0 0 0 0.5 \
foreColor CHOICE_TEXTCOLOR \
textFont UI_FONT_SMALL \
textScale CHOICE_TEXTSIZE \
textAlign 6 \
textAlignX -4 \
decoration \
autoWrapped \
visible 1 \
exp text(dvarString("party_gametype")) \
}
#define ON_MENU_OPEN \
uiScript "loadArenas"; \
execNow xblive_rankedmatch 0; \
execNow xblive_privatematch 1; \
exec "exec dvar_defaults.cfg";
#define ON_MENU_CLOSE \
open "main_text";
#define ON_MENU_ESC \
exec "xstopparty"; \
if (inprivateparty() && !privatepartyhost() && privatepartyhostinlobby()) \
{ \
exec "xstopprivateparty"; \
exec "xstartprivateparty"; \
} \
setDvar "xblive_privatematch" 0; \
close self;
#define ACTION_START \
exec "selectStringTableEntryInDvar mp/didyouknow.csv 0 didyouknow;" \
exec "xpartygo";
#define ACTION_RULES \
if (dvarString(ui_gametype) == "arena") \
{ \
open "settings_quick_arena"; \
} \
if (dvarString(ui_gametype) == "war") \
{ \
open "settings_quick_war"; \
} \
if (dvarString(ui_gametype) == "sd") \
{ \
open "settings_quick_sd"; \
} \
if (dvarString(ui_gametype) == "sab") \
{ \
open "settings_quick_sab"; \
} \
if (dvarString(ui_gametype) == "dm") \
{ \
open "settings_quick_dm"; \
} \
if (dvarString(ui_gametype) == "dom") \
{ \
open "settings_quick_dom"; \
} \
if (dvarString(ui_gametype) == "ctf") \
{ \
open "settings_quick_ctf"; \
} \
if (dvarString(ui_gametype) == "koth") \
{ \
open "settings_quick_koth"; \
} \
if (dvarString(ui_gametype) == "oneflag") \
{ \
open "settings_quick_oneflag"; \
} \
if (dvarString(ui_gametype) == "dd") \
{ \
open "settings_quick_dd"; \
} \
if (dvarString(ui_gametype) == "vip") \
{ \
open "settings_quick_vip"; \
} \
if (dvarString(ui_gametype) == "gtnw") \
{ \
open "settings_quick_gtnw"; \
}
menuDef
{
name MENU_NAME
fullscreen 1
rect 0 0 640 480
foreColor CHOICE_TEXTCOLOR
focusColor CHOICE_TEXTCOLOR
soundLoop MENU_MUSIC
fadeCycle 1
fadeClamp 1
fadeAmount 0.1
MENU_ON_OPEN(ON_MENU_OPEN)
MENU_ON_CLOSE(ON_MENU_CLOSE)
MENU_ON_ESC(ON_MENU_ESC)
#define BACKGROUND_IW4
#include "ui_mp/bg.inc"
ITEM_NEWSTICKER_VIS("", 1, NEWSTICKER_SPEED)
MENU_PANEL_SETTINGS
MENU_CHOICE_TITLE(MENU_TITLE, 18)
MENU_CHOICE_BUTTON(0, button_0, "@MENU_START_GAME_CAPS", ACTION_START, "@NULL_EMPTY")
MENU_CHOICE_HORIZONTAL_LINE(1)
MENU_CHOICE_BUTTON(1, button_1, "@MENU_CHANGE_MAP_CAPS", open "settings_map", "@NULL_EMPTY")
MENU_CHOICE_BUTTON(2, button_2, "@MENU_CHANGE_GAME_MODE_CAPS", open "settings_gametype", "@NULL_EMPTY")
MENU_CHOICE_BUTTON_VIS(3, button_3, "@MENU_CHANGE_GAME_RULES_CAPS", ACTION_RULES, "@NULL_EMPTY", when(dvarString(ui_gametype) != "arena" && dvarString(ui_gametype) != "oneflag"))
MENU_CHOICE_DBUTTON_VIS(3, button_3, "@MENU_CHANGE_GAME_RULES_CAPS", "@NULL_EMPTY", when(dvarString(ui_gametype) == "arena" || dvarString(ui_gametype) == "oneflag"))
MENU_CHOICE_HORIZONTAL_LINE(4)
MENU_CHOICE_BUTTON(4, button_4, "@MENU_PASSWORD_CAPS", open "popup_serverpassword", "@NULL_EMPTY")
MENU_CHOICE_HORIZONTAL_LINE(5)
MENU_CHOICE_BUTTON(5, button_5, "@PLATFORM_BACK_CAPS", close self;, "@NULL_EMPTY")
MENU_ITEM_NAT_TYPE
MENU_PANEL_MAP_PREVIEW
ITEM_BUTTON_FRIENDS(-120)
}
+178
View File
@@ -0,0 +1,178 @@
{
menuDef
{
name dpad_hd
fullscreen 0
rect 0 -16 640 480 4 4
style 0
border 0
ownerdraw 0
ownerdrawFlag 0
borderSize 0
foreColor 1 1 1 1
backColor 0 0 0 0
borderColor 0 0 0 0
outlineColor 0 0 0 0
fadeCycle 0
fadeClamp 0
fadeAmount 0
fadeInAmount 0
visible 1
visible when ( ( ( ! ( ui_active( ) ) ) && ( ! ( dvarbool( "g_hardcore" ) ) ) && ( ! ( flashbanged( ) ) ) && ( ! ( ( weaponname( ) == "killstreak_ac130_mp" ) || ( weaponname( ) == "killstreak_helicopter_minigun_mp" ) || ( weaponname( ) == "killstreak_predator_missile_mp" ) || ( ( weaponname( ) == "ac130_105mm_mp" ) || ( weaponname( ) == "ac130_40mm_mp" ) || ( weaponname( ) == "ac130_25mm_mp" ) ) || ( adsjavelin( ) ) || ( weaponname( ) == "heli_remote_mp" ) || missilecam( ) ) ) && ( !isempjammed( ) ) && ( ! ( dvarint( "scr_gameended" ) ) ) ) && ! ( selecting_location( ) ) && ( ! ( spectatingfree( ) ) ) )
blurWorld 0
focusColor 0 0 0 0
itemDef
{
rect 0 0 32 32 10 10
style 0
border 0
ownerdraw 171
ownerdrawFlag 0
borderSize 0
foreColor 1 1 1 1
backColor 0 0 0 0
borderColor 0 0 0 0
outlineColor 0 0 0 0
origin -81 -39
type 8
align 0
textAlign 2
textAlignX -21
textAlignY -9
textScale 0.3333
textStyle 3
textFont 10
feeder 0
visible 1
}
itemDef
{
rect 0 0 32 32 10 10
style 0
border 0
ownerdraw 0
ownerdrawFlag 0
borderSize 0
foreColor 1 1 0 1
backColor 0 0 0 0
borderColor 0 0 0 0
outlineColor 0 0 0 0
origin -81 -39
decoration
type 0
align 0
textAlign 1
textAlignX 0
textAlignY 35
textScale 0.25
textStyle 6
textFont 6
feeder 0
visible 1
exp text ( "^3" + keybinding( "+actionslot 1" ) )
visible when ( actionslotusable( 1 ) )
}
itemDef
{
rect 0 0 32 32 10 10
style 0
border 0
ownerdraw 173
ownerdrawFlag 0
borderSize 0
foreColor 1 1 1 1
backColor 0 0 0 0
borderColor 0 0 0 0
outlineColor 0 0 0 0
origin -61 -29
type 8
align 0
textAlign 2
textAlignX -21
textAlignY -9
textScale 0.3333
textStyle 3
textFont 10
feeder 0
visible 1
}
itemDef
{
rect 0 0 32 32 10 10
style 0
border 0
ownerdraw 0
ownerdrawFlag 0
borderSize 0
foreColor 1 1 0 1
backColor 0 0 0 0
borderColor 0 0 0 0
outlineColor 0 0 0 0
origin -61 -29
decoration
type 0
align 0
textAlign 1
textAlignX 0
textAlignY 35
textScale 0.25
textStyle 6
textFont 6
feeder 0
visible 1
exp text ( "^3" + keybinding( "+actionslot 3" ) )
visible when ( actionslotusable( 3 ) )
}
itemDef
{
rect 0 0 32 32 10 10
style 0
border 0
ownerdraw 174
ownerdrawFlag 0
borderSize 0
foreColor 1 1 1 1
backColor 0 0 0 0
borderColor 0 0 0 0
outlineColor 0 0 0 0
origin -61 -61
type 8
align 0
textAlign 0
textAlignX -40
textAlignY -5
textScale 0.3333
textStyle 3
textFont 10
feeder 0
visible 1
}
itemDef
{
rect 0 0 32 32 10 10
style 0
border 0
ownerdraw 0
ownerdrawFlag 0
borderSize 0
foreColor 1 1 0 1
backColor 0 0 0 0
borderColor 0 0 0 0
outlineColor 0 0 0 0
origin -61 -61
decoration
type 0
align 0
textAlign 1
textAlignX 0
textAlignY 35
textScale 0.25
textStyle 6
textFont 6
feeder 0
visible 1
exp text ( "^3" + keybinding( "+actionslot 4" ) )
visible when ( actionslotusable( 4 ) )
}
}
}
+585
View File
@@ -0,0 +1,585 @@
#define CAC_PRIMARY_WEAPON(itemNum,weaponArg) \
itemDef \
{ \
name "cac_weapon_" ## weaponArg \
rect -64 (4 + (itemNum*20)) 336 20 1 1 \
group "mw2_popup_button" \
style 1 \
visible 1 \
forecolor 1 1 1 1 \
disablecolor 0.6 0.55 0.55 1 \
background "popup_button_selection_bar_short" \
type 1 \
textfont 3 \
textalign 4 \
textalignx 68 \
textscale 0.375 \
disabled when ( !isitemunlocked( weaponArg ) ) \
exp text ( "@" + tablelookup( "mp/statsTable.csv" , 4 , weaponArg , 3 ) ) \
execKeyInt 168 \
{ \
if ( ( tablelookup( "mp/challengeTable.csv" , 6 , weaponArg , 4 ) ) != "" ) \
{ \
setLocalVarString "ui_challengeTierTable" ( tablelookup( "mp/challengeTable.csv" , 6 , weaponArg , 4 ) ); \
open "menu_challenge_details"; \
} \
} \
action \
{ \
play "mouse_click"; \
if ( localvarint( "ui_tabDepth" ) == 0 ) \
{ \
setLocalVarString "ui_tab1Name" ( "@" + tablelookup( "mp/statsTable.csv" , 4 , weaponArg , 3 ) ); \
} \
if ( localvarint( "ui_tabDepth" ) == 1 ) \
{ \
setLocalVarString "ui_tab2Name" ( "@" + tablelookup( "mp/statsTable.csv" , 4 , weaponArg , 3 ) ); \
} \
if ( localvarint( "ui_tabDepth" ) == 2 ) \
{ \
setLocalVarString "ui_tab3Name" ( "@" + tablelookup( "mp/statsTable.csv" , 4 , weaponArg , 3 ) ); \
} \
if ( localvarint( "ui_tabDepth" ) == 3 ) \
{ \
setLocalVarString "ui_tab4Name" ( "@" + tablelookup( "mp/statsTable.csv" , 4 , weaponArg , 3 ) ); \
} \
if ( localvarint( "ui_tabDepth" ) == 4 ) \
{ \
setLocalVarString "ui_tab5Name" ( "@" + tablelookup( "mp/statsTable.csv" , 4 , weaponArg , 3 ) ); \
} \
if ( localvarint( "ui_tabDepth" ) == 5 ) \
{ \
setLocalVarString "ui_tab6Name" ( "@" + tablelookup( "mp/statsTable.csv" , 4 , weaponArg , 3 ) ); \
} \
if ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "weapon" ) != weaponArg ) \
{ \
setPlayerData( "customClasses" , localVarInt ( "classIndex" ) , "weaponSetups" , 0 , "attachment" , 0 , "none" ); \
setPlayerData( "customClasses" , localVarInt ( "classIndex" ) , "weaponSetups" , 0 , "attachment" , 1 , "none" ); \
setPlayerData( "customClasses" , localVarInt ( "classIndex" ) , "weaponSetups" , 0 , "camo" , "none" ); \
} \
setPlayerData( "customClasses" , localVarInt ( "classIndex" ) , "weaponSetups" , 0 , "weapon" , weaponArg ); \
setPlayerData( "weaponNew" , weaponArg , "false" ); \
if ( !( tablelookup( "mp/attachmentTable.csv" , 4 , getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "attachment" , 0 ) , 12 ) != "" || tablelookup( "mp/attachmentTable.csv" , 4 , getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 0 ) , 12 ) != "" ) && ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 0 ) == "specialty_null_gl" || getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 0 ) == "specialty_null_grip" || getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 0 ) == "specialty_null_shotgun" ) || getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 0 ) == "specialty_null_heartbeat" ) \
{ \
setPlayerData( "customClasses" , localVarInt ( "classIndex" ) , "perks" , 0 , "specialty_null" ); \
} \
setLocalVarString "loadoutPrimary" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "weapon" ) ); \
setLocalVarString "loadoutPrimaryAttachment" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "attachment" , 0 ) ); \
setLocalVarString "loadoutPrimaryAttachment2" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "attachment" , 1 ) ); \
if ( localvarstring( "loadoutPrimaryAttachment2" ) == "" ) \
{ \
setLocalVarString "loadoutPrimaryAttachment2" ( "none" ); \
} \
setLocalVarString "loadoutPrimaryCamo" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "camo" ) ); \
setLocalVarString "loadoutSecondaryCamo" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "camo" ) ); \
setLocalVarString "loadoutSecondary" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "weapon" ) ); \
setLocalVarString "loadoutSecondaryAttachment" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 0 ) ); \
setLocalVarString "loadoutSecondaryAttachment2" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 1 ) ); \
if ( localvarstring( "loadoutSecondaryAttachment2" ) == "" ) \
{ \
setLocalVarString "loadoutSecondaryAttachment2" ( "none" ); \
} \
setLocalVarString "loadoutSecondaryCamo" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "camo" ) ); \
setLocalVarString "loadoutEquipment" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 0 ) ); \
setLocalVarString "loadoutPerk1" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 1 ) ); \
setLocalVarString "loadoutPerk2" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 2 ) ); \
setLocalVarString "loadoutPerk3" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 3 ) ); \
setLocalVarString "loadoutStreak1" ( getplayerdata( "killstreaks" , 0 ) ); \
setLocalVarString "loadoutStreak2" ( getplayerdata( "killstreaks" , 1 ) ); \
setLocalVarString "loadoutStreak3" ( getplayerdata( "killstreaks" , 2 ) ); \
setLocalVarString "loadoutDeathStreak" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 4 ) ); \
setLocalVarString "loadoutOffhandSecondary" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "specialGrenade" ) ); \
setLocalVarString "loadoutClassName" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "name" ) ); \
if ( 0 == 0 ) \
{ \
if ( ( tablelookup( "mp/statsTable.csv" , 4 , weaponArg , 11 ) != "" ) ) \
{ \
if ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 1 ) == "specialty_bling" ) \
{ \
open "popup_primary_attachments_bling"; \
} \
else \
{ \
open "popup_primary_attachments"; \
} \
} \
else \
{ \
open "popup_cac_primary_camo"; \
} \
} \
else \
{ \
if ( ( tablelookup( "mp/statsTable.csv" , 4 , weaponArg , 11 ) != "" ) ) \
{ \
if ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 1 ) == "specialty_bling" && isitemunlocked( "specialty_secondarybling" ) ) \
{ \
open "popup_secondary_attachments_bling"; \
} \
else \
{ \
open "popup_secondary_attachments"; \
} \
} \
else \
{ \
close "popup_cac_weapon_primary"; \
close "popup_primary_attachments"; \
close "popup_secondary_attachments"; \
close "popup_cac_weapon_secondary"; \
close "popup_cac_handgun_secondary"; \
close "popup_cac_machinePistols_secondary"; \
close "popup_cac_assault_primary"; \
close "popup_cac_SMG_primary"; \
close "popup_cac_LMG_primary"; \
close "popup_cac_sniper_primary"; \
close "popup_cac_shotgun_primary"; \
close "popup_cac_assault_secondary"; \
close "popup_cac_SMG_secondary"; \
close "popup_cac_LMG_secondary"; \
close "popup_cac_sniper_secondary"; \
close "popup_cac_shotgun_secondary"; \
close "popup_cac_template"; \
close "popup_cac_primary_camo"; \
close "popup_cac_secondary_camo"; \
close "popup_cac_bling"; \
close "popup_cac_perk2"; \
close "popup_cac_rocket_secondary"; \
close "popup_primary_attachments_bling"; \
close "popup_secondary_attachments_bling"; \
close "popup_cac_other_primary"; \
} \
} \
} \
onFocus \
{ \
play "mouse_over"; \
if ( dvarstring( "gameMode" ) != "mp" ) \
{ \
setItemColor "mw2_popup_button" backcolor 0 0 0 0; \
} \
setItemColor self backcolor 0 0 0 1; \
setLocalVarBool "ui_popupAButton" ( 1 ); \
setLocalVarString "ui_selected_ref" ( weaponArg ); \
} \
leaveFocus \
{ \
setItemColor self backcolor 1 1 1 0; \
setLocalVarBool "ui_popupAButton" ( 0 ); \
setPlayerData( "weaponNew" , weaponArg , "false" ); \
} \
} \
itemDef \
{ \
rect 162 (4 + (itemNum*20)) 40 20 1 1 \
style 3 \
decoration \
visible 1 \
forecolor 1 1 1 1 \
background "specialty_new" \
textscale 0.55 \
visible when ( ( getplayerdata( "weaponNew" , weaponArg ) || getplayerdataanybooltrue( "camoNew" , weaponArg ) || getplayerdataanybooltrue( "attachmentNew" , weaponArg ) ) ) \
} \
itemDef \
{ \
rect 162 (4 + (itemNum*20)) 40 20 1 1 \
style 3 \
decoration \
visible 1 \
forecolor 1 1 1 1 \
background "specialty_locked" \
textscale 0.55 \
visible when ( ( isitemunlocked( weaponArg ) == 0 ) ) \
}
#define CAC_SECONDARY_WEAPON(itemNum,weaponArg) \
itemDef \
{ \
name "cac_weapon_" ## weaponArg \
rect -64 (4 + (itemNum*20)) 336 20 1 1 \
group "mw2_popup_button" \
style 1 \
visible 1 \
forecolor 1 1 1 1 \
disablecolor 0.6 0.55 0.55 1 \
background "popup_button_selection_bar_short" \
type 1 \
textfont 3 \
textalign 4 \
textalignx 68 \
textscale 0.375 \
disabled when ( !isitemunlocked( weaponArg ) ) \
exp text ( "@" + tablelookup( "mp/statsTable.csv" , 4 , weaponArg , 3 ) ) \
execKeyInt 168 \
{ \
if ( ( tablelookup( "mp/challengeTable.csv" , 6 , weaponArg , 4 ) ) != "" ) \
{ \
setLocalVarString "ui_challengeTierTable" ( tablelookup( "mp/challengeTable.csv" , 6 , weaponArg , 4 ) ); \
open "menu_challenge_details"; \
} \
} \
action \
{ \
play "mouse_click"; \
if ( localvarint( "ui_tabDepth" ) == 0 ) \
{ \
setLocalVarString "ui_tab1Name" ( "@" + tablelookup( "mp/statsTable.csv" , 4 , weaponArg , 3 ) ); \
} \
if ( localvarint( "ui_tabDepth" ) == 1 ) \
{ \
setLocalVarString "ui_tab2Name" ( "@" + tablelookup( "mp/statsTable.csv" , 4 , weaponArg , 3 ) ); \
} \
if ( localvarint( "ui_tabDepth" ) == 2 ) \
{ \
setLocalVarString "ui_tab3Name" ( "@" + tablelookup( "mp/statsTable.csv" , 4 , weaponArg , 3 ) ); \
} \
if ( localvarint( "ui_tabDepth" ) == 3 ) \
{ \
setLocalVarString "ui_tab4Name" ( "@" + tablelookup( "mp/statsTable.csv" , 4 , weaponArg , 3 ) ); \
} \
if ( localvarint( "ui_tabDepth" ) == 4 ) \
{ \
setLocalVarString "ui_tab5Name" ( "@" + tablelookup( "mp/statsTable.csv" , 4 , weaponArg , 3 ) ); \
} \
if ( localvarint( "ui_tabDepth" ) == 5 ) \
{ \
setLocalVarString "ui_tab6Name" ( "@" + tablelookup( "mp/statsTable.csv" , 4 , weaponArg , 3 ) ); \
} \
if ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "weapon" ) != weaponArg ) \
{ \
setPlayerData( "customClasses" , localVarInt ( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 0 , "none" ); \
setPlayerData( "customClasses" , localVarInt ( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 1 , "none" ); \
setPlayerData( "customClasses" , localVarInt ( "classIndex" ) , "weaponSetups" , 1 , "camo" , "none" ); \
} \
setPlayerData( "customClasses" , localVarInt ( "classIndex" ) , "weaponSetups" , 1 , "weapon" , weaponArg ); \
setPlayerData( "weaponNew" , weaponArg , "false" ); \
if ( !( tablelookup( "mp/attachmentTable.csv" , 4 , getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "attachment" , 0 ) , 12 ) != "" || tablelookup( "mp/attachmentTable.csv" , 4 , getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 0 ) , 12 ) != "" ) && ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 0 ) == "specialty_null_gl" || getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 0 ) == "specialty_null_grip" || getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 0 ) == "specialty_null_shotgun" ) || getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 0 ) == "specialty_null_heartbeat" ) \
{ \
setPlayerData( "customClasses" , localVarInt ( "classIndex" ) , "perks" , 0 , "specialty_null" ); \
} \
setLocalVarString "loadoutPrimary" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "weapon" ) ); \
setLocalVarString "loadoutPrimaryAttachment" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "attachment" , 0 ) ); \
setLocalVarString "loadoutPrimaryAttachment2" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "attachment" , 1 ) ); \
if ( localvarstring( "loadoutPrimaryAttachment2" ) == "" ) \
{ \
setLocalVarString "loadoutPrimaryAttachment2" ( "none" ); \
} \
setLocalVarString "loadoutPrimaryCamo" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "camo" ) ); \
setLocalVarString "loadoutSecondaryCamo" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "camo" ) ); \
setLocalVarString "loadoutSecondary" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "weapon" ) ); \
setLocalVarString "loadoutSecondaryAttachment" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 0 ) ); \
setLocalVarString "loadoutSecondaryAttachment2" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 1 ) ); \
if ( localvarstring( "loadoutSecondaryAttachment2" ) == "" ) \
{ \
setLocalVarString "loadoutSecondaryAttachment2" ( "none" ); \
} \
setLocalVarString "loadoutSecondaryCamo" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "camo" ) ); \
setLocalVarString "loadoutEquipment" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 0 ) ); \
setLocalVarString "loadoutPerk1" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 1 ) ); \
setLocalVarString "loadoutPerk2" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 2 ) ); \
setLocalVarString "loadoutPerk3" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 3 ) ); \
setLocalVarString "loadoutStreak1" ( getplayerdata( "killstreaks" , 0 ) ); \
setLocalVarString "loadoutStreak2" ( getplayerdata( "killstreaks" , 1 ) ); \
setLocalVarString "loadoutStreak3" ( getplayerdata( "killstreaks" , 2 ) ); \
setLocalVarString "loadoutDeathStreak" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 4 ) ); \
setLocalVarString "loadoutOffhandSecondary" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "specialGrenade" ) ); \
setLocalVarString "loadoutClassName" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "name" ) ); \
if ( 1 == 0 ) \
{ \
if ( ( tablelookup( "mp/statsTable.csv" , 4 , weaponArg , 11 ) != "" ) ) \
{ \
if ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 1 ) == "specialty_bling" ) \
{ \
open "popup_primary_attachments_bling"; \
} \
else \
{ \
open "popup_primary_attachments"; \
} \
} \
else \
{ \
open "popup_cac_primary_camo"; \
} \
} \
else \
{ \
if ( ( tablelookup( "mp/statsTable.csv" , 4 , weaponArg , 11 ) != "" ) ) \
{ \
if ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 1 ) == "specialty_bling" && isitemunlocked( "specialty_secondarybling" ) ) \
{ \
open "popup_secondary_attachments_bling"; \
} \
else \
{ \
open "popup_secondary_attachments"; \
} \
} \
else \
{ \
close "popup_cac_weapon_primary"; \
close "popup_primary_attachments"; \
close "popup_secondary_attachments"; \
close "popup_cac_weapon_secondary"; \
close "popup_cac_handgun_secondary"; \
close "popup_cac_machinePistols_secondary"; \
close "popup_cac_assault_primary"; \
close "popup_cac_SMG_primary"; \
close "popup_cac_LMG_primary"; \
close "popup_cac_sniper_primary"; \
close "popup_cac_shotgun_primary"; \
close "popup_cac_assault_secondary"; \
close "popup_cac_SMG_secondary"; \
close "popup_cac_LMG_secondary"; \
close "popup_cac_sniper_secondary"; \
close "popup_cac_shotgun_secondary"; \
close "popup_cac_template"; \
close "popup_cac_primary_camo"; \
close "popup_cac_secondary_camo"; \
close "popup_cac_bling"; \
close "popup_cac_perk2"; \
close "popup_cac_rocket_secondary"; \
close "popup_primary_attachments_bling"; \
close "popup_secondary_attachments_bling"; \
close "popup_cac_other_primary"; \
} \
} \
} \
onFocus \
{ \
play "mouse_over"; \
if ( dvarstring( "gameMode" ) != "mp" ) \
{ \
setItemColor "mw2_popup_button" backcolor 0 0 0 0; \
} \
setItemColor self backcolor 0 0 0 1; \
setLocalVarBool "ui_popupAButton" ( 1 ); \
setLocalVarString "ui_selected_ref" ( weaponArg ); \
} \
leaveFocus \
{ \
setItemColor self backcolor 1 1 1 0; \
setLocalVarBool "ui_popupAButton" ( 0 ); \
setPlayerData( "weaponNew" , weaponArg , "false" ); \
} \
} \
itemDef \
{ \
rect 162 (4 + (itemNum*20)) 40 20 1 1 \
style 3 \
decoration \
visible 1 \
forecolor 1 1 1 1 \
background "specialty_new" \
textscale 0.55 \
visible when ( ( getplayerdata( "weaponNew" , weaponArg ) || getplayerdataanybooltrue( "camoNew" , weaponArg ) || getplayerdataanybooltrue( "attachmentNew" , weaponArg ) ) ) \
} \
itemDef \
{ \
rect 162 (4 + (itemNum*20)) 40 20 1 1 \
style 3 \
decoration \
visible 1 \
forecolor 1 1 1 1 \
background "specialty_locked" \
textscale 0.55 \
visible when ( ( isitemunlocked( weaponArg ) == 0 ) ) \
}
#define CAC_SECONDARY_WEAPON_W_GOLD(itemNum,weaponArg) \
itemDef \
{ \
name "cac_weapon_" ## weaponArg \
rect -64 (4 + (itemNum*20)) 336 20 1 1 \
group "mw2_popup_button" \
style 1 \
visible 1 \
forecolor 1 1 1 1 \
disablecolor 0.6 0.55 0.55 1 \
background "popup_button_selection_bar_short" \
type 1 \
textfont 3 \
textalign 4 \
textalignx 68 \
textscale 0.375 \
disabled when ( !isitemunlocked( weaponArg ) ) \
exp text ( "@" + tablelookup( "mp/statsTable.csv" , 4 , weaponArg , 3 ) ) \
execKeyInt 168 \
{ \
if ( ( tablelookup( "mp/challengeTable.csv" , 6 , weaponArg , 4 ) ) != "" ) \
{ \
setLocalVarString "ui_challengeTierTable" ( tablelookup( "mp/challengeTable.csv" , 6 , weaponArg , 4 ) ); \
open "menu_challenge_details"; \
} \
} \
action \
{ \
play "mouse_click"; \
if ( localvarint( "ui_tabDepth" ) == 0 ) \
{ \
setLocalVarString "ui_tab1Name" ( "@" + tablelookup( "mp/statsTable.csv" , 4 , weaponArg , 3 ) ); \
} \
if ( localvarint( "ui_tabDepth" ) == 1 ) \
{ \
setLocalVarString "ui_tab2Name" ( "@" + tablelookup( "mp/statsTable.csv" , 4 , weaponArg , 3 ) ); \
} \
if ( localvarint( "ui_tabDepth" ) == 2 ) \
{ \
setLocalVarString "ui_tab3Name" ( "@" + tablelookup( "mp/statsTable.csv" , 4 , weaponArg , 3 ) ); \
} \
if ( localvarint( "ui_tabDepth" ) == 3 ) \
{ \
setLocalVarString "ui_tab4Name" ( "@" + tablelookup( "mp/statsTable.csv" , 4 , weaponArg , 3 ) ); \
} \
if ( localvarint( "ui_tabDepth" ) == 4 ) \
{ \
setLocalVarString "ui_tab5Name" ( "@" + tablelookup( "mp/statsTable.csv" , 4 , weaponArg , 3 ) ); \
} \
if ( localvarint( "ui_tabDepth" ) == 5 ) \
{ \
setLocalVarString "ui_tab6Name" ( "@" + tablelookup( "mp/statsTable.csv" , 4 , weaponArg , 3 ) ); \
} \
if ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "weapon" ) != weaponArg ) \
{ \
setPlayerData( "customClasses" , localVarInt ( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 0 , "none" ); \
setPlayerData( "customClasses" , localVarInt ( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 1 , "none" ); \
setPlayerData( "customClasses" , localVarInt ( "classIndex" ) , "weaponSetups" , 1 , "camo" , "none" ); \
} \
setPlayerData( "customClasses" , localVarInt ( "classIndex" ) , "weaponSetups" , 1 , "weapon" , weaponArg ); \
setPlayerData( "customClasses" , localVarInt ( "classIndex" ) , "weaponSetups" , 1 , "camo" , "gold" ); \
setPlayerData( "weaponNew" , weaponArg , "false" ); \
if ( !( tablelookup( "mp/attachmentTable.csv" , 4 , getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "attachment" , 0 ) , 12 ) != "" || tablelookup( "mp/attachmentTable.csv" , 4 , getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 0 ) , 12 ) != "" ) && ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 0 ) == "specialty_null_gl" || getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 0 ) == "specialty_null_grip" || getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 0 ) == "specialty_null_shotgun" ) || getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 0 ) == "specialty_null_heartbeat" ) \
{ \
setPlayerData( "customClasses" , localVarInt ( "classIndex" ) , "perks" , 0 , "specialty_null" ); \
} \
setLocalVarString "loadoutPrimary" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "weapon" ) ); \
setLocalVarString "loadoutPrimaryAttachment" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "attachment" , 0 ) ); \
setLocalVarString "loadoutPrimaryAttachment2" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "attachment" , 1 ) ); \
if ( localvarstring( "loadoutPrimaryAttachment2" ) == "" ) \
{ \
setLocalVarString "loadoutPrimaryAttachment2" ( "none" ); \
} \
setLocalVarString "loadoutPrimaryCamo" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "camo" ) ); \
setLocalVarString "loadoutSecondaryCamo" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "camo" ) ); \
setLocalVarString "loadoutSecondary" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "weapon" ) ); \
setLocalVarString "loadoutSecondaryAttachment" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 0 ) ); \
setLocalVarString "loadoutSecondaryAttachment2" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 1 ) ); \
if ( localvarstring( "loadoutSecondaryAttachment2" ) == "" ) \
{ \
setLocalVarString "loadoutSecondaryAttachment2" ( "none" ); \
} \
setLocalVarString "loadoutSecondaryCamo" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "camo" ) ); \
setLocalVarString "loadoutEquipment" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 0 ) ); \
setLocalVarString "loadoutPerk1" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 1 ) ); \
setLocalVarString "loadoutPerk2" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 2 ) ); \
setLocalVarString "loadoutPerk3" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 3 ) ); \
setLocalVarString "loadoutStreak1" ( getplayerdata( "killstreaks" , 0 ) ); \
setLocalVarString "loadoutStreak2" ( getplayerdata( "killstreaks" , 1 ) ); \
setLocalVarString "loadoutStreak3" ( getplayerdata( "killstreaks" , 2 ) ); \
setLocalVarString "loadoutDeathStreak" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 4 ) ); \
setLocalVarString "loadoutOffhandSecondary" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "specialGrenade" ) ); \
setLocalVarString "loadoutClassName" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "name" ) ); \
if ( 1 == 0 ) \
{ \
if ( ( tablelookup( "mp/statsTable.csv" , 4 , weaponArg , 11 ) != "" ) ) \
{ \
if ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 1 ) == "specialty_bling" ) \
{ \
open "popup_primary_attachments_bling"; \
} \
else \
{ \
open "popup_primary_attachments"; \
} \
} \
else \
{ \
open "popup_cac_primary_camo"; \
} \
} \
else \
{ \
if ( ( tablelookup( "mp/statsTable.csv" , 4 , weaponArg , 11 ) != "" ) ) \
{ \
if ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 1 ) == "specialty_bling" && isitemunlocked( "specialty_secondarybling" ) ) \
{ \
open "popup_secondary_attachments_bling"; \
} \
else \
{ \
open "popup_secondary_attachments"; \
} \
} \
else \
{ \
close "popup_cac_weapon_primary"; \
close "popup_primary_attachments"; \
close "popup_secondary_attachments"; \
close "popup_cac_weapon_secondary"; \
close "popup_cac_handgun_secondary"; \
close "popup_cac_machinePistols_secondary"; \
close "popup_cac_assault_primary"; \
close "popup_cac_SMG_primary"; \
close "popup_cac_LMG_primary"; \
close "popup_cac_sniper_primary"; \
close "popup_cac_shotgun_primary"; \
close "popup_cac_assault_secondary"; \
close "popup_cac_SMG_secondary"; \
close "popup_cac_LMG_secondary"; \
close "popup_cac_sniper_secondary"; \
close "popup_cac_shotgun_secondary"; \
close "popup_cac_template"; \
close "popup_cac_primary_camo"; \
close "popup_cac_secondary_camo"; \
close "popup_cac_bling"; \
close "popup_cac_perk2"; \
close "popup_cac_rocket_secondary"; \
close "popup_primary_attachments_bling"; \
close "popup_secondary_attachments_bling"; \
close "popup_cac_other_primary"; \
} \
} \
} \
onFocus \
{ \
play "mouse_over"; \
if ( dvarstring( "gameMode" ) != "mp" ) \
{ \
setItemColor "mw2_popup_button" backcolor 0 0 0 0; \
} \
setItemColor self backcolor 0 0 0 1; \
setLocalVarBool "ui_popupAButton" ( 1 ); \
setLocalVarString "ui_selected_ref" ( weaponArg ); \
} \
leaveFocus \
{ \
setItemColor self backcolor 1 1 1 0; \
setLocalVarBool "ui_popupAButton" ( 0 ); \
setPlayerData( "weaponNew" , weaponArg , "false" ); \
} \
} \
itemDef \
{ \
rect 162 (4 + (itemNum*20)) 40 20 1 1 \
style 3 \
decoration \
visible 1 \
forecolor 1 1 1 1 \
background "specialty_new" \
textscale 0.55 \
visible when ( ( getplayerdata( "weaponNew" , weaponArg ) || getplayerdataanybooltrue( "camoNew" , weaponArg ) || getplayerdataanybooltrue( "attachmentNew" , weaponArg ) ) ) \
} \
itemDef \
{ \
rect 162 (4 + (itemNum*20)) 40 20 1 1 \
style 3 \
decoration \
visible 1 \
forecolor 1 1 1 1 \
background "specialty_locked" \
textscale 0.55 \
visible when ( ( isitemunlocked( weaponArg ) == 0 ) ) \
}
#define CLASS_FOCUS(weaponArg) if ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "weapon" ) == weaponArg ) { setfocus "cac_weapon_" ## weaponArg; }
#define CLASS_FOCUS_SECONDARY(weaponArg) if ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "weapon" ) == weaponArg ) { setfocus "cac_weapon_" ## weaponArg; }
+591
View File
@@ -0,0 +1,591 @@
{
menuDef
{
name "filter_popmenu"
rect -150 -124 236 250 2 2
popup
legacySplitScreenScale
style 1
forecolor 1 1 1 1
backcolor 1 1 1 1
background "white"
focuscolor 1 1 1 1
onOpen
{
setLocalVarInt "ui_centerPopup" ( 1 );
}
onClose
{
setLocalVarInt "ui_centerPopup" ( 0 );
}
onEsc
{
close self;
}
itemDef
{
rect -1004 -564 1708 960 2 2
decoration
visible 1
style 1
forecolor 1 1 1 1
backcolor 0 0 0 0.35
background "white"
textscale 0.55
}
itemDef
{
rect -1004 -564 1708 960 2 2
decoration
visible 1
style 1
forecolor 1 1 1 1
backcolor 1 1 1 1
background "xpbar_stencilbase"
textscale 0.55
}
itemDef
{
rect 0 0 236 250 2 2
decoration
visible 1
style 1
forecolor 1 1 1 1
backcolor 0.5 0.5 0.5 1
background "white"
textscale 0.55
}
itemDef
{
rect -150 -44 1708 480 2 2
decoration
visible 1
style 3
forecolor 1 1 1 0.75
background "mw2_popup_bg_fogstencil"
textscale 0.55
exp rect x ( 0 - ( ( float( milliseconds( ) % 60000 ) / 60000 ) * ( 854 ) ) )
}
itemDef
{
rect -150 -44 -1708 -480 2 2
decoration
visible 1
style 3
forecolor 0.85 0.85 0.85 1
background "mw2_popup_bg_fogscroll"
textscale 0.55
exp rect x ( 0 - ( ( float( milliseconds( ) % 60000 ) / 60000 ) * ( 854 ) ) )
}
itemDef
{
rect 0 0 236 0 2 2
decoration
visible 1
style 3
forecolor 1 1 1 1
background "mockup_popup_bg_stencilfill"
textscale 0.55
exp rect h ( ( 190 + 3 * 20 ) )
}
itemDef
{
rect -150 -44 -1708 -480 2 2
decoration
visible 1
style 3
forecolor 1 1 1 0.75
background "mw2_popup_bg_fogstencil"
textscale 0.55
exp rect x ( ( 0 - 854 ) + ( ( float( milliseconds( ) % 50000 ) / 50000 ) * ( 854 ) ) )
}
itemDef
{
rect -150 -44 -1708 -480 2 2
decoration
visible 1
style 3
forecolor 0.85 0.85 0.85 1
background "mw2_popup_bg_fogscroll"
textscale 0.55
exp rect x ( ( 0 - 854 ) + ( ( float( milliseconds( ) % 50000 ) / 50000 ) * ( 854 ) ) )
}
itemDef
{
rect -150 -44 236 0 1 1
decoration
visible 1
style 3
forecolor 1 1 1 0
background "small_box_lightfx"
textscale 0.55
exp rect h ( ( 24 + 3 * 20 ) )
}
itemDef
{
rect -64 -64 64 64 2 2
decoration
visible 1
style 3
forecolor 0 0 0 1
background "drop_shadow_tl"
textscale 0.55
visible when ( 1 )
}
itemDef
{
rect 0 -64 236 64 2 2
decoration
visible 1
style 3
forecolor 0 0 0 1
background "drop_shadow_t"
textscale 0.55
visible when ( 1 )
}
itemDef
{
rect 236 -64 64 64 2 2
decoration
visible 1
style 3
forecolor 0 0 0 1
background "drop_shadow_tr"
textscale 0.55
visible when ( 1 )
}
itemDef
{
rect 236 0 64 0 2 2
decoration
visible 1
style 3
forecolor 0 0 0 1
background "drop_shadow_r"
textscale 0.55
exp rect h ( ( 25 + 3 * 75 ) )
visible when ( 1 )
}
itemDef
{
rect 236 0 64 64 2 2
decoration
visible 1
style 3
forecolor 0 0 0 1
background "drop_shadow_br"
textscale 0.55
exp rect y ( ( 166 - 0 ) + ( ( 24 + 3 * 20 ) ) )
visible when ( 1 )
}
itemDef
{
rect 0 0 236 64 2 2
decoration
visible 1
style 3
forecolor 0 0 0 1
background "drop_shadow_b"
textscale 0.55
exp rect y ( ( 166 - 0 ) + ( ( 24 + 3 * 20 ) ) )
visible when ( 1 )
}
itemDef
{
rect -64 0 64 64 2 2
decoration
visible 1
style 3
forecolor 0 0 0 1
background "drop_shadow_bl"
textscale 0.55
exp rect y ( ( 166 - 0 ) + ( ( 24 + 3 * 20 ) ) )
visible when ( 1 )
}
itemDef
{
rect -64 0 64 0 2 2
decoration
visible 1
style 3
forecolor 0 0 0 1
background "drop_shadow_l"
textscale 0.55
exp rect h ( ( 25 + 3 * 75 ) )
visible when ( 1 )
}
itemDef
{
rect 0 0 236 24 2 2
decoration
visible 1
style 1
forecolor 1 1 1 1
background "gradient_fadein"
textfont 9
textalign 5
textalignx 0
textscale 0.375
text "@MENU_FILTER_SERVERS"
}
itemDef
{
rect 0 30 234 20 2 2
style 1
decoration
visible 1
foreColor 1 1 1 1
backColor 0.6 0.55 0.55 0.5
background "menu_setting_selection_bar"
textFont 3
textAlign 0
textAlignX 6
textAlignY 18
textScale 0.375
text "@MENU_VIEW_EMPTY"
visible 1
}
itemDef
{
rect 0 30 234 20 2 2
style 1
type 11
foreColor 1 1 1 1
background "menu_setting_selection_bar"
textFont 3
textAlign 2
textAlignX -32
textAlignY 18
textScale 0.375
dvar "ui_browserShowEmpty"
visible 1
action
{
play "mouse_click";
}
onFocus
{
setItemColor self backColor 0 0 0 1;
play "mouse_over";
}
leaveFocus
{
setItemColor self backColor 0 0 0 0;
}
}
itemDef
{
rect 0 50 234 20 2 2
style 1
decoration
visible 1
foreColor 1 1 1 1
backColor 0.6 0.55 0.55 0.5
background "menu_setting_selection_bar"
textFont 3
textAlign 0
textAlignX 6
textAlignY 18
textScale 0.375
text "@MENU_VIEW_FULL"
visible 1
}
itemDef
{
rect 0 50 234 20 2 2
style 1
type 11
foreColor 1 1 1 1
background "menu_setting_selection_bar"
textFont 3
textAlign 2
textAlignX -32
textAlignY 18
textScale 0.375
dvar "ui_browserShowFull"
visible 1
action
{
play "mouse_click";
}
onFocus
{
setItemColor self backColor 0 0 0 1;
play "mouse_over";
}
leaveFocus
{
setItemColor self backColor 0 0 0 0;
}
}
itemDef
{
rect 0 70 234 20 2 2
style 1
decoration
visible 1
foreColor 1 1 1 1
backColor 0.6 0.55 0.55 0.5
background "menu_setting_selection_bar"
textFont 3
textAlign 0
textAlignX 6
textAlignY 18
textScale 0.375
text "@MENU_VIEW_PASSWORD"
visible 1
}
itemDef
{
rect 0 70 234 20 2 2
style 1
type 12
foreColor 1 1 1 1
background "menu_setting_selection_bar"
textFont 3
textAlign 2
textAlignX -32
textAlignY 18
textScale 0.375
dvar "ui_browserShowPassword"
dvarFloatList { "@MENU_ALL" -1 "@MENU_NO" 0 "@MENU_YES" 1 }
visible 1
action
{
play "mouse_click";
}
onFocus
{
setItemColor self backColor 0 0 0 1;
play "mouse_over";
}
leaveFocus
{
setItemColor self backColor 0 0 0 0;
}
}
itemDef
{
rect 0 90 234 20 2 2
style 1
decoration
visible 1
foreColor 1 1 1 1
backColor 0.6 0.55 0.55 0.5
background "menu_setting_selection_bar"
textFont 3
textAlign 0
textAlignX 6
textAlignY 18
textScale 0.375
text "@MPUI_HARDCORE_PRE"
visible 1
}
itemDef
{
rect 0 90 234 20 2 2
style 1
type 12
foreColor 1 1 1 1
background "menu_setting_selection_bar"
textFont 3
textAlign 2
textAlignX -32
textAlignY 18
textScale 0.375
dvar "ui_browserKillcam"
dvarFloatList { "@MENU_ALL" -1 "@MENU_NO" 0 "@MENU_YES" 1 }
visible 1
action
{
play "mouse_click";
}
onFocus
{
setItemColor self backColor 0 0 0 1;
play "mouse_over";
}
leaveFocus
{
setItemColor self backColor 0 0 0 0;
}
}
itemDef
{
rect 0 110 234 20 2 2
style 1
decoration
visible 1
foreColor 1 1 1 1
backColor 0.6 0.55 0.55 0.5
background "menu_setting_selection_bar"
textFont 3
textAlign 0
textAlignX 6
textAlignY 18
textScale 0.375
text "@MENU_MODSWITHCOLON"
visible 1
}
itemDef
{
rect 0 110 234 20 2 2
style 1
type 12
foreColor 1 1 1 1
background "menu_setting_selection_bar"
textFont 3
textAlign 2
textAlignX -32
textAlignY 18
textScale 0.375
dvar "ui_browserMod"
dvarFloatList { "@MENU_ALL" -1 "@MENU_NO" 0 "@MENU_YES" 1 }
visible 1
action
{
play "mouse_click";
}
onFocus
{
setItemColor self backColor 0 0 0 1;
play "mouse_over";
}
leaveFocus
{
setItemColor self backColor 0 0 0 0;
}
}
itemDef
{
rect 0 130 234 20 2 2
style 1
decoration
visible 1
foreColor 1 1 1 1
backColor 0.6 0.55 0.55 0.5
background "menu_setting_selection_bar"
textFont 3
textAlign 0
textAlignX 6
textAlignY 18
textScale 0.375
text "@MENU_DEDICATEDONLY"
visible 1
}
itemDef
{
rect 0 130 234 20 2 2
style 1
type 12
foreColor 1 1 1 1
background "menu_setting_selection_bar"
textFont 3
textAlign 2
textAlignX -32
textAlignY 18
textScale 0.375
dvar "ui_browserFriendlyfire"
dvarFloatList { "@MENU_ALL" -1 "@MENU_NO" 0 "@MENU_YES" 1 }
visible 1
action
{
play "mouse_click";
}
onFocus
{
setItemColor self backColor 0 0 0 1;
play "mouse_over";
}
leaveFocus
{
setItemColor self backColor 0 0 0 0;
}
}
itemDef
{
name "apply"
rect 0 210 234 20 2 2
visible 1
group "mw2_popup_button"
style 1
forecolor 1 1 1 1
disablecolor 0.6 0.55 0.55 1
background "popup_button_selection_bar"
type 1
textfont 3
textalign 6
textalignx -24
textscale 0.375
text "@MENU_OK"
visible when ( 1 )
action
{
play "mouse_click";
uiScript "UpdateFilter";
close self;
}
onFocus
{
play "mouse_over";
if ( dvarstring( "gameMode" ) != "mp" )
{
setItemColor "mw2_popup_button" backcolor 0 0 0 0;
}
setItemColor self backcolor 0 0 0 1;
setLocalVarBool "ui_popupAButton" ( 1 );
}
leaveFocus
{
setItemColor self backcolor 1 1 1 0;
setLocalVarBool "ui_popupAButton" ( 0 );
}
}
itemDef
{
name "reset"
rect 0 230 234 20 2 2
visible 1
group "mw2_popup_button"
style 1
forecolor 1 1 1 1
disablecolor 0.6 0.55 0.55 1
background "popup_button_selection_bar"
type 1
textfont 3
textalign 6
textalignx -24
textscale 0.375
text "@MENU_RESET"
visible when ( 1 )
action
{
play "mouse_click";
exec "exec default_filter.cfg";
}
onFocus
{
play "mouse_over";
if ( dvarstring( "gameMode" ) != "mp" )
{
setItemColor "mw2_popup_button" backcolor 0 0 0 0;
}
setItemColor self backcolor 0 0 0 1;
setLocalVarBool "ui_popupAButton" ( 1 );
}
leaveFocus
{
setItemColor self backcolor 1 1 1 0;
setLocalVarBool "ui_popupAButton" ( 0 );
}
}
}
}
+221
View File
@@ -0,0 +1,221 @@
/*
** hud_fullscreen.menu modified by banz
** - fixed > 200 tokens error
** - moved 'follow previous / next player' - text to the right side
**
**
** thx to aerosoul94 for dumping this (ps3 version)
** thx to NTA for full ui_mp dump
*/
#include "ui/menudef.h"
{
menuDef
{
name "hud_fullscreen"
rect 0 0 640 480 4 4
visible 1
forecolor 1 1 1 1
itemDef
{
rect 0 0 640 480 4 4
ownerdraw 112
visible 1
forecolor 1 1 1 1
background "splatter_alt"
type 8
textscale 0.55
visible when ( ! ( weaponname( ) == "heli_remote_mp" ) && ! ( ( weaponname( ) == "ac130_105mm_mp" ) || ( weaponname( ) == "ac130_40mm_mp" ) || ( weaponname( ) == "ac130_25mm_mp" ) ) && ( ( ! ( ( spectatingclient( ) ) && dvarbool( "cg_thirdPersonSpectator" ) ) ) || inkillcam( ) ) )
}
itemDef
{
rect 0 0 640 480 4 4
style 3
decoration
visible 1
forecolor 0.9 1 1 0.3
background "ac130_overlay_grain"
textscale 0.55
visible when ( scopedthermal( ) && ( ! ( ( spectatingclient( ) ) && dvarbool( "cg_thirdPersonSpectator" ) ) ) )
}
itemDef
{
rect 0 0 640 480 4 4
style 3
decoration
visible 1
forecolor 1 1 1 1
background "ballistic_overlay"
textscale 0.55
visible when ( ( getperk( "equipment" ) == "_specialty_blastshield" && ( ( ! ( dvarint( "scr_gameended" ) ) ) || inkillcam( ) ) ) && !( weaponname( ) == "heli_remote_mp" ) && ! ( ( weaponname( ) == "ac130_105mm_mp" ) || ( weaponname( ) == "ac130_40mm_mp" ) || ( weaponname( ) == "ac130_25mm_mp" ) ) && !missilecam( ) )
}
itemDef
{
rect 0 0 640 480 4 4
style 3
decoration
visible 1
forecolor 0.9 1 1 0.3
background "ac130_overlay_grain"
textscale 0.55
visible when ( isempjammed( ) )
}
itemDef
{
rect 0 -75 40 40 2 10
ownerdraw 80
visible 1
forecolor 1 1 1 0.65
type 8
textscale 0.375
textstyle 3
visible when (( !ui_active() && !dvarbool( "g_hardcore" ) && !spectatingclient() && !inkillcam() && !dvarint( "scr_gameended" ) && !flashbanged( ) && ( !( weaponname() == "killstreak_ac130_mp" || weaponname() == "killstreak_helicopter_minigun_mp" || weaponname() == "killstreak_predator_missile_mp" || weaponname() == "ac130_105mm_mp" || weaponname() == "ac130_40mm_mp" || weaponname( ) == "ac130_25mm_mp" || adsjavelin() || weaponname() == "heli_remote_mp" || missilecam() ))) && !( ( ( ( !ui_active() && !dvarbool( "g_hardcore" ) && !flashbanged() && !isempjammed() && !dvarint( "scr_gameended" ) ) && ( milliseconds() - localvarint( "ui_show_youKilled" ) < 2500 && ( !( milliseconds() - localvarint( "ui_show_killedBy" ) < 4000 ) )) ) && !dvarbool( "ui_hide_playercards" ) && ! ( milliseconds() - localvarint( "ui_show_killedBy" ) < 4000 ) ) || ( !ui_active() && ( milliseconds() - localvarint( "ui_show_killedBy" ) < 4000 ) && !dvarbool( "ui_hide_playercards" )))) //fixed > 200 tokens error here ~ banz
}
itemDef
{
rect 0 -125 40 40 2 10
ownerdraw 72
visible 1
forecolor 1 1 1 0.65
type 8
textscale 0.375
textstyle 3
visible when ( ( ( ! ( ui_active( ) ) ) && ( ! ( dvarbool( "g_hardcore" ) ) ) && ( ! ( spectatingclient( ) ) ) && ( ! ( inkillcam( ) ) ) && ( ! ( dvarint( "scr_gameended" ) ) ) && ( ! ( flashbanged( ) ) ) && ( ! ( ( weaponname( ) == "killstreak_ac130_mp" ) || ( weaponname( ) == "killstreak_helicopter_minigun_mp" ) || ( weaponname( ) == "killstreak_predator_missile_mp" ) || ( ( weaponname( ) == "ac130_105mm_mp" ) || ( weaponname( ) == "ac130_40mm_mp" ) || ( weaponname( ) == "ac130_25mm_mp" ) ) || ( adsjavelin( ) ) || ( weaponname( ) == "heli_remote_mp" ) || missilecam( ) ) ) ) )
}
itemDef
{
rect 0 -125 0 0 2 2
ownerdraw 113
decoration
visible 1
forecolor 1 1 1 1
type 8
textfont 1
textscale 0.375
textstyle 3
visible when ( ( ! ( ui_active( ) ) ) && ( ! ( spectatingclient( ) ) ) )
}
itemDef
{
name "talking"
rect 108 48 24 24 8 8
ownerdraw 266
decoration
visible 1
forecolor 1 1 1 0.85
type 8
textscale 0.55
exp rect y ( 6 + ( ( ( ( dvarstring( "ui_danger_team" ) == "contested" ) || ( dvarstring( "ui_danger_team" ) != "BombExploded" && ( team( "name" ) == "TEAM_ALLIES" && dvarstring( "ui_danger_team" ) == "axis" ) || ( team( "name" ) == "TEAM_AXIS" && dvarstring( "ui_danger_team" ) == "allies" ) ) || ( dvarstring( "ui_danger_team" ) != "BombExploded" && dvarstring( "ui_danger_team" ) == "none" ) || ( dvarstring( "ui_danger_team" ) != "BombExploded" && ( team( "name" ) == "TEAM_ALLIES" && dvarstring( "ui_danger_team" ) == "allies" ) || ( team( "name" ) == "TEAM_AXIS" && dvarstring( "ui_danger_team" ) == "axis" ) ) ) ) * 16 ) + ( ( dvarint( "ui_bomb_timer" ) ) * 26 ) )
visible when ( ( ( ! ( ui_active( ) ) ) && ( ! ( dvarbool( "g_hardcore" ) ) ) && ( ! ( inkillcam( ) ) ) && ( ! ( dvarint( "scr_gameended" ) ) ) ) )
}
itemDef
{
name "talker1"
rect 0 136 18 18 8 8
ownerdraw 193
decoration
visible 1
forecolor 1 1 1 1
type 8
textalignx 18
textaligny 17
textscale 0.375
textstyle 3
visible when ( ( ( ! ( ui_active( ) ) ) && ( ! ( dvarbool( "g_hardcore" ) ) ) && ( ! ( inkillcam( ) ) ) && ( ! ( dvarint( "scr_gameended" ) ) ) ) )
}
itemDef
{
name "talker2"
rect 0 154 18 18 8 8
ownerdraw 194
decoration
visible 1
forecolor 1 1 1 1
type 8
textalignx 18
textaligny 17
textscale 0.375
textstyle 3
visible when ( ( ( ! ( ui_active( ) ) ) && ( ! ( dvarbool( "g_hardcore" ) ) ) && ( ! ( inkillcam( ) ) ) && ( ! ( dvarint( "scr_gameended" ) ) ) ) )
}
itemDef
{
name "talker3"
rect 0 172 18 18 8 8
ownerdraw 195
decoration
visible 1
forecolor 1 1 1 1
type 8
textalignx 18
textaligny 17
textscale 0.375
textstyle 3
visible when ( ( ( ! ( ui_active( ) ) ) && ( ! ( dvarbool( "g_hardcore" ) ) ) && ( ! ( inkillcam( ) ) ) && ( ! ( dvarint( "scr_gameended" ) ) ) ) )
}
itemDef
{
name "talker4"
rect 0 190 18 18 8 8
ownerdraw 196
decoration
visible 1
forecolor 1 1 1 1
type 8
textalignx 18
textaligny 17
textscale 0.375
textstyle 3
visible when ( ( ( ! ( ui_active( ) ) ) && ( ! ( dvarbool( "g_hardcore" ) ) ) && ( ! ( inkillcam( ) ) ) && ( ! ( dvarint( "scr_gameended" ) ) ) ) )
}
itemDef
{
rect -100 20 200 0 2 1
visible 1
forecolor 1 1 1 0.65
textalign 9
textscale 0.375
textstyle 3
text "@CGAME_FOLLOWING"
visible when ( ( ! ( inkillcam( ) ) ) && ( spectatingclient( ) || spectatingfree( ) ) && ( ! ( ui_active( ) ) ) && ( ! ( dvarint( "scr_gameended" ) ) ) )
}
itemDef
{
rect -120 -35 180 5 HORIZONTAL_ALIGN_RIGHT VERTICAL_ALIGN_TOP //moved to the right side ~ banz
//rect -115 0 180 5 HORIZONTAL_ALIGN_RIGHT 8 //hmm setting vertical align relative too
ownerdraw 61 //follow previous / next player text
visible 1
forecolor 1 1 1 0.65
type 8
textalign 4
textscale 0.375
textstyle 3
visible when ( ( ! ( inkillcam( ) ) ) && ( spectatingclient( ) || spectatingfree( ) ) && ( ! ( ui_active( ) ) ) && ( ! ( dvarint( "scr_gameended" ) ) ) )
}
itemDef
{
rect 6 -60 10 10 8 10
visible 1
forecolor 1 1 1 0.45
type 19
textscale 0.375
textstyle 3
gamemsgwindowmode 1
visible when ( ( ! ( inkillcam( ) ) ) && ( ! ( ui_active( ) ) ) )
}
itemDef
{
rect 0 -60 10 10 9 9
visible 1
forecolor 1 1 1 1
type 19
textfont 1
textalign 1
textscale 0.375
textstyle 3
gamemsgwindowindex 1
gamemsgwindowmode 1
visible when ( ( ! ( inkillcam( ) ) ) && ( ! ( ui_active( ) ) ) )
}
}
}
+117
View File
@@ -0,0 +1,117 @@
#include "ui/menudef.h"
#include "ui_mp/main.inc"
#include "ui_mp/logo.inc"
#define HIDE_MOD
#undef LOGO_X
#define LOGO_X -256
#undef LOGO_Y
#define LOGO_Y -246
#undef LOGO_WIDTH
#define LOGO_WIDTH 512
#undef LOGO_HEIGHT
#define LOGO_HEIGHT 128
#undef LOGO_RECT
#define LOGO_RECT LOGO_X LOGO_Y LOGO_WIDTH LOGO_HEIGHT HORIZONTAL_ALIGN_CENTER VERTICAL_ALIGN_CENTER
#define MENU_NAME "iw4x_credits"
#define MENU_MUSIC "music_mainmenu_mp" // "af_chase_ending_credits"
#define MENU_TITLE "@MENU_SP_CREDITS_CAPS"
#undef CHOICE_GROUP
#define CHOICE_GROUP MENU_NAME
#define MENU_ITEM_CREDITS_BOX(titleArg, messageArg) \
itemDef \
{ \
name "box_background" \
rect 0 -130 600 320 HORIZONTAL_ALIGN_CENTER VERTICAL_ALIGN_CENTER \
decoration \
visible 1 \
style WINDOW_STYLE_SHADER \
foreColor 0.3 0.3 0.3 0.5 \
background "white" \
textScale 0.55 \
exp rect x (0 - 300) \
} \
itemDef \
{ \
name "welcome_box" \
rect 0 -130 600 320 HORIZONTAL_ALIGN_CENTER VERTICAL_ALIGN_CENTER \
decoration \
visible 1 \
style WINDOW_STYLE_FILLED \
foreColor CHOICE_TEXTCOLOR \
backColor 0 0 0 0.375 \
background "white" \
textFont 9 \
textAlign ITEM_ALIGN_TOP_CENTER \
textAlignY -5 \
textScale FONTSCALE_EXTRABIG \
text titleArg \
exp rect x (0 - 300) \
} \
itemDef \
{ \
rect 0 -90 500 280 HORIZONTAL_ALIGN_CENTER VERTICAL_ALIGN_CENTER \
autoWrapped \
decoration \
visible 1 \
style WINDOW_STYLE_FILLED \
foreColor CHOICE_TEXTCOLOR \
textfont 7 \
textalign ITEM_ALIGN_TOP_CENTER \
textScale CHOICE_TEXTSIZE \
exp rect x (0 - 250) \
text "DEVELOPED BY" \
} \
itemDef \
{ \
name "welcome_message" \
rect 0 -70 500 250 HORIZONTAL_ALIGN_CENTER VERTICAL_ALIGN_CENTER \
type 21 \
autoWrapped \
decoration \
visible 1 \
style WINDOW_STYLE_FILLED \
foreColor CHOICE_TEXTCOLOR \
textfont 7 \
textalign ITEM_ALIGN_TOP_CENTER \
textScale CHOICE_TEXTSIZE \
exp rect x (0 - 250) \
text messageArg \
}
#define ON_MENU_ESC \
close self;
#define MESSAGE_CREDITS "@IW4X_CREDITS"
menuDef
{
name MENU_NAME
fullscreen 1
rect 0 0 640 480
foreColor CHOICE_TEXTCOLOR
focusColor CHOICE_TEXTCOLOR
soundLoop MENU_MUSIC
fadeCycle 1
fadeClamp 1
fadeAmount 0.1
MENU_ON_ESC(ON_MENU_ESC)
#define DISABLE_SIDEBAR
#include "ui_mp/bg.inc"
LOGO_GAME
MENU_ITEM_CREDITS_BOX("IW4x", MESSAGE_CREDITS)
ITEM_BUTTON_BACK(close self;)
}
+599
View File
@@ -0,0 +1,599 @@
#define ITEM_MENU_TITLE_VIS(textArg, visArg) \
itemDef \
{ \
rect -50 -35 146 28 HORIZONTAL_ALIGN_LEFT VERTICAL_ALIGN_TOP \
foreColor CHOICE_TEXTCOLOR \
textFont 9 \
textScale 0.45 \
decoration \
textAlign ITEM_ALIGN_MIDDLE_LEFT \
text textArg \
textAlignX 5 \
visible visArg \
}
#define BUTTON_FOOTER(xPos, width, buttonName, textArg, actionArg) \
BUTTON_FOOTER_VIS(xPos, width, buttonName, textArg, actionArg, 1)
#define BUTTON_FOOTER_VIS(xPos, width, buttonName, textArg, actionArg, visArg) \
itemDef \
{ \
name buttonName \
rect xPos -10 width 20 HORIZONTAL_ALIGN_CENTER VERTICAL_ALIGN_BOTTOM \
foreColor CHOICE_TEXTCOLOR \
style WINDOW_STYLE_FILLED \
type ITEM_TYPE_BUTTON \
textAlign ITEM_ALIGN_MIDDLE_CENTER \
textScale MENU_BUTTON_TEXTSIZE \
textFont 9 \
text textArg \
visible visArg \
onFocus \
{ \
play CHOICE_FOCUS_SOUND; \
setItemColor self backColor 0 0 0 1; \
} \
leaveFocus \
{ \
setItemColor self backColor 0 0 0 0; \
} \
action \
{ \
play CHOICE_CLICK_SOUND; \
actionArg \
} \
}
itemDef
{
name "sourcefield"
rect 100 -33 144 18 HORIZONTAL_ALIGN_LEFT VERTICAL_ALIGN_TOP
style WINDOW_STYLE_FILLED
foreColor CHOICE_TEXTCOLOR
backColor 0.6 0.55 0.55 0.2
background "menu_setting_selection_bar"
textFont UI_FONT_SMALL
textAlignX 10
textAlignY 16
textScale 0.3
ownerDraw UI_NETSOURCE
visible 1
onFocus
{
play CHOICE_FOCUS_SOUND;
setItemColor self backColor 0 0 0 1;
}
leaveFocus
{
setItemColor self backColor 0.6 0.55 0.55 0.2;
}
action
{
play CHOICE_CLICK_SOUND;
}
}
itemDef
{
name "gametype"
rect 100 -15 144 18 HORIZONTAL_ALIGN_LEFT VERTICAL_ALIGN_TOP
style WINDOW_STYLE_FILLED
foreColor CHOICE_TEXTCOLOR
backColor 0.6 0.55 0.55 0.2
background "menu_setting_selection_bar"
textFont UI_FONT_SMALL
textAlignX 10
textAlignY 16
textScale 0.3
text "@MENU_GAME_TYPE"
ownerDraw UI_JOINGAMETYPE
visible 1
onFocus
{
play CHOICE_FOCUS_SOUND;
setItemColor self backColor 0 0 0 1;
}
leaveFocus
{
setItemColor self backColor 0.6 0.55 0.55 0.2;
}
action
{
play CHOICE_CLICK_SOUND;
}
}
itemDef
{
name "filterServers"
rect 100 3 144 18 HORIZONTAL_ALIGN_LEFT VERTICAL_ALIGN_TOP
style WINDOW_STYLE_FILLED
type ITEM_TYPE_BUTTON
foreColor CHOICE_TEXTCOLOR
backColor 0.6 0.55 0.55 0.2
background "menu_setting_selection_bar"
textFont UI_FONT_SMALL
textAlignX 10
textAlignY 16
textScale 0.3
text "@MENU_FILTER_SERVERS"
visible 1
onFocus
{
play CHOICE_FOCUS_SOUND;
setItemColor self backColor 0 0 0 1;
}
leaveFocus
{
setItemColor self backColor 0.6 0.55 0.55 0.2;
}
action
{
play CHOICE_CLICK_SOUND;
open "filter_popmenu";
}
}
itemDef
{
name "refreshSource"
rect 304 -33 144 18 HORIZONTAL_ALIGN_LEFT VERTICAL_ALIGN_TOP
style WINDOW_STYLE_FILLED
type ITEM_TYPE_BUTTON
foreColor CHOICE_TEXTCOLOR
backColor 0.6 0.55 0.55 0.2
background "menu_setting_selection_bar"
textFont UI_FONT_SMALL
textAlignX 10
textAlignY 16
textScale 0.3
text "@PLATFORM_REFRESH_LIST"
visible 1
onFocus
{
play CHOICE_FOCUS_SOUND;
setItemColor self backColor 0 0 0 1;
}
leaveFocus
{
setItemColor self backColor 0.6 0.55 0.55 0.2;
}
action
{
play CHOICE_CLICK_SOUND;
uiScript "RefreshServers";
}
}
itemDef
{
name "refreshFilter"
rect 304 -15 144 18 HORIZONTAL_ALIGN_LEFT VERTICAL_ALIGN_TOP
style WINDOW_STYLE_FILLED
type ITEM_TYPE_BUTTON
foreColor CHOICE_TEXTCOLOR
backColor 0.6 0.55 0.55 0.2
background "menu_setting_selection_bar"
textFont UI_FONT_SMALL
textAlignX 10
textAlignY 16
textScale 0.3
text "@MENU_QUICK_REFRESH"
visible 1
onFocus
{
play CHOICE_FOCUS_SOUND;
setItemColor self backColor 0 0 0 1;
}
leaveFocus
{
setItemColor self backColor 0.6 0.55 0.55 0.2;
}
action
{
play CHOICE_CLICK_SOUND;
uiScript "RefreshFilter";
}
}
itemDef
{
name "createFavorite2"
rect 304 3 144 18 HORIZONTAL_ALIGN_LEFT VERTICAL_ALIGN_TOP
style WINDOW_STYLE_FILLED
type ITEM_TYPE_BUTTON
foreColor CHOICE_TEXTCOLOR
backColor 0.6 0.55 0.55 0.2
disableColor 0.6 0.55 0.55 1
background "menu_setting_selection_bar"
textFont UI_FONT_SMALL
textAlignX 10
textAlignY 16
textScale 0.3
text "@MENU_NEW_FAVORITE"
disabled when(dvarInt(ui_netSource) != 2)
visible when(dvarInt("ui_netSource") != 1)
onFocus
{
play CHOICE_FOCUS_SOUND;
setItemColor self backColor 0 0 0 1;
}
leaveFocus
{
setItemColor self backColor 0.6 0.55 0.55 0.2;
}
action
{
play CHOICE_CLICK_SOUND;
open "createfavorite_popmenu";
}
}
itemDef
{
name "refreshDate"
rect -44 -13 100 18 HORIZONTAL_ALIGN_LEFT VERTICAL_ALIGN_TOP
foreColor CHOICE_TEXTCOLOR
textScale 0.25
textFont UI_FONT_SMALL
textAlign ITEM_ALIGN_MIDDLE_LEFT
decoration
visible 1
exp text("@MPUI_SERVERQUERIED")
}
#define TAB_BORDER_COLOR 0.1 0.1 0.12 0.5
#define PASSWORD_WIDTH 20
#define MATCHTYPE_WIDTH PASSWORD_WIDTH
#define SERVER_WIDTH 208
#define MAP_WIDTH 70
#define PLAYERS_WIDTH 50
#define TYPE_WIDTH 102
#define MOD_WIDTH 100
#define PING_WIDTH 40
#define TAB_LABEL_OFFSET \
textAlignX 2 \
textAlignY TAB_HEIGHT
#define TAB_HEIGHT 16
#define TABLE_POS_X 0
#define TABLE_POS_Y 42
#define PASSWORD_POS_X TABLE_POS_X
#define MATCHTYPE_POS_X (TABLE_POS_X + PASSWORD_WIDTH + 2)
#define SERVER_POS_X (MATCHTYPE_POS_X + MATCHTYPE_WIDTH + 2)
#define MAP_POS_X (SERVER_POS_X + SERVER_WIDTH + 2)
#define PLAYERS_POS_X (MAP_POS_X + MAP_WIDTH + 2)
#define TYPE_POS_X (PLAYERS_POS_X + PLAYERS_WIDTH + 2)
#define MOD_POS_X (TYPE_POS_X + TYPE_WIDTH + 2)
#define PING_POS_X (MOD_POS_X + MOD_WIDTH + 2)
#define TABLE_HEIGHT 338
#define TABLE_WIDTH (PING_POS_X + PING_WIDTH + 20)
#define MAPIMAGE_WIDTH 91
#define MAPIMAGE_HEIGHT 60
#define MAPIMAGE_FRAME_SIZE 1
#define MAPIMAGE_POS_X (MOD_POS_X + 4)
#define MAPIMAGE_POS_Y (TABLE_POS_Y - (TAB_HEIGHT * 2))
#define MAPIMAGE_RECT MAPIMAGE_POS_X MAPIMAGE_POS_Y MAPIMAGE_WIDTH MAPIMAGE_HEIGHT HORIZONTAL_ALIGN_SUBLEFT VERTICAL_ALIGN_SUBTOP
#define MAPIMAGE_FRAME_RECT (MAPIMAGE_POS_X - MAPIMAGE_FRAME_SIZE) (MAPIMAGE_POS_Y - MAPIMAGE_FRAME_SIZE) (MAPIMAGE_WIDTH + (MAPIMAGE_FRAME_SIZE * 2)) (MAPIMAGE_HEIGHT + (MAPIMAGE_FRAME_SIZE * 2))
itemDef
{
name "mapimageFrame"
rect MAPIMAGE_FRAME_RECT
style WINDOW_STYLE_FILLED
backColor 0 0 0 0.5
background "black"
decoration
visible when(dvarBool("ui_serverSelected") && dvarBool("wideScreen"))
}
itemDef
{
name "mapimage"
rect MAPIMAGE_RECT
style WINDOW_STYLE_SHADER
background "black"
decoration
visible when(dvarBool("ui_serverSelected") && dvarBool("wideScreen"))
exp material("preview_" + dvarString("ui_serverSelectedMap"))
}
itemDef
{
name "window"
rect TABLE_POS_X TABLE_POS_Y TABLE_WIDTH TABLE_HEIGHT HORIZONTAL_ALIGN_FULLSCREEN VERTICAL_ALIGN_TOP
style WINDOW_STYLE_FILLED
foreColor CHOICE_TEXTCOLOR
backColor 1 1 1 0.15
visible 1
decoration
}
#define PASSWORD_ORIGIN PASSWORD_POS_X (TABLE_POS_Y + 2)
#define MATCHTYPE_ORIGIN MATCHTYPE_POS_X (TABLE_POS_Y + 2)
#define SERVER_ORIGIN SERVER_POS_X (TABLE_POS_Y + 2)
#define MAP_ORIGIN MAP_POS_X (TABLE_POS_Y + 2)
#define PLAYERS_ORIGIN PLAYERS_POS_X (TABLE_POS_Y + 2)
#define TYPE_ORIGIN TYPE_POS_X (TABLE_POS_Y + 2)
#define MOD_ORIGIN MOD_POS_X (TABLE_POS_Y + 2)
#define PING_ORIGIN PING_POS_X (TABLE_POS_Y + 2)
#define PASSWORD_RECT PASSWORD_ORIGIN PASSWORD_WIDTH TABLE_HEIGHT HORIZONTAL_ALIGN_SUBLEFT VERTICAL_ALIGN_TOP
#define MATCHTYPE_RECT MATCHTYPE_ORIGIN MATCHTYPE_WIDTH TABLE_HEIGHT HORIZONTAL_ALIGN_SUBLEFT VERTICAL_ALIGN_TOP
#define SERVER_RECT SERVER_ORIGIN SERVER_WIDTH TABLE_HEIGHT HORIZONTAL_ALIGN_SUBLEFT VERTICAL_ALIGN_TOP
#define MAP_RECT MAP_ORIGIN MAP_WIDTH TABLE_HEIGHT HORIZONTAL_ALIGN_SUBLEFT VERTICAL_ALIGN_TOP
#define PLAYERS_RECT PLAYERS_ORIGIN PLAYERS_WIDTH TABLE_HEIGHT HORIZONTAL_ALIGN_SUBLEFT VERTICAL_ALIGN_TOP
#define TYPE_RECT TYPE_ORIGIN TYPE_WIDTH TABLE_HEIGHT HORIZONTAL_ALIGN_SUBLEFT VERTICAL_ALIGN_TOP
#define MOD_RECT MOD_ORIGIN MOD_WIDTH TABLE_HEIGHT HORIZONTAL_ALIGN_SUBLEFT VERTICAL_ALIGN_TOP
#define PING_RECT PING_ORIGIN PING_WIDTH TABLE_HEIGHT HORIZONTAL_ALIGN_SUBLEFT VERTICAL_ALIGN_TOP
MENU_BACKGROUND_FRAME_DROP_SHADOW(TABLE_POS_X, (TABLE_POS_Y - (TAB_HEIGHT * 2)), TABLE_WIDTH, 32, "drop_shadow_t")
MENU_BACKGROUND_FRAME_DROP_SHADOW(TABLE_POS_X, (TABLE_POS_Y + TABLE_HEIGHT), TABLE_WIDTH, 32, "drop_shadow_b")
#define PREPROC_COLUMN_SEPERATOR_LINE(pname, prect) \
PREPROC_COLUMN_SEPERATOR_LINE_RAW(pname, prect, 1 1 1 0.2)
#define PREPROC_COLUMN_SEPERATOR_LINE_RAW(pname, prect, pcolor) \
itemDef \
{ \
name pname \
group grpCoulmnSep \
rect prect 1 TABLE_HEIGHT HORIZONTAL_ALIGN_SUBLEFT VERTICAL_ALIGN_TOP \
origin -2 -2 \
style WINDOW_STYLE_FILLED \
backColor pcolor \
decoration \
visible 1 \
}
PREPROC_COLUMN_SEPERATOR_LINE("lineMatchtype", (MATCHTYPE_POS_X - 2) (TABLE_POS_Y + 2))
PREPROC_COLUMN_SEPERATOR_LINE("lineServer", (SERVER_POS_X - 2) (TABLE_POS_Y + 2))
PREPROC_COLUMN_SEPERATOR_LINE("lineMap", (MAP_POS_X - 2) (TABLE_POS_Y + 2))
PREPROC_COLUMN_SEPERATOR_LINE("linePlayers", (PLAYERS_POS_X - 2) (TABLE_POS_Y + 2))
PREPROC_COLUMN_SEPERATOR_LINE("lineType", (TYPE_POS_X - 2) (TABLE_POS_Y + 2))
PREPROC_COLUMN_SEPERATOR_LINE("lineMod", (MOD_POS_X - 2) (TABLE_POS_Y + 2))
PREPROC_COLUMN_SEPERATOR_LINE("linePing", (PING_POS_X - 2) (TABLE_POS_Y + 2))
// Server list text
itemDef
{
name "serverlist"
rect TABLE_POS_X (TABLE_POS_Y + TAB_HEIGHT) (TABLE_WIDTH - 8) (TABLE_HEIGHT - 17) HORIZONTAL_ALIGN_SUBLEFT VERTICAL_ALIGN_TOP
style WINDOW_STYLE_FILLED
foreColor CHOICE_TEXTCOLOR
outlineColor 0 0 0 0.6
type ITEM_TYPE_LISTBOX
textFont UI_FONT_NORMAL
textScale 0.25
visible 1
feeder FEEDER_SERVERS
elementWidth 120
elementHeight 16
// numcols xpos xwidth textlen alignment
columns 8 (PASSWORD_POS_X + 1) 16 20 1
(MATCHTYPE_POS_X - 2) 16 10 1
(SERVER_POS_X + 1) SERVER_WIDTH 38 0
(MAP_POS_X + 1) MAP_WIDTH 25 0
(PLAYERS_POS_X + 1) PLAYERS_WIDTH 10 0
(TYPE_POS_X + 1) TYPE_WIDTH 22 0
(MOD_POS_X + 1) MOD_WIDTH 20 0
(PING_POS_X + 1) PING_WIDTH 20 0
doubleClick
{
uiScript "JoinServer";
}
}
// Server list tabs
#undef TABLE_HEIGHT
#define TABLE_HEIGHT TAB_HEIGHT
itemDef
{
name "password"
group grpTabs
rect PASSWORD_RECT
type ITEM_TYPE_BUTTON
style WINDOW_STYLE_FILLED
foreColor 1 0.8 0.4 1
visible 1
action
{
play CHOICE_CLICK_SOUND;
uiScript "ServerSort" 0;
setItemColor grpTabs foreColor 1 0.8 0.4 1;
setItemColor passwordicon foreColor 1 1.0 0.5 1;
setItemColor matchtypeicon foreColor 1 1 1 1;
}
}
itemDef
{
name "passwordicon"
rect PASSWORD_ORIGIN 16 16 HORIZONTAL_ALIGN_SUBLEFT VERTICAL_ALIGN_TOP
origin 2 2
style WINDOW_STYLE_SHADER
background "hud_server_locked"
decoration
visible 1
}
itemDef
{
name "matchtype"
group grpTabs
rect MATCHTYPE_RECT
type ITEM_TYPE_BUTTON
style WINDOW_STYLE_FILLED
foreColor 1 0.8 0.4 1
visible 1
action
{
play CHOICE_CLICK_SOUND;
uiScript "ServerSort" 1;
setItemColor grpTabs foreColor 1 0.8 0.4 1;
setItemColor matchtypeicon foreColor 1 1.0 0.5 1;
setItemColor passwordicon foreColor 1 1 1 1;
}
}
itemDef
{
name "matchtypeicon"
rect MATCHTYPE_ORIGIN 16 16 HORIZONTAL_ALIGN_SUBLEFT VERTICAL_ALIGN_TOP
origin 0 2
style WINDOW_STYLE_SHADER
background "server_hardware_header"
decoration
visible 1
}
itemDef
{
name "server"
group grpTabs
rect SERVER_RECT
type ITEM_TYPE_BUTTON
style WINDOW_STYLE_FILLED
foreColor 1 0.8 0.4 1
textFont UI_FONT_NORMAL
textScale 0.25
text "@MENU_SERVER_NAME"
visible 1
TAB_LABEL_OFFSET
action
{
play CHOICE_CLICK_SOUND;
uiScript "ServerSort" 2;
setItemColor grpTabs foreColor 1 0.8 0.4 1;
setItemColor matchtypeicon foreColor 1 1 1 1;
setItemColor passwordicon foreColor 1 1 1 1;
setitemColor self foreColor 1 1.0 0.5 1;
}
}
itemDef
{
name "map"
group grpTabs
rect MAP_RECT
type ITEM_TYPE_BUTTON
style WINDOW_STYLE_FILLED
foreColor 1 0.8 0.4 1
textFont UI_FONT_NORMAL
textScale 0.25
text "@MENU_MAP_NAME"
visible 1
TAB_LABEL_OFFSET
action
{
play CHOICE_CLICK_SOUND;
uiScript "ServerSort" 3;
setItemColor grpTabs foreColor 1 0.8 0.4 1;
setItemColor matchtypeicon foreColor 1 1 1 1;
setItemColor passwordicon foreColor 1 1 1 1;
setitemColor self foreColor 1 1.0 0.5 1;
}
}
itemDef
{
name "players"
group grpTabs
rect PLAYERS_RECT
type ITEM_TYPE_BUTTON
style WINDOW_STYLE_FILLED
foreColor 1 0.8 0.4 1
textFont UI_FONT_NORMAL
textScale 0.25
text "@MENU_NUMPLAYERS"
visible 1
TAB_LABEL_OFFSET
action
{
play CHOICE_CLICK_SOUND;
uiScript "ServerSort" 4;
setItemColor grpTabs foreColor 1 0.8 0.4 1;
setItemColor matchtypeicon foreColor 1 1 1 1;
setItemColor passwordicon foreColor 1 1 1 1;
setitemColor self foreColor 1 1.0 0.5 1;
}
}
itemDef
{
name "type"
group grpTabs
rect TYPE_RECT
type ITEM_TYPE_BUTTON
style WINDOW_STYLE_FILLED
foreColor 1 0.8 0.4 1
textFont UI_FONT_NORMAL
textScale 0.25
text "@MENU_GAME_TYPE"
visible 1
TAB_LABEL_OFFSET
action
{
play CHOICE_CLICK_SOUND;
uiScript "ServerSort" 5;
setItemColor grpTabs foreColor 1 0.8 0.4 1;
setItemColor matchtypeicon foreColor 1 1 1 1;
setItemColor passwordicon foreColor 1 1 1 1;
setitemColor self foreColor 1 1.0 0.5 1;
}
}
itemDef
{
name "mod"
group grpTabs
rect MOD_RECT
type ITEM_TYPE_BUTTON
style WINDOW_STYLE_FILLED
foreColor 1 0.8 0.4 1
textFont UI_FONT_NORMAL
textScale 0.25
text "@MPUI_MOD"
visible 1
TAB_LABEL_OFFSET
action
{
play CHOICE_CLICK_SOUND;
uiScript "ServerSort" 6;
setItemColor grpTabs foreColor 1 0.8 0.4 1;
setItemColor matchtypeicon foreColor 1 1 1 1;
setItemColor passwordicon foreColor 1 1 1 1;
setitemColor self foreColor 1 1.0 0.5 1;
}
}
itemDef
{
name "ping"
group grpTabs
rect PING_RECT
type ITEM_TYPE_BUTTON
style WINDOW_STYLE_FILLED
foreColor 1 0.8 0.4 1
textFont UI_FONT_NORMAL
textScale 0.25
text "@MENU_PING"
visible 1
TAB_LABEL_OFFSET
action
{
play CHOICE_CLICK_SOUND;
uiScript "ServerSort" 7;
setItemColor grpTabs foreColor 1 0.8 0.4 1;
setItemColor matchtypeicon foreColor 1 1 1 1;
setItemColor passwordicon foreColor 1 1 1 1;
setitemColor self foreColor 1 1.0 0.5 1;
}
}
+332
View File
@@ -0,0 +1,332 @@
{
menuDef
{
name "leavelobbywarning"
rect -150 -64 300 64 2 2
popup
legacySplitScreenScale
style 1
forecolor 1 1 1 1
backcolor 1 1 1 1
background "white"
focuscolor 1 1 1 1
onOpen
{
setLocalVarInt "ui_centerPopup" ( 1 );
setfocus "cancel_button";
}
onClose
{
setLocalVarInt "ui_centerPopup" ( 0 );
}
onEsc
{
close self;
}
itemDef
{
rect -1004 -544 1708 960 2 2
decoration
visible 1
style 1
forecolor 1 1 1 1
backcolor 0 0 0 0.35
background "white"
textscale 0.55
}
itemDef
{
rect -1004 -544 1708 960 2 2
decoration
visible 1
style 1
forecolor 1 1 1 1
backcolor 1 1 1 1
background "xpbar_stencilbase"
textscale 0.55
}
itemDef
{
rect 0 0 300 64 2 2
decoration
visible 1
style 1
forecolor 1 1 1 1
backcolor 0.5 0.5 0.5 1
background "white"
textscale 0.55
}
itemDef
{
rect -150 -44 1708 480 2 2
decoration
visible 1
style 3
forecolor 1 1 1 0.75
background "mw2_popup_bg_fogstencil"
textscale 0.55
exp rect x ( 0 - ( ( float( milliseconds( ) % 60000 ) / 60000 ) * ( 854 ) ) )
}
itemDef
{
rect -150 -44 -1708 -480 2 2
decoration
visible 1
style 3
forecolor 0.85 0.85 0.85 1
background "mw2_popup_bg_fogscroll"
textscale 0.55
exp rect x ( 0 - ( ( float( milliseconds( ) % 60000 ) / 60000 ) * ( 854 ) ) )
}
itemDef
{
rect 0 0 300 0 2 2
decoration
visible 1
style 3
forecolor 1 1 1 1
background "mockup_popup_bg_stencilfill"
textscale 0.55
exp rect h ( ( 24 + 2 * 20 ) )
}
itemDef
{
rect -150 -44 -1708 -480 2 2
decoration
visible 1
style 3
forecolor 1 1 1 0.75
background "mw2_popup_bg_fogstencil"
textscale 0.55
exp rect x ( ( - 854 ) + ( ( float( milliseconds( ) % 50000 ) / 50000 ) * ( 854 ) ) )
}
itemDef
{
rect -150 -44 -1708 -480 2 2
decoration
visible 1
style 3
forecolor 0.85 0.85 0.85 1
background "mw2_popup_bg_fogscroll"
textscale 0.55
exp rect x ( ( - 854 ) + ( ( float( milliseconds( ) % 50000 ) / 50000 ) * ( 854 ) ) )
}
itemDef
{
rect -150 -44 300 0 1 1
decoration
visible 1
style 3
forecolor 1 1 1 0
background "small_box_lightfx"
textscale 0.55
exp rect h ( ( 24 + 2 * 20 ) )
}
itemDef
{
rect -64 -64 64 64 2 2
decoration
visible 1
style 3
forecolor 0 0 0 1
background "drop_shadow_tl"
textscale 0.55
visible when ( 1 )
}
itemDef
{
rect 0 -64 300 64 2 2
decoration
visible 1
style 3
forecolor 0 0 0 1
background "drop_shadow_t"
textscale 0.55
visible when ( 1 )
}
itemDef
{
rect 300 -64 64 64 2 2
decoration
visible 1
style 3
forecolor 0 0 0 1
background "drop_shadow_tr"
textscale 0.55
visible when ( 1 )
}
itemDef
{
rect 300 0 64 0 2 2
decoration
visible 1
style 3
forecolor 0 0 0 1
background "drop_shadow_r"
textscale 0.55
exp rect h ( ( 24 + 2 * 20 ) )
visible when ( 1 )
}
itemDef
{
rect 300 0 64 64 2 2
decoration
visible 1
style 3
forecolor 0 0 0 1
background "drop_shadow_br"
textscale 0.55
exp rect y ( ( 0 - 0 ) + ( ( 24 + 2 * 20 ) ) )
visible when ( 1 )
}
itemDef
{
rect 0 0 300 64 2 2
decoration
visible 1
style 3
forecolor 0 0 0 1
background "drop_shadow_b"
textscale 0.55
exp rect y ( ( 0 - 0 ) + ( ( 24 + 2 * 20 ) ) )
visible when ( 1 )
}
itemDef
{
rect -64 0 64 64 2 2
decoration
visible 1
style 3
forecolor 0 0 0 1
background "drop_shadow_bl"
textscale 0.55
exp rect y ( ( 0 - 0 ) + ( ( 24 + 2 * 20 ) ) )
visible when ( 1 )
}
itemDef
{
rect -64 0 64 0 2 2
decoration
visible 1
style 3
forecolor 0 0 0 1
background "drop_shadow_l"
textscale 0.55
exp rect h ( ( 24 + 2 * 20 ) )
visible when ( 1 )
}
itemDef
{
rect 0 0 300 24 2 2
decoration
visible 1
style 1
forecolor 1 1 1 1
background "gradient_fadein"
textfont 9
textalign 5
textscale 0.375
text "@XBOXLIVE_LEAVELOBBY"
visible when ( !inprivateparty( ) || privatepartyhost( ) || !privatepartyhostinlobby( ) )
}
itemDef
{
rect -150 -64 300 24 2 2
decoration
visible 1
style 1
forecolor 1 1 1 1
background "gradient_fadein"
textfont 9
textalign 5
textscale 0.375
text "@XBOXLIVE_LEAVEPARTYANDLOBBY"
visible when ( inprivateparty( ) && !privatepartyhost( ) && privatepartyhostinlobby( ) )
}
itemDef
{
name "yes_button"
rect 6 24 292 20 2 2
visible 1
group "mw2_popup_button"
style 1
forecolor 1 1 1 1
disablecolor 0.6 0.55 0.55 1
background "popup_button_selection_bar"
type 1
textfont 3
textalign 6
textalignx -24
textscale 0.375
text "@MENU_YES"
action
{
play "mouse_click";
exec "xstopparty";
if ( inprivateparty( ) && !privatepartyhost( ) && privatepartyhostinlobby( ) )
{
exec "xstopprivateparty";
exec "xstartprivateparty";
}
close "menu_xboxlive_lobby";
close "menu_xboxlive_privatelobby";
close "menu_xboxlive_teams";
exec "xblive_privatematch 0";
open "pc_join_unranked"
close self;
}
onFocus
{
play "mouse_over";
if ( dvarstring( "gameMode" ) != "mp" )
{
setItemColor "mw2_popup_button" backcolor 0 0 0 0;
}
setItemColor self backcolor 0 0 0 1;
setLocalVarBool "ui_popupAButton" ( 1 );
}
leaveFocus
{
setItemColor self backcolor 1 1 1 0;
setLocalVarBool "ui_popupAButton" ( 0 );
}
}
itemDef
{
name "cancel_button"
rect 6 44 292 20 2 2
visible 1
group "mw2_popup_button"
style 1
forecolor 1 1 1 1
disablecolor 0.6 0.55 0.55 1
background "popup_button_selection_bar"
type 1
textfont 3
textalign 6
textalignx -24
textscale 0.375
text "@MENU_NO"
action
{
play "mouse_click";
close self;
}
onFocus
{
play "mouse_over";
if ( dvarstring( "gameMode" ) != "mp" )
{
setItemColor "mw2_popup_button" backcolor 0 0 0 0;
}
setItemColor self backcolor 0 0 0 1;
setLocalVarBool "ui_popupAButton" ( 1 );
}
leaveFocus
{
setItemColor self backcolor 1 1 1 0;
setLocalVarBool "ui_popupAButton" ( 0 );
}
}
}
}
+154
View File
@@ -0,0 +1,154 @@
#define PC_OPTIONS_BUTTON_LEFT_CHOICE_Y(i) (28 + (i * 20))
#define PC_OPTIONS_BUTTON_LEFT_CHOICE_ORIGIN(i) -64 PC_OPTIONS_BUTTON_LEFT_CHOICE_Y(i)
#define PC_OPTIONS_BUTTON_LEFT_CHOICE_RECT(i) PC_OPTIONS_BUTTON_LEFT_CHOICE_ORIGIN(i) 336 20 HORIZONTAL_ALIGN_LEFT VERTICAL_ALIGN_TOP
#define PC_OPTIONS_BUTTON_LEFT_HR_ORIGIN(i) 0 (PC_OPTIONS_BUTTON_LEFT_CHOICE_Y(i) - 0.5)
#define PC_OPTIONS_BUTTON_LEFT_HR_RECT(i) PC_OPTIONS_BUTTON_LEFT_HR_ORIGIN(i) 216 1 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
#define PC_OPTIONS_OPTION_HR_ORIGIN(i) 226 (CHOICE_Y(i) - 0.5)
#define PC_OPTIONS_OPTION_HR_RECT(i) PC_OPTIONS_OPTION_HR_ORIGIN(i) -392 1 HORIZONTAL_ALIGN_LEFT VERTICAL_ALIGN_TOP
#define PC_OPTIONS_CLOSE \
close "controls_multi"; \
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 PC_OPTIONS_BUTTON_LEFT_ACTION(actionArg) \
PC_OPTIONS_CLOSE \
setLocalVarString ui_hint_text "@NULL_EMPTY"; \
actionArg
#define PC_OPTIONS_TITLE(textArg) \
PC_OPTIONS_TITLE_VIS(textArg, 1)
#define PC_OPTIONS_TITLE_VIS(textArg, visArg) \
itemDef \
{ \
rect 0 0 272 28 HORIZONTAL_ALIGN_LEFT VERTICAL_ALIGN_TOP \
foreColor CHOICE_TEXTCOLOR \
textFont 9 \
textAlign ITEM_ALIGN_TOP_RIGHT \
textAlignX -60 \
textScale 0.5 \
decoration \
text textArg \
visible visArg \
}
#define PC_OPTIONS_BUTTON(itemIndex, buttonName, textArg, actionArg) \
PC_OPTIONS_BUTTON_VIS(itemIndex, buttonName, textArg, actionArg, 1)
#define PC_OPTIONS_BUTTON_VIS(itemIndex, buttonName, textArg, actionArg, visArg) \
PC_OPTIONS_BUTTON_RAW(itemIndex, buttonName, textArg, actionArg, "@NULL_EMPTY", when(0), visArg)
#define PC_OPTIONS_BUTTON_DESC(itemIndex, buttonName, textArg, actionArg, descArg) \
PC_OPTIONS_BUTTON_DESC_VIS(itemIndex, buttonName, textArg, actionArg, descArg, 1)
#define PC_OPTIONS_BUTTON_DESC_VIS(itemIndex, buttonName, textArg, actionArg, descArg, visArg) \
PC_OPTIONS_BUTTON_RAW(itemIndex, buttonName, textArg, actionArg, descArg, when(0), visArg)
#define PC_OPTIONS_BUTTON_RAW(itemIndex, buttonName, textArg, actionArg, descArg, disArg, visArg) \
itemDef \
{ \
name buttonName \
group "mw2_button" \
rect PC_OPTIONS_BUTTON_LEFT_CHOICE_RECT(itemIndex) \
style WINDOW_STYLE_FILLED \
type ITEM_TYPE_BUTTON \
foreColor CHOICE_TEXTCOLOR \
disableColor 0.6 0.55 0.55 1 \
background "menu_button_selection_bar" \
textFont UI_FONT_SMALL \
textAlign ITEM_ALIGN_TOP_RIGHT \
textAlignX -60 \
textScale CHOICE_TEXTSIZE \
text textArg \
disabled disArg \
visible visArg \
mouseEnter \
{ \
play CHOICE_FOCUS_SOUND; \
} \
onFocus \
{ \
setItemColor self backColor 0 0 0 1; \
setLocalVarString ui_hint_text(descArg); \
setLocalVarFloat ui_popupYPos (getFocusedItemY()); \
} \
leaveFocus \
{ \
setItemColor self backColor 0 0 0 0; \
setLocalVarString ui_hint_text("@NULL_EMPTY"); \
} \
action \
{ \
play CHOICE_CLICK_SOUND; \
actionArg \
} \
}
PC_OPTIONS_TITLE("@MENU_OPTIONS_CAPS")
PC_OPTIONS_BUTTON(0, "buttonVideo", "@MENU_VIDEO", PC_OPTIONS_BUTTON_LEFT_ACTION(open "pc_options_video";))
PC_OPTIONS_BUTTON(1, "buttonAudio", "@MENU_AUDIO", PC_OPTIONS_BUTTON_LEFT_ACTION(open "pc_options_audio";))
PC_OPTIONS_BUTTON(2, "buttonControls", "@MENU_CONTROLS", PC_OPTIONS_BUTTON_LEFT_ACTION(open "pc_options_controls";))
PC_OPTIONS_BUTTON(3, "buttonMulti", "@MENU_MULTIPLAYER", PC_OPTIONS_BUTTON_LEFT_ACTION(open "pc_options_multi";))
PC_OPTIONS_BUTTON(4, "buttonGame", "@MENU_GAME", PC_OPTIONS_BUTTON_LEFT_ACTION(open "pc_options_game";))
MENU_CHOICE_HORIZONTAL_LINE(5)
PC_OPTIONS_BUTTON_RAW(5, "buttonDefaults", "@MENU_RESET_SYSTEM_DEFAULTS", open "options_graphics_defaults";, "@NULL_EMPTY", when (dvarBool("cl_ingame") || dvarBool("sv_running") || inlobby()), 1)
itemDef
{
name "graphic_warning"
rect 10 -160 206 240 HORIZONTAL_ALIGN_LEFT VERTICAL_ALIGN_BOTTOM
foreColor CHOICE_TEXTCOLOR
textScale CHOICE_TEXTSIZE
decoration
autoWrapped
text "@MENU_GRAPHICS_WARNING"
visible when(!localvarbool(ui_brightness_hint_display) && !localVarBool(ui_hint_display) && menuisopen("pc_options_video"))
}
itemDef
{
name "brightness_hint"
rect 10 -160 206 240 HORIZONTAL_ALIGN_LEFT VERTICAL_ALIGN_BOTTOM
foreColor 1 0.8 0.4 1
textScale CHOICE_TEXTSIZE
decoration
autoWrapped
text "@MENU_BRIGHTNESS_HINT_PC"
visible when(localvarbool(ui_brightness_hint_display) && !localVarBool(ui_hint_display))
}
itemDef
{
name "hint_area"
rect 10 -160 206 240 HORIZONTAL_ALIGN_LEFT VERTICAL_ALIGN_BOTTOM
foreColor CHOICE_TEXTCOLOR
textScale CHOICE_TEXTSIZE
decoration
autoWrapped
visible when(localVarBool(ui_hint_display))
exp text(localVarString(ui_hint_text))
}
ITEM_BUTTON_BACK(ON_MENU_ESC)
File diff suppressed because it is too large. Load diff
+36
View File
@@ -0,0 +1,36 @@
#ifndef LOGO_IMAGE
#define LOGO_IMAGE "logo_cod2"
#endif
#ifndef LOGO_X
#define LOGO_X 304
#endif
#ifndef LOGO_Y
#define LOGO_Y 215
#endif
#ifndef LOGO_WIDTH
#define LOGO_WIDTH 288
#endif
#ifndef LOGO_HEIGHT
#define LOGO_HEIGHT 72
#endif
#ifndef LOGO_RECT
#define LOGO_RECT LOGO_X LOGO_Y LOGO_WIDTH LOGO_HEIGHT HORIZONTAL_ALIGN_SUBLEFT VERTICAL_ALIGN_SUBTOP
#endif
#define LOGO_GAME \
itemDef \
{ \
rect LOGO_RECT \
style WINDOW_STYLE_SHADER \
foreColor CHOICE_TEXTCOLOR \
background LOGO_IMAGE \
decoration \
textScale 0.55 \
visible 1 \
exp forecolor a ( ( ( sin ( milliseconds( ) / 1000 ) + 1 ) * 0.250000 ) + 0.500000 ) \
}
+474
View File
@@ -0,0 +1,474 @@
#undef TEXTSIZE_DEFAULT
#define TEXTSIZE_DEFAULT FONTSCALE_SMALL
#undef TEXTSIZE_TITLE
#define TEXTSIZE_TITLE 0.5
#define WIDESCREEN dvarBool("wideScreen")
#ifndef CHOICE_GROUP
#define CHOICE_GROUP ""
#endif
#ifndef CHOICE_HEADERCOLOR
#define CHOICE_HEADERCOLOR 1 1 1 0.75
#endif
#ifndef CHOICE_TEXTCOLOR
#define CHOICE_TEXTCOLOR 1 1 1 1
#endif
#ifndef CHOICE_TEXTCOLOR_CAPT
#define CHOICE_TEXTCOLOR_CAPT CHOICE_TEXTCOLOR
#endif
#ifndef CHOICE_TEXTCOLOR_DISABLED
#define CHOICE_TEXTCOLOR_DISABLED 1 1 1 0.5
#endif
#ifndef CHOICE_TEXTSTYLE
#define CHOICE_TEXTSTYLE 0
#endif
#ifndef CHOICE_TEXTSIZE
#define CHOICE_TEXTSIZE TEXTSIZE_DEFAULT
#endif
#ifndef CHOICE_TEXTFONT
#define CHOICE_TEXTFONT UI_FONT_NORMAL
#endif
#ifndef CHOICE_TITLEFONT
#define CHOICE_TITLEFONT UI_FONT_NORMAL
#endif
#ifndef CHOICE_FOCUS_SOUND
#define CHOICE_FOCUS_SOUND "mouse_over"
#endif
#ifndef CHOICE_CLICK_SOUND
#define CHOICE_CLICK_SOUND "mouse_click"
#endif
#ifndef CHOICE_SEP_BACKGROUND
#define CHOICE_SEP_BACKGROUND "gradient_fadein"
#endif
#ifndef HIGHLIGHT_SHADER_ART
#define HIGHLIGHT_SHADER_ART "menu_button_selection_bar"
#endif
#ifndef NEWSTICKER_BACKGROUND
#define NEWSTICKER_BACKGROUND "shadow_inset"
#endif
#ifndef NEWSTICKER_SPEED
#define NEWSTICKER_SPEED 20
#endif
#ifndef MENU_BUTTON_TEXTSIZE
#define MENU_BUTTON_TEXTSIZE (TEXTSIZE_DEFAULT - 0.1)
#endif
#ifndef MENU_BUTTON_TEXTCOLOR
#define MENU_BUTTON_TEXTCOLOR CHOICE_TEXTCOLOR
#endif
#ifndef MENU_BUTTON_TEXTCOLOR_DISABLED
#define MENU_BUTTON_TEXTCOLOR_DISABLED 0.6 0.55 0.55 1
#endif
#define ITEM_NEWSTICKER_VIS(textArg, visArg, speedArg) \
itemDef \
{ \
name "ticker_bg" \
style WINDOW_STYLE_FILLED \
rect -107 -30 900 16 HORIZONTAL_ALIGN_LEFT VERTICAL_ALIGN_TOP \
backColor 0 0 0 0.2 \
decoration \
visible visArg \
} \
itemDef \
{ \
name "ticker2" \
type ITEM_TYPE_NEWSTICKER \
style WINDOW_STYLE_FILLED \
rect -107 -30 900 16 HORIZONTAL_ALIGN_LEFT VERTICAL_ALIGN_TOP \
foreColor CHOICE_TEXTCOLOR \
backColor 0 0 0 0.3 \
textFont UI_FONT_SMALL \
textScale .26 \
textAlignY 16.5 \
text textArg \
background NEWSTICKER_BACKGROUND \
speed speedArg \
decoration \
visible visArg \
}
#define ITEM_BUTTON_BACK(actionArg) \
ITEM_BUTTON_BACK_VIS(actionArg, 1)
#define ITEM_BUTTON_BACK_VIS(actionArg, visArg) \
itemDef \
{ \
name "back" \
style WINDOW_STYLE_FILLED \
rect -64 -4 336 20 HORIZONTAL_ALIGN_LEFT VERTICAL_ALIGN_BOTTOM \
group "mw2_button" \
foreColor CHOICE_TEXTCOLOR \
disableColor MENU_BUTTON_TEXTCOLOR_DISABLED \
background HIGHLIGHT_SHADER_ART \
type ITEM_TYPE_BUTTON \
textFont UI_FONT_SMALL \
textAlign ITEM_ALIGN_TOP_RIGHT \
textAlignX -60 \
textScale CHOICE_TEXTSIZE \
text "@PLATFORM_BACK_CAPS" \
visible visArg \
mouseEnter \
{ \
play CHOICE_FOCUS_SOUND; \
} \
onFocus \
{ \
setItemColor self backColor 0 0 0 1; \
} \
leaveFocus \
{ \
setItemColor self backColor 0 0 0 0; \
} \
action \
{ \
play CHOICE_CLICK_SOUND; \
actionArg \
} \
}
#define ITEM_BUTTON_FRIENDS(posX) \
MENU_EXEC_KEY("f", open "popup_friends";) \
itemDef \
{ \
name "button_friends" \
rect (posX) -4 120 20 HORIZONTAL_ALIGN_RIGHT VERTICAL_ALIGN_BOTTOM \
foreColor CHOICE_TEXTCOLOR \
disablecolor MENU_BUTTON_TEXTCOLOR_DISABLED \
style WINDOW_STYLE_FILLED \
type ITEM_TYPE_BUTTON \
textAlign ITEM_ALIGN_CENTER \
textAlignY 16 \
textScale MENU_BUTTON_TEXTSIZE \
textFont 9 \
text "@PLATFORM_FRIENDS_CAPS" \
visible 1 \
mouseEnter \
{ \
play CHOICE_FOCUS_SOUND; \
} \
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"; \
} \
action \
{ \
play CHOICE_CLICK_SOUND; \
open "popup_friends"; \
} \
}
#define MENU_ON_OPEN(onOpenArg) \
onOpen \
{ \
onOpenArg \
}
#define MENU_ON_ESC(onESCArg) \
onESC \
{ \
onESCArg \
}
#define MENU_ON_CLOSE(onCloseArg) \
onClose \
{ \
onCloseArg \
}
#define MENU_EXEC_KEY(keyArg, execArg) \
execKey keyArg\
{ \
play CHOICE_CLICK_SOUND; \
execArg \
}
#define MENU_EXEC_KEYINT(keyIntArg, execArg) \
execKeyInt keyIntArg \
{ \
play CHOICE_CLICK_SOUND; \
execArg \
}
#define MENU_BACKGROUND_FRAME_DROP_SHADOW(posX, posY, width, height, imageArg) \
itemDef \
{ \
rect posX posY width height HORIZONTAL_ALIGN_FULLSCREEN VERTICAL_ALIGN_TOP \
style WINDOW_STYLE_SHADER \
foreColor 0 0 0 1 \
background imageArg \
textScale 0.55 \
decoration \
visible 1 \
}
#define MENU_BACKGROUND_FRAME \
itemDef \
{ \
rect 0 28 640 356 4 1 \
style WINDOW_STYLE_SHADER \
foreColor 1 1 1 0.15 \
background "white" \
decoration \
textScale 0.55 \
visible 1 \
} \
MENU_BACKGROUND_FRAME_DROP_SHADOW(-32, -4, 32, 32, "drop_shadow_tl") \
MENU_BACKGROUND_FRAME_DROP_SHADOW(0, -4, 640, 32, "drop_shadow_t") \
MENU_BACKGROUND_FRAME_DROP_SHADOW(640, -4, 32, 32, "drop_shadow_tr") \
MENU_BACKGROUND_FRAME_DROP_SHADOW(640, 28, 32, 356, "drop_shadow_r") \
MENU_BACKGROUND_FRAME_DROP_SHADOW(640, 384, 32, 32, "drop_shadow_br") \
MENU_BACKGROUND_FRAME_DROP_SHADOW(0, 384, 640, 32, "drop_shadow_b") \
MENU_BACKGROUND_FRAME_DROP_SHADOW(-32, 384, 32, 32, "drop_shadow_bl") \
MENU_BACKGROUND_FRAME_DROP_SHADOW(-32, 28, 32, 356, "drop_shadow_l")
#define MENU_BACKGROUND_PANEL_RIGHT_WIDTH 292
#define MENU_BACKGROUND_PANEL_RIGHT_HEIGHT 356
#define MENU_BACKGROUND_PANEL_RIGHT \
itemDef \
{ \
rect (0 - MENU_BACKGROUND_PANEL_RIGHT_WIDTH) 28 MENU_BACKGROUND_PANEL_RIGHT_WIDTH MENU_BACKGROUND_PANEL_RIGHT_HEIGHT HORIZONTAL_ALIGN_RIGHT VERTICAL_ALIGN_TOP \
style WINDOW_STYLE_SHADER \
foreColor 0 0 0 0.7 \
background "black" \
decoration \
textScale 0.55 \
visible 1 \
} \
itemDef \
{ \
name "image" \
rect (0 - (MENU_BACKGROUND_PANEL_RIGHT_WIDTH - 10)) 50 (MENU_BACKGROUND_PANEL_RIGHT_WIDTH - 20) 127 HORIZONTAL_ALIGN_RIGHT VERTICAL_ALIGN_TOP \
style WINDOW_STYLE_SHADER \
foreColor 1 1 1 1 \
decoration \
textScale 0.55 \
visible when(localvarstring( "ui_info_icon") != "") \
exp material ( localvarstring( "ui_info_icon" ) ) \
} \
itemDef \
{ \
name "longname" \
rect (0 - (MENU_BACKGROUND_PANEL_RIGHT_WIDTH - 10)) 28 (MENU_BACKGROUND_PANEL_RIGHT_WIDTH - 20) 22 HORIZONTAL_ALIGN_RIGHT VERTICAL_ALIGN_TOP \
foreColor CHOICE_TEXTCOLOR \
decoration \
textAlign ITEM_ALIGN_TOP_LEFT \
textScale CHOICE_TEXTSIZE \
textFont 9 \
visible 1 \
exp text ( "@" + localvarstring( "ui_info_name" ) ) \
} \
itemDef \
{ \
name "description" \
rect (0 - (MENU_BACKGROUND_PANEL_RIGHT_WIDTH - 10)) 180 (MENU_BACKGROUND_PANEL_RIGHT_WIDTH - 20) 20 HORIZONTAL_ALIGN_RIGHT VERTICAL_ALIGN_TOP \
foreColor 1 1 1 0.65 \
decoration \
autoWrapped \
textAlign ITEM_ALIGN_TOP_LEFT \
textScale CHOICE_TEXTSIZE \
textFont UI_FONT_SMALL \
visible 1 \
exp text ( "@" + localvarstring( "ui_info_desc" ) ) \
}
#define MENU_ITEM_TITLE(posX) \
itemDef \
{ \
rect 0 4 272 28 HORIZONTAL_ALIGN_LEFT VERTICAL_ALIGN_TOP \
foreColor CHOICE_TEXTCOLOR \
decoration \
textAlign ITEM_ALIGN_TOP_RIGHT \
textAlignX -60 \
textScale 0.5 \
textFont 9 \
text MENU_TITLE \
visible 1 \
exp rect x (posX) \
}
#define MENU_CHOICE_TITLE(textArg, posY) \
MENU_CHOICE_TITLE_VIS(textArg, posY, 1)
#define MENU_CHOICE_TITLE_VIS(textArg, posY, visArg) \
MENU_CHOICE_TITLE_RAW(textArg, posY, TEXTSIZE_TITLE, visArg)
#define MENU_CHOICE_TITLE_RAW(textArg, posY, textSize, visArg) \
itemDef \
{ \
rect 0 posY 272 28 HORIZONTAL_ALIGN_LEFT VERTICAL_ALIGN_TOP \
foreColor CHOICE_TEXTCOLOR \
textAlign ITEM_ALIGN_TOP_RIGHT \
textAlignX -59 \
textScale textSize \
textFont 9 \
decoration \
autowrapped \
exp text (textArg) \
visible visArg \
}
#define MENU_CHOICE_NEWICON_VIS(itemIndex, visArg) \
MENU_CHOICE_NEWICON_RAW(itemIndex, "specialty_new", visArg)
#define MENU_CHOICE_NEWICON_RAW(itemIndex, imageArg, visArg) \
itemDef \
{ \
style WINDOW_STYLE_SHADER \
rect 236 CHOICE_Y(itemIndex) 40 20 HORIZONTAL_ALIGN_LEFT VERTICAL_ALIGN_TOP \
exp material(imageArg) \
align ITEM_ALIGN_RIGHT \
visible visArg \
decoration \
}
#define MENU_CHOICE_BUTTON(itemIndex, buttonName, textArg, actionArg, descArg) \
MENU_CHOICE_BUTTON_VIS(itemIndex, buttonName, textArg, actionArg, descArg, 1)
#define MENU_CHOICE_BUTTON_VIS(itemIndex, buttonName, textArg, actionArg, descArg, visArg) \
MENU_CHOICE_BUTTON_ADVANCED_VIS(itemIndex, buttonName, textArg, actionArg, ;, ;, descArg, visArg)
#define MENU_CHOICE_BUTTON_ADVANCED(itemIndex, buttonName, textArg, actionArg, icon, namex, descArg) \
MENU_CHOICE_BUTTON_ADVANCED_VIS(itemIndex, buttonName, textArg, actionArg, icon, namex, descArg, 1)
#define MENU_CHOICE_BUTTON_ADVANCED_VIS(itemIndex, buttonName, textArg, actionArg, icon, namex, descArg, visArg) \
MENU_CHOICE_BUTTON_ADVANCED_RAW(itemIndex, buttonName, CHOICE_TEXTCOLOR, textArg, actionArg, icon, namex, descArg, visArg)
#define MENU_CHOICE_BUTTON_ADVANCED_RAW(itemIndex, buttonName, forecolorArg, textArg, actionArg, icon, namex, descArg, visArg) \
itemDef \
{ \
name buttonName \
rect CHOICE_RECT(itemIndex) \
forecolor forecolorArg \
style WINDOW_STYLE_FILLED \
background HIGHLIGHT_SHADER_ART \
group "mw2_button" \
type ITEM_TYPE_BUTTON \
textAlign ITEM_ALIGN_TOP_RIGHT \
textAlignX -60 \
textScale CHOICE_TEXTSIZE \
textFont CHOICE_TEXTFONT \
text textArg \
visible visArg \
mouseEnter \
{ \
play CHOICE_FOCUS_SOUND; \
} \
onFocus \
{ \
setItemColor self backColor 0 0 0 1; \
setLocalVarBool ui_menuAButton 1; \
setLocalVarFloat ui_popupYPos 0; \
setLocalVarString ui_hint_text descArg; \
setLocalVarString ui_info_name namex; \
setLocalVarString ui_info_desc descArg; \
setLocalVarString ui_info_icon icon; \
} \
leaveFocus \
{ \
setItemColor self backColor 0 0 0 0; \
setLocalVarBool ui_menuAButton 1; \
setLocalVarString ui_hint_text "@NULL_EMPTY"; \
} \
action \
{ \
play CHOICE_CLICK_SOUND; \
actionArg \
} \
}
#define MENU_CHOICE_DBUTTON_VIS(itemIndex, buttonName, textArg, descArg, visArg) \
itemDef \
{ \
name buttonName \
rect CHOICE_RECT(itemIndex) \
forecolor CHOICE_TEXTCOLOR_DISABLED \
style WINDOW_STYLE_FILLED \
background HIGHLIGHT_SHADER_ART \
group "mw2_button" \
type ITEM_TYPE_BUTTON \
textAlign ITEM_ALIGN_TOP_RIGHT \
textAlignX -60 \
textScale CHOICE_TEXTSIZE \
textFont CHOICE_TEXTFONT \
text textArg \
visible visArg \
mouseEnter \
{ \
play CHOICE_FOCUS_SOUND; \
} \
onFocus \
{ \
setItemColor self backColor 0 0 0 1; \
setLocalVarBool ui_menuAButton 1; \
setLocalVarFloat ui_popupYPos 0; \
setLocalVarString ui_hint_text descArg; \
} \
leaveFocus \
{ \
setItemColor self backColor 0 0 0 0; \
setLocalVarBool ui_menuAButton 1; \
setLocalVarString ui_hint_text "@NULL_EMPTY"; \
} \
}
#define MENU_CHOICE_HORIZONTAL_LINE(itemIndex) \
MENU_CHOICE_HORIZONTAL_LINE_VIS(itemIndex, 1)
#define MENU_CHOICE_HORIZONTAL_LINE_VIS(itemIndex, visArg) \
itemDef \
{ \
rect HR_RECT(itemIndex) \
style WINDOW_STYLE_SHADER \
foreColor 1 1 1 0.65 \
background CHOICE_SEP_BACKGROUND \
decoration \
type ITEM_TYPE_TEXT \
textScale 0.55 \
textFont UI_FONT_DEFAULT \
visible visArg \
}
#define MENU_PARTY_STATUS_STRING \
itemDef \
{ \
rect -272 0 0 18 HORIZONTAL_ALIGN_RIGHT VERTICAL_ALIGN_TOP \
style WINDOW_STYLE_FILLED \
foreColor 1 1 1 0.65 \
background "white" \
textFont UI_FONT_SMALL \
textAlign ITEM_ALIGN_TOP_LEFT \
textAlignX 20 \
textScale CHOICE_TEXTSIZE \
dvar "party_statusString" \
visible when (inLobby()) \
}
+157
View File
@@ -0,0 +1,157 @@
#include "ui/menudef.h"
#include "ui_mp/main.inc"
#include "ui_mp/logo.inc"
#define MENU_NAME "main_text"
#define MENU_MUSIC "music_mainmenu_mp"
#define MENU_TITLE "IW4x"
#undef CHOICE_GROUP
#define CHOICE_GROUP MENU_NAME
#undef TEXTSIZE_TITLE
#define TEXTSIZE_TITLE FONTSCALE_BIG
#define ON_MENU_OPEN \
exec "selectStringTableEntryInDvar mp/didyouknow.csv 0 didyouknow"; \
uiScript "checkFirstLaunch"; \
setLocalVarString ui_hint_text "";
#define CHECK_FOR_UPDATE_ACTION \
exec "checkforupdate"; \
open "auconfirm";
#define CREATE_GAME_ACTION \
exec "xrequirelivesignin"; \
setDvar "systemlink" 0; \
setDvar "splitscreen" 0; \
setDvar "onlinegame" 1; \
exec "exec default_xboxlive.cfg"; \
setDvar "party_maxplayers" 18; \
setDvar "xblive_privateserver" 0; \
setDvar "xblive_rankedmatch" 0; \
exec "xstartprivateparty"; \
setDvar "ui_mptype" 0; \
exec "xcheckezpatch"; \
exec "exec default_xboxlive.cfg" \
setDvar "xblive_rankedmatch" 0; \
exec "ui_enumeratesaved"; \
setDvar "xblive_privateserver" 1; \
exec "xstartprivatematch"; \
open "menu_xboxlive_privatelobby";
#define CHOICE_Y(i) (88 + (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
{
menuDef
{
name MENU_NAME
fullscreen 1
rect 0 0 640 480
foreColor CHOICE_TEXTCOLOR
focusColor CHOICE_TEXTCOLOR
soundLoop MENU_MUSIC
fadeCycle 1
fadeClamp 1
fadeAmount 0.1
MENU_ON_OPEN(ON_MENU_OPEN)
MENU_ON_ESC(open "quit_popmenu";)
#define BACKGROUND_IW4
#include "ui_mp/bg.inc"
LOGO_GAME
ITEM_NEWSTICKER_VIS("", 1, NEWSTICKER_SPEED)
MENU_CHOICE_TITLE_VIS(MENU_TITLE, 78, when(!dvarBool(cl_updateavailable)))
MENU_CHOICE_TITLE_VIS(MENU_TITLE, 58, when(dvarBool(cl_updateavailable)))
// update buttons
MENU_CHOICE_BUTTON_VIS(0, button_0, "@MENU_CHECK_FOR_UPDATES_CAPS", CHECK_FOR_UPDATE_ACTION, "@MPUI_DESC_CHECK_FOR_UPDATES", when(dvarBool(cl_updateavailable)))
MENU_CHOICE_NEWICON_VIS(0, when(dvarBool(cl_updateavailable)))
MENU_CHOICE_HORIZONTAL_LINE_VIS(1, when(dvarBool(cl_updateavailable)))
// general menu buttons
MENU_CHOICE_BUTTON_VIS(1, button_1, "@MENU_JOIN_GAME_CAPS", exec "xrequirelivesignin"; open pc_join_unranked;, "@MPUI_DESC_JOIN_GAME", 1)
MENU_CHOICE_BUTTON_VIS(2, button_2, "@MENU_CREATE_GAME_CAPS", CREATE_GAME_ACTION, "@MPUI_DESC_CREATE_GAME", 1)
MENU_CHOICE_HORIZONTAL_LINE_VIS(3, 1)
MENU_CHOICE_DBUTTON_VIS(3, button_3, "@MENU_CREATE_A_CLASS_CAPS", "@PERKS_UNLOCKED_BY_CHALLENGE", when(!isItemUnlocked("cac")))
MENU_CHOICE_BUTTON_VIS(3, button_3, "@MENU_CREATE_A_CLASS_CAPS", open cac_popup;, "@MPUI_DESC_CREATE_A_CLASS", when(isItemUnlocked("cac")))
MENU_CHOICE_NEWICON_VIS(3, when( ( isItemUnlocked("cac") && ( getPlayerDataAnyBoolTrue( "weaponNew" ) || getPlayerDataAnyBoolTrue( "camoNew" ) || getPlayerDataAnyBoolTrue( "attachmentNew" ) ) || getPlayerDataAnyBoolTrue( "perkNew" ) || ( ( getPlayerData( "perkNew" , "frag_grenade_mp" ) || getPlayerData( "perkNew" , tablelookup( "mp/perkTable.csv" , 1 , "frag_grenade_mp" , 8 ) ) ) || ( getPlayerData( "perkNew" , "semtex_mp" ) || getPlayerData( "perkNew" , tablelookup( "mp/perkTable.csv" , 1 , "semtex_mp" , 8 ) ) ) || ( getPlayerData( "perkNew" , "c4_mp" ) || getPlayerData( "perkNew" , tablelookup( "mp/perkTable.csv" , 1 , "c4_mp" , 8 ) ) ) || ( getPlayerData( "perkNew" , "claymore_mp" ) || getPlayerData( "perkNew" , tablelookup( "mp/perkTable.csv" , 1 , "claymore_mp" , 8 ) ) ) || ( getPlayerData( "perkNew" , "throwingknife_mp" ) || getPlayerData( "perkNew" , tablelookup( "mp/perkTable.csv" , 1 , "throwingknife_mp" , 8 ) ) ) || ( getPlayerData( "perkNew" , "specialty_tacticalinsertion" ) || getPlayerData( "perkNew" , tablelookup( "mp/perkTable.csv" , 1 , "specialty_tacticalinsertion" , 8 ) ) ) || ( getPlayerData( "perkNew" , "specialty_blastshield" ) || getPlayerData( "perkNew" , tablelookup( "mp/perkTable.csv" , 1 , "specialty_blastshield" , 8 ) ) ) || weaponClassNew( "weapon_grenade" ) || weaponClassNew( "weapon_equipment" ) ) || getPlayerData( "featureNew" , "cac" ) ) ) )
MENU_CHOICE_DBUTTON_VIS(4, button_4, "@MENU_PLAYERCARD_CAPS", "@PERKS_UNLOCKED_BY_CHALLENGE", when(!isItemUnlocked("cac")))
MENU_CHOICE_BUTTON_VIS(4, button_4, "@MENU_PLAYERCARD_CAPS", open popup_callsign;, "@MPUI_DESC_PLAYERCARD", when(isItemUnlocked("cac")))
MENU_CHOICE_NEWICON_VIS(4, when( ( getPlayerData( "featureNew" , "cas" ) || getPlayerData( "featureNew" , "token_1" ) || getPlayerData( "featureNew" , "token_2" ) || getPlayerData( "featureNew" , "token_3" ) || getPlayerData( "featureNew" , "token_4" ) || getPlayerData( "featureNew" , "token_5" ) || getPlayerData( "featureNew" , "token_6" ) || getPlayerData( "featureNew" , "token_7" ) || getPlayerData( "featureNew" , "token_8" ) || getPlayerData( "featureNew" , "token_9" ) || getPlayerData( "featureNew" , "token_10" ) || getPlayerData( "featureNew" , "token_11" ) || getPlayerData( "featureNew" , "token_12" ) ) || getPlayerData( "featureNew" , "clantag" ) || ( getPlayerDataAnyBoolTrue( "iconNew" ) || getPlayerData( "featureNew" , "playercard_icon" ) ) || ( getPlayerDataAnyBoolTrue( "titleNew" ) || getPlayerData( "featureNew" , "playercard_title" ) ) ))
MENU_CHOICE_HORIZONTAL_LINE_VIS(5, 1)
MENU_CHOICE_BUTTON_VIS(5, button_5, "@MENU_BARRACKS_CAPS", open menu_online_barracks;, "@PATCH_DESC_BARRACKS", 1)
MENU_CHOICE_NEWICON_VIS(5, when( ( ( getPlayerDataAnyBoolTrue( "challengeTierNew" ) || getPlayerData( "featureNew" , "challenges" ) ) || getPlayerData( "featureNew" , "challenges" ) || getPlayerData( "featureNew" , "prestige" ) ) ) )
MENU_CHOICE_BUTTON_VIS(6, button_6, "@MENU_THEATER_CAPS", open pc_theater_menu;, "@MPUI_DESC_THEATER", 1)
MENU_CHOICE_HORIZONTAL_LINE_VIS(7, 1)
MENU_CHOICE_BUTTON_VIS(7, button_7, "@MENU_MODS_CAPS", open mods_menu;, "@MPUI_DESC_MODS", 1)
MENU_CHOICE_BUTTON_VIS(8, button_8, "@MENU_STORE_CAPS", open pc_store, "@MPUI_DESC_STORE", 1)
MENU_CHOICE_NEWICON_VIS(8, when(!dvarBool(isDlcInstalled_All)))
MENU_CHOICE_HORIZONTAL_LINE_VIS(8, 1)
MENU_CHOICE_BUTTON_VIS(9, button_9, "@MENU_OPTIONS_CAPS", open pc_options_video;, "@MPUI_DESC_OPTIONS", 1)
MENU_CHOICE_HORIZONTAL_LINE_VIS(9, 1)
MENU_CHOICE_BUTTON_VIS(10, button_10, "@MENU_SP_CREDITS_CAPS", open iw4x_credits;, "@NULL_EMPTY", 1)
MENU_CHOICE_HORIZONTAL_LINE_VIS(10, 1)
MENU_CHOICE_BUTTON_VIS(11, button_11, "@MENU_QUIT_CAPS", open quit_popmenu;, "@MPUI_DESC_QUIT", 1)
ITEM_BUTTON_FRIENDS(-250)
itemDef
{
name "button_changelog"
rect -120 -4 120 20 HORIZONTAL_ALIGN_RIGHT VERTICAL_ALIGN_BOTTOM
foreColor CHOICE_TEXTCOLOR
style WINDOW_STYLE_FILLED
type ITEM_TYPE_BUTTON
textAlign ITEM_ALIGN_CENTER
textAlignY 16
textScale MENU_BUTTON_TEXTSIZE
textfont 9
visible 1
text "@MENU_CHANGELOG_CAPS"
onFocus
{
play CHOICE_FOCUS_SOUND;
setItemColor self backcolor 0 0 0 1;
setLocalVarBool ui_menuAButton 1;
setLocalVarFloat ui_popupYPos 0;
setLocalVarString ui_hint_text "@MPUI_DESC_CHANGELOG";
}
leaveFocus
{
setItemColor self backcolor 0 0 0 0;
setLocalVarBool ui_menuAButton 1;
setLocalVarString ui_hint_text "@NULL_EMPTY";
}
action
{
play CHOICE_CLICK_SOUND;
open "changelog";
}
}
// hint text
itemDef
{
name "hint_area"
rect 0 340 215 18 HORIZONTAL_ALIGN_LEFT VERTICAL_ALIGN_TOP
foreColor 1 1 1 0.65
textAlign 6
textScale CHOICE_TEXTSIZE
textFont UI_FONT_SMALL
decoration
autoWrapped
visible 1
exp text ( localvarstring( "ui_hint_text" ) )
}
}
}
+144
View File
@@ -0,0 +1,144 @@
#include "ui/menudef.h"
#include "ui_mp/main.inc"
#include "ui_mp/logo.inc"
#define HIDE_MOD
#undef LOGO_X
#define LOGO_X -256
#undef LOGO_Y
#define LOGO_Y -220
#undef LOGO_WIDTH
#define LOGO_WIDTH 512
#undef LOGO_HEIGHT
#define LOGO_HEIGHT 128
#undef LOGO_RECT
#define LOGO_RECT LOGO_X LOGO_Y LOGO_WIDTH LOGO_HEIGHT HORIZONTAL_ALIGN_CENTER VERTICAL_ALIGN_CENTER
#define MENU_NAME "menu_first_launch"
#define MENU_MUSIC "music_opening"
#define WELCOME_TITLE "Welcome to IW4x"
#define WELCOME_MESSAGE "Thank you for participating in the IW4x Beta!\n\nThis mod is in Beta, and will be so for some time. This means you will experience bugs, unfinished features, problematic design decision, and many more things that disrupt your game experience. We will be working with the community to fix these, to help us please visit ^2xlabs.dev ^7for development information.\n\nAbove all, please remember this mod is not finished, and is a work in progress."
#define MENU_ITEM_WELCOME_BOX(titleArg, messageArg) \
itemDef \
{ \
name "box_background" \
rect 0 -100 600 220 HORIZONTAL_ALIGN_CENTER VERTICAL_ALIGN_CENTER \
decoration \
visible 1 \
style WINDOW_STYLE_SHADER \
foreColor 0.3 0.3 0.3 0.5 \
background "white" \
textScale 0.55 \
exp rect x (0 - 300) \
} \
itemDef \
{ \
name "welcome_box" \
rect 0 -100 600 220 HORIZONTAL_ALIGN_CENTER VERTICAL_ALIGN_CENTER \
decoration \
visible 1 \
style WINDOW_STYLE_FILLED \
foreColor CHOICE_TEXTCOLOR \
backColor 0 0 0 0.375 \
background "white" \
textFont 9 \
textAlign ITEM_ALIGN_TOP_CENTER \
textAlignY 5 \
textScale 0.45 \
text titleArg \
exp rect x (0 - 300) \
} \
itemDef \
{ \
name "welcome_message" \
rect 0 -60 500 180 HORIZONTAL_ALIGN_CENTER VERTICAL_ALIGN_CENTER \
autoWrapped \
decoration \
visible 1 \
style WINDOW_STYLE_FILLED \
foreColor CHOICE_TEXTCOLOR \
textfont 7 \
textalign ITEM_ALIGN_TOP_CENTER \
textScale CHOICE_TEXTSIZE \
exp rect x (0 - 250) \
text messageArg \
}
#define MENU_ITEM_BUTTON(xPos, yPos, width, buttonName, textArg, actionArg) \
MENU_ITEM_BUTTON_VIS(xPos, yPos, width, buttonName, textArg, actionArg, 1)
#define MENU_ITEM_BUTTON_VIS(xPos, yPos, width, buttonName, textArg, actionArg, visArg) \
itemDef \
{ \
name buttonName \
rect xPos yPos width 20 HORIZONTAL_ALIGN_CENTER VERTICAL_ALIGN_TOP \
style WINDOW_STYLE_FILLED \
foreColor CHOICE_TEXTCOLOR \
disableColor 0.55 0.55 0.55 1 \
background "white" \
type ITEM_TYPE_BUTTON \
textFont 9 \
textAlign ITEM_ALIGN_MIDDLE_CENTER \
textScale CHOICE_TEXTSIZE \
text textArg \
visible visArg \
onFocus \
{ \
play CHOICE_FOCUS_SOUND; \
setItemColor self backColor 0 0 0 1; \
} \
leaveFocus \
{ \
setItemColor self backColor 0 0 0 0; \
} \
action \
{ \
play CHOICE_CLICK_SOUND; \
actionArg \
} \
}
#define ON_MENU_ESC \
open "quit_popmenu";
#define ACTION_ACCEPT \
setDvar "g_firstLaunch" 0; \
open "popup_playername"; \
close self;
{
menuDef
{
name MENU_NAME
fullscreen 1
rect 0 0 640 480
foreColor CHOICE_TEXTCOLOR
focusColor CHOICE_TEXTCOLOR
soundLoop MENU_MUSIC
fadeCycle 1
fadeClamp 1
fadeAmount 0.1
MENU_ON_ESC(ON_MENU_ESC)
#define DISABLE_SIDEBAR
#define BACKGROUND_SP
#include "ui_mp/bg.inc"
LOGO_GAME
MENU_ITEM_WELCOME_BOX(WELCOME_TITLE, WELCOME_MESSAGE)
MENU_ITEM_BUTTON(-300, 326, 106.667, "website", "WEBSITE", uiScript "visitWebsite";)
MENU_ITEM_BUTTON(-70, 326, 146.667, "ok", "I UNDERSTAND", ACTION_ACCEPT)
MENU_ITEM_BUTTON(193.3333, 326, 106.667, "wiki", "WIKI", uiScript "visitWiki";)
MENU_ITEM_BUTTON(-70, 400, 146.667, "quit", "@MENU_QUIT_CAPS", ON_MENU_ESC)
}
}
@@ -0,0 +1,220 @@
#include "ui/menudef.h"
#include "ui_mp/main.inc"
#include "ui_mp/barracks.inc"
#undef TEXTSIZE_TITLE
#define TEXTSIZE_TITLE FONTSCALE_BIG
#define MENU_NAME "menu_online_barracks"
#define MENU_MUSIC "music_mainmenu_mp"
#define MENU_TITLE "@MPUI_BARRACKS_CAP"
#undef CHOICE_GROUP
#define CHOICE_GROUP MENU_NAME
#define CHOICE_Y(i) ((PLAYERCARD_POS_Y + 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
#define ON_MENU_OPEN \
focusFirst;
#define ON_MENU_ESC \
close self;
#define BUTTON_BASE(itemIndex, nameArg, textArg, disabledArg) \
name nameArg \
rect CHOICE_RECT(itemIndex) \
group "mw2_button" \
style WINDOW_STYLE_FILLED \
foreColor CHOICE_TEXTCOLOR \
disableColor MENU_BUTTON_TEXTCOLOR_DISABLED \
background HIGHLIGHT_SHADER_ART \
type ITEM_TYPE_BUTTON \
textFont CHOICE_TEXTFONT \
textAlign ITEM_ALIGN_TOP_RIGHT \
textAlignX -60 \
textScale CHOICE_TEXTSIZE \
disabled when (disabledArg) \
text textArg \
visible 1 \
BUTTON_LEAVE_FOCUS \
#define BUTTON_ACTION(actionArg) \
action \
{ \
play CHOICE_CLICK_SOUND; \
actionArg \
}
#define BUTTON_LEAVE_FOCUS \
leaveFocus \
{ \
setItemColor self backColor 0 0 0 0; \
setLocalVarString "ui_hint_text" ("@NULL_EMPTY"); \
setLocalVarBool "ui_menuAButton" (0); \
}
#define HINT_AREA \
itemDef \
{ \
rect 0 320 215 18 HORIZONTAL_ALIGN_LEFT VERTICAL_ALIGN_TOP \
decoration \
autowrapped \
visible 1 \
foreColor 1 1 1 0.65 \
textFont UI_FONT_SMALL \
textAlign ITEM_ALIGN_TOP_RIGHT \
textAlignX -1 \
textScale CHOICE_TEXTSIZE \
exp text (localvarstring("ui_hint_text")) \
}
menuDef
{
name MENU_NAME
fullscreen 1
rect 0 0 640 480
foreColor CHOICE_TEXTCOLOR
focusColor CHOICE_TEXTCOLOR
soundLoop MENU_MUSIC
fadeCycle 1
fadeClamp 1
fadeAmount 0.1
MENU_ON_OPEN(ON_MENU_OPEN)
MENU_ON_ESC(ON_MENU_ESC)
#define BACKGROUND_IW4
#include "ui_mp/bg.inc"
ITEM_NEWSTICKER_VIS("", 1, NEWSTICKER_SPEED)
MENU_CHOICE_TITLE(MENU_TITLE, PLAYERCARD_POS_Y)
MENU_PARTY_STATUS_STRING
HINT_AREA
itemDef
{
BUTTON_BASE(0, "button_0", "@MPUI_CHALLENGES_CAPS", !isItemUnlocked("challenges"))
BUTTON_ACTION(setPlayerData("featureNew", "challenges", "false"); open "menu_challenges";)
onFocus
{
play CHOICE_FOCUS_SOUND;
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;";
}
}
}
MENU_CHOICE_NEWICON_VIS(0, 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")))
itemDef
{
BUTTON_BASE(1, "button_1", "@MPUI_HIGHLIGHTS_CAPS", 0)
BUTTON_ACTION(open "menu_records";)
onFocus
{
play CHOICE_FOCUS_SOUND;
setItemColor self backColor 0 0 0 1;
setLocalVarString "ui_hint_text" ("@MPUI_DESC_HIGHLIGHTS");
}
}
MENU_CHOICE_HORIZONTAL_LINE(2)
itemDef
{
BUTTON_BASE(2, "button_2", "@MENU_CUSTOM_TITLE_CAPS", 0)
BUTTON_ACTION(open "popup_customtitle";)
onFocus
{
play CHOICE_FOCUS_SOUND;
setItemColor self backColor 0 0 0 1;
setLocalVarString "ui_hint_text" ("@MPUI_DESC_CUSTOM_TITLE");
}
}
MENU_CHOICE_HORIZONTAL_LINE(3)
itemDef
{
BUTTON_BASE(3, "button_3", "@MPUI_RESET_STATS_CAPS", 0)
BUTTON_ACTION(open "stats_reset";)
onFocus
{
play CHOICE_FOCUS_SOUND;
setItemColor self backColor 0 0 0 1;
setLocalVarString "ui_hint_text" ("@MPUI_DESC_RESET_STATS");
}
}
itemDef
{
BUTTON_BASE(4, "button_4", "@MPUI_UNLOCK_STATS_CAPS", 0)
BUTTON_ACTION(open "stats_unlock";)
onFocus
{
play CHOICE_FOCUS_SOUND;
setItemColor self backColor 0 0 0 1;
setLocalVarString "ui_hint_text" ("@MPUI_DESC_UNLOCK_STATS");
}
}
MENU_CHOICE_HORIZONTAL_LINE_VIS(5, when ((getplayerdata("prestige") == int(tablelookup("mp/rankIconTable.csv", 0, "maxprestige", 1))) == 0))
itemDef
{
BUTTON_BASE(5, "button_5", "@MPUI_PRESTIGE_MODE_CAPS", !(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))))
visible when (!(getplayerdata("prestige") == int(tablelookup("mp/rankIconTable.csv", 0, "maxprestige", 1))))
BUTTON_ACTION(open "prestige_reset1";)
onFocus
{
play CHOICE_FOCUS_SOUND;
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" );
}
}
}
MENU_CHOICE_NEWICON_VIS(5, 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")))
MENU_ITEM_PLAYERCARD
MENU_ITEM_PLAYERSTATS
ITEM_BUTTON_FRIENDS(-120)
ITEM_BUTTON_BACK(close self;)
}
+263
View File
@@ -0,0 +1,263 @@
#include "ui/menudef.h"
#include "ui_mp/main.inc"
#define K_DPAD_LEFT 22
#define K_DPAD_RIGHT 23
#define K_APAD_LEFT 30
#define K_APAD_RIGHT 31
#define K_F1 167
#define MENU_NAME "menu_xboxlive_lobby"
#define MENU_MUSIC "music_mainmenu_mp"
#define MENU_TITLE dvarString("playlist_name")
#undef CHOICE_GROUP
#define CHOICE_GROUP MENU_NAME
#define CHOICE_Y(i) (30 + (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
#define MENU_PANEL_MAP_PREVIEW_WIDTH 216
#define MENU_PANEL_MAP_PREVIEW_HEIGHT 122
#define MENU_PANEL_MAP_PREVIEW \
itemDef \
{ \
name "preview_image" \
rect 0 -159 MENU_PANEL_MAP_PREVIEW_WIDTH MENU_PANEL_MAP_PREVIEW_HEIGHT HORIZONTAL_ALIGN_LEFT VERTICAL_ALIGN_BOTTOM \
style WINDOW_STYLE_SHADER \
foreColor CHOICE_TEXTCOLOR \
textScale CHOICE_TEXTSIZE \
decoration \
visible 1 \
exp material("preview_" + dvarString("ui_mapname")) \
} \
itemDef \
{ \
name "preview_mapname" \
rect 0 -159 MENU_PANEL_MAP_PREVIEW_WIDTH (MENU_PANEL_MAP_PREVIEW_HEIGHT - 103) HORIZONTAL_ALIGN_LEFT VERTICAL_ALIGN_BOTTOM \
style WINDOW_STYLE_FILLED \
backColor 0 0 0 0.5 \
foreColor CHOICE_TEXTCOLOR \
textFont UI_FONT_SMALL \
textScale CHOICE_TEXTSIZE \
textAlign 6 \
textAlignX -4 \
textAlignY -1 \
decoration \
autoWrapped \
visible 1 \
exp text(dvarString("party_mapname")) \
} \
itemDef \
{ \
name "vetostatus" \
rect 0 -140 MENU_PANEL_MAP_PREVIEW_WIDTH (MENU_PANEL_MAP_PREVIEW_HEIGHT - 103) HORIZONTAL_ALIGN_LEFT VERTICAL_ALIGN_BOTTOM \
style WINDOW_STYLE_FILLED \
backColor 1 0 0 0.25 \
background "white" \
foreColor CHOICE_TEXTCOLOR \
textFont UI_FONT_SMALL \
textScale CHOICE_TEXTSIZE \
textAlign 6 \
textAlignX -4 \
decoration \
autoWrapped \
visible when(dvarString("party_vetoStatus") != "") \
exp text(dvarString("party_vetoStatus")) \
} \
itemDef \
{ \
name "preview_gametype" \
rect 0 -56 MENU_PANEL_MAP_PREVIEW_WIDTH (MENU_PANEL_MAP_PREVIEW_HEIGHT - 103) HORIZONTAL_ALIGN_LEFT VERTICAL_ALIGN_BOTTOM \
style WINDOW_STYLE_FILLED \
backColor 0 0 0 0.5 \
foreColor CHOICE_TEXTCOLOR \
textFont UI_FONT_SMALL \
textScale CHOICE_TEXTSIZE \
textAlign 6 \
textAlignX -4 \
decoration \
autoWrapped \
visible 1 \
exp text(dvarString("party_gametype")) \
}
#define ITEM_BUTTON_SUMMARY_VIS(visArg) \
itemDef \
{ \
name "button_summary" \
style WINDOW_STYLE_FILLED \
rect -64 -24 336 20 HORIZONTAL_ALIGN_LEFT VERTICAL_ALIGN_BOTTOM \
group "mw2_button" \
foreColor CHOICE_TEXTCOLOR \
disableColor MENU_BUTTON_TEXTCOLOR_DISABLED \
background HIGHLIGHT_SHADER_ART \
type ITEM_TYPE_BUTTON \
textFont UI_FONT_SMALL \
textAlign ITEM_ALIGN_TOP_RIGHT \
textAlignX -60 \
textScale CHOICE_TEXTSIZE \
text "@PLATFORM_GAME_SUMMARY_CAPS" \
visible visArg \
mouseEnter \
{ \
play CHOICE_FOCUS_SOUND; \
} \
onFocus \
{ \
setItemColor self backColor 0 0 0 1; \
} \
leaveFocus \
{ \
setItemColor self backColor 0 0 0 0; \
} \
action \
{ \
play CHOICE_CLICK_SOUND; \
open "popup_summary"; \
} \
}
#define ON_MENU_OPEN \
if (dvarBool("ui_opensummary")) \
{ \
setLocalVarInt ui_autoopened (1); \
open "popup_summary"; \
setDvar "ui_opensummary" 0; \
} \
focusFirst; \
exec "selectStringTableEntryInDvar mp/didyouknow.csv 0 didyouknow";
#define ON_MENU_ESC \
open "leavelobbywarning";
#define ON_MENU_KEY_K_DPAD_LEFT \
if (getfocuseditemname() == "lobbyList") \
{ \
focusfirst; \
}
#define ON_MENU_KEY_K_APAD_LEFT \
ON_MENU_KEY_K_DPAD_LEFT
#define ON_MENU_KEY_K_APAD_RIGHT \
setFocus "lobbyList"; \
setLocalVarString "ui_hint_text" ("@MPUI_DESC_PLAYER_OPTIONS");
#define ON_MENU_KEY_K_DPAD_RIGHT \
ON_MENU_KEY_K_APAD_RIGHT
#define ON_MENU_KEY_K_F1 \
open "popup_summary"; \
play CHOICE_CLICK_SOUND;
menuDef
{
name MENU_NAME
fullscreen 1
rect 0 0 640 480
foreColor CHOICE_TEXTCOLOR
focusColor CHOICE_TEXTCOLOR
soundLoop MENU_MUSIC
fadeCycle 1
fadeClamp 1
fadeAmount 0.1
MENU_ON_OPEN(ON_MENU_OPEN)
MENU_ON_ESC(ON_MENU_ESC)
MENU_EXEC_KEYINT(K_APAD_LEFT, ON_MENU_KEY_K_APAD_LEFT)
MENU_EXEC_KEYINT(K_APAD_RIGHT, ON_MENU_KEY_K_APAD_RIGHT)
MENU_EXEC_KEYINT(K_DPAD_LEFT, ON_MENU_KEY_K_DPAD_LEFT)
MENU_EXEC_KEYINT(K_DPAD_RIGHT, ON_MENU_KEY_K_DPAD_RIGHT)
MENU_EXEC_KEYINT(K_F1, ON_MENU_KEY_K_F1)
#define BACKGROUND_IW4
#include "ui_mp/bg.inc"
#include "ui_mp/lobby.inc"
ITEM_NEWSTICKER_VIS("", 1, NEWSTICKER_SPEED)
MENU_CHOICE_TITLE_RAW(MENU_TITLE, 0, 0.4, 1)
MENU_CHOICE_HORIZONTAL_LINE(1)
MENU_CHOICE_DBUTTON_VIS(1, button_1, "@MENU_CREATE_A_CLASS_CAPS", "@PERKS_UNLOCKED_BY_CHALLENGE", when(!isItemUnlocked("cac")))
MENU_CHOICE_BUTTON_VIS(1, button_1, "@MENU_CREATE_A_CLASS_CAPS", open "cac_popup";, "@MPUI_DESC_CREATE_A_CLASS", when(isItemUnlocked("cac")))
MENU_CHOICE_NEWICON_VIS(1, when( ( isItemUnlocked("cac") && ( getPlayerDataAnyBoolTrue( "weaponNew" ) || getPlayerDataAnyBoolTrue( "camoNew" ) || getPlayerDataAnyBoolTrue( "attachmentNew" ) ) || getPlayerDataAnyBoolTrue( "perkNew" ) || ( ( getPlayerData( "perkNew" , "frag_grenade_mp" ) || getPlayerData( "perkNew" , tablelookup( "mp/perkTable.csv" , 1 , "frag_grenade_mp" , 8 ) ) ) || ( getPlayerData( "perkNew" , "semtex_mp" ) || getPlayerData( "perkNew" , tablelookup( "mp/perkTable.csv" , 1 , "semtex_mp" , 8 ) ) ) || ( getPlayerData( "perkNew" , "c4_mp" ) || getPlayerData( "perkNew" , tablelookup( "mp/perkTable.csv" , 1 , "c4_mp" , 8 ) ) ) || ( getPlayerData( "perkNew" , "claymore_mp" ) || getPlayerData( "perkNew" , tablelookup( "mp/perkTable.csv" , 1 , "claymore_mp" , 8 ) ) ) || ( getPlayerData( "perkNew" , "throwingknife_mp" ) || getPlayerData( "perkNew" , tablelookup( "mp/perkTable.csv" , 1 , "throwingknife_mp" , 8 ) ) ) || ( getPlayerData( "perkNew" , "specialty_tacticalinsertion" ) || getPlayerData( "perkNew" , tablelookup( "mp/perkTable.csv" , 1 , "specialty_tacticalinsertion" , 8 ) ) ) || ( getPlayerData( "perkNew" , "specialty_blastshield" ) || getPlayerData( "perkNew" , tablelookup( "mp/perkTable.csv" , 1 , "specialty_blastshield" , 8 ) ) ) || weaponClassNew( "weapon_grenade" ) || weaponClassNew( "weapon_equipment" ) ) || getPlayerData( "featureNew" , "cac" ) ) ) )
MENU_CHOICE_DBUTTON_VIS(2, button_2, "@MENU_PLAYERCARD_CAPS", "@PERKS_UNLOCKED_BY_CHALLENGE", when(!isItemUnlocked("cac")))
MENU_CHOICE_BUTTON_VIS(2, button_2, "@MENU_PLAYERCARD_CAPS", open "popup_callsign";, "@MPUI_DESC_PLAYERCARD", when(isItemUnlocked("cac")))
MENU_CHOICE_NEWICON_VIS(2, when( ( getPlayerData( "featureNew" , "cas" ) || getPlayerData( "featureNew" , "token_1" ) || getPlayerData( "featureNew" , "token_2" ) || getPlayerData( "featureNew" , "token_3" ) || getPlayerData( "featureNew" , "token_4" ) || getPlayerData( "featureNew" , "token_5" ) || getPlayerData( "featureNew" , "token_6" ) || getPlayerData( "featureNew" , "token_7" ) || getPlayerData( "featureNew" , "token_8" ) || getPlayerData( "featureNew" , "token_9" ) || getPlayerData( "featureNew" , "token_10" ) || getPlayerData( "featureNew" , "token_11" ) || getPlayerData( "featureNew" , "token_12" ) ) || getPlayerData( "featureNew" , "clantag" ) || ( getPlayerDataAnyBoolTrue( "iconNew" ) || getPlayerData( "featureNew" , "playercard_icon" ) ) || ( getPlayerDataAnyBoolTrue( "titleNew" ) || getPlayerData( "featureNew" , "playercard_title" ) ) ))
MENU_CHOICE_BUTTON_VIS(3, button_3, "@MENU_BARRACKS_CAPS", open "menu_online_barracks";, "@PATCH_DESC_BARRACKS", 1)
MENU_CHOICE_NEWICON_VIS(3, when( ( ( getPlayerDataAnyBoolTrue( "challengeTierNew" ) || getPlayerData( "featureNew" , "challenges" ) ) || getPlayerData( "featureNew" , "challenges" ) || getPlayerData( "featureNew" , "prestige" ) ) ) )
MENU_CHOICE_BUTTON_VIS(4, button_4, "@MENU_FRIENDS_CAPS", open "popup_friends";, "@MPUI_DESC_FRIENDS", 1)
MENU_CHOICE_HORIZONTAL_LINE(4)
itemDef
{
name "button_5"
rect CHOICE_RECT(5)
foreColor CHOICE_TEXTCOLOR
disableColor 0.6 0.55 0.55 1
style WINDOW_STYLE_FILLED
background HIGHLIGHT_SHADER_ART
group "mw2_button"
type ITEM_TYPE_BUTTON
textAlign ITEM_ALIGN_TOP_RIGHT
textAlignX -60
textScale CHOICE_TEXTSIZE
textFont CHOICE_TEXTFONT
text "@MENU_VOTE_TO_SKIP_CAPS"
disabled when(!dvarbool("party_vetoButtonVisible"))
visible 1
execKeyInt 29
{
focusfirst;
}
execKeyInt 21
{
focusfirst;
}
mouseEnter
{
play CHOICE_FOCUS_SOUND;
}
onFocus
{
setItemColor self backColor 0 0 0 1;
setLocalVarBool ui_menuAButton (1);
setLocalVarFloat ui_popupYPos (getfocuseditemy());
if (dvarBool("party_vetoButtonVisible"))
{
setLocalVarString ui_hint_text ("@MPUI_DESC_VOTE_TO_SKIP");
}
else
{
setLocalVarString ui_hint_text ("@MPUI_VOTE_CAST");
}
}
leaveFocus
{
setItemColor self backColor 0 0 0 0;
setLocalVarBool ui_menuAButton (0);
setLocalVarString ui_hint_text "@NULL_EMPTY";
}
action
{
play CHOICE_CLICK_SOUND;
focusfirst;
open "skipmapconfirmation";
}
}
MENU_PANEL_MAP_PREVIEW
ITEM_BUTTON_SUMMARY_VIS(1)
ITEM_BUTTON_BACK(ON_MENU_ESC)
}
@@ -0,0 +1,11 @@
{
menuDef
{
name menu_xboxlive_privatelobby
fullscreen 1
rect 0 0 640 480
onOpen
{
open "createserver";
}
}
+156
View File
@@ -0,0 +1,156 @@
#ifdef PC
#ifndef STYLE2_NOPOSITION
#undef CHOICE_SIZE_X
#define CHOICE_SIZE_X 220
#undef CHOICE_SIZE_Y
#define CHOICE_SIZE_Y 22
#define CHOICE_TEXT_OFFSET_X (-(CHOICE_SIZE_Y-12))
#define CHOICE_ACCEPT_ALIGN_X -2
#define CHOICE_TEXTALIGN ITEM_ALIGN_MIDDLE_RIGHT
#undef CHOICE_SEP_OFFSET_Y
#define CHOICE_SEP_OFFSET_Y -2
#define TEXTBUTTON_COLOR 0.9 0.9 0.92 0.75
#define TEXTSIZE_BUTTON_PC 0.4
#define ORIGIN_OPTIONS_FRAME 220 0
#define CHOICE_DVAR_TEXTALIGN ITEM_ALIGN_MIDDLE_LEFT
#define CHOICE_DVAR_OFFSET_X (CHOICE_SIZE_X+20)
#define CHOICE_DVAR_WIDTH_OFFSET 120
#ifdef OPTIONS_STYLE
#undef CHOICE_X_START
#define CHOICE_X_START 0
#undef CHOICE_Y_START
#define CHOICE_Y_START 10
#define LOCAL_CLOSE_ALL \
close options_look; \
close options_move; \
close options_shoot; \
close options_misc; \
close options_graphics; \
close options_sound; \
close options_game; \
close options_view; \
close options_defaults; \
close options_driverinfo; \
close options_credits; \
close options_multi; \
close options_graphics_defaults; \
close options_graphics_texture; \
close options_control_defaults; \
close options_voice; \
close options_multi; \
close controls_multi; \
close main_options; \
close main_controls;
#endif
// disable the other positioning overrides
#undef STYLE2_NOPOSITION
#define STYLE2_NOPOSITION 1
#undef SPLITSCREEN_ENABLED
#endif
#define TITLE_X_OFFSET -36
#define TITLE_Y_OFFSET -36
#endif
// position setting
#ifndef STYLE2_NOPOSITION
#undef CHOICE_SIZE_X
#define CHOICE_SIZE_X 224
#undef CHOICE_SIZE_Y
#define CHOICE_SIZE_Y 22
#define CHOICE_TEXT_OFFSET_X (0 - (4+CHOICE_SIZE_Y))
#define CHOICE_ACCEPT_ALIGN_X -2
#define CHOICE_ACCEPT_ALIGN_Y 0
#define A_BUTTON_OFFSET_Y 1
#define CHOICE_TEXTALIGN ITEM_ALIGN_MIDDLE_RIGHT
#define ALT_HINT_X_OFFSET -(CHOICE_SIZE_Y)
#undef CHOICE_SEP_OFFSET_Y
#define CHOICE_SEP_OFFSET_Y -2
#define NEW_X_OFFSET 2
#endif
#ifdef PC
#undef CHOICE_TEXTSIZE
#define CHOICE_TEXTSIZE TEXTSIZE_BUTTON_PC
#else
#undef CHOICE_TEXTSIZE
#define CHOICE_TEXTSIZE TEXTSIZE_DEFAULT
#endif
// position setting for splitscreen
#ifdef SPLITSCREEN_ENABLED
#undef CHOICE_SIZE_X
#define CHOICE_SIZE_X 120
#undef CHOICE_SIZE_Y
#define CHOICE_SIZE_Y 18
#define CHOICE_TEXT_OFFSET_X (0 - (4+CHOICE_SIZE_Y))
#define CHOICE_ACCEPT_ALIGN_X -2
#define CHOICE_ACCEPT_ALIGN_Y 0
#define CHOICE_TEXTALIGN ITEM_ALIGN_MIDDLE_RIGHT
#define ALT_HINT_X_OFFSET -(CHOICE_SIZE_Y)
#undef CHOICE_SEP_OFFSET_Y
#define CHOICE_SEP_OFFSET_Y -2
#define NEW_X_OFFSET 2
#undef CHOICE_TEXTSIZE
#define CHOICE_TEXTSIZE TEXTSIZE_SMALL
#define BUTTON_BG_COLOR 0.9 0.9 1 0.12
#endif
#undef CHOICE_TEXTCOLOR
#define CHOICE_TEXTCOLOR 0.69 0.69 0.69 1
#undef CHOICE_TEXTSTYLE
#define CHOICE_TEXTSTYLE ITEM_TEXTSTYLE_SHADOWEDMORE
#undef HIGHLIGHT_BORDER
#define HIGHLIGHT_BORDER 0
#undef HIGHLIGHT_SHADER
#define HIGHLIGHT_SHADER "gradient_fadein"
#undef HIGHLIGHT_COLOR
#define HIGHLIGHT_COLOR 0.9 0.95 1 0.35
#undef A_BUTTON_COLOR
#define A_BUTTON_COLOR 1 1 1 1
#undef CHOICE_HORIZONTAL_ALIGN
#define CHOICE_HORIZONTAL_ALIGN HORIZONTAL_ALIGN_LEFT
#undef CHOICE_VERTICAL_ALIGN
#define CHOICE_VERTICAL_ALIGN VERTICAL_ALIGN_TOP
#undef RIGHTITEM_ALIGN
#define RIGHTITEM_ALIGN HORIZONTAL_ALIGN_RIGHT
#undef RIGHTITEM_OFFSET
#define RIGHTITEM_OFFSET 0
#undef CHOICE_FONT
#define CHOICE_FONT UI_FONT_NORMAL
#undef CHOICE_Y_SPACING
#define CHOICE_Y_SPACING (CHOICE_SIZE_Y+2)
#undef CHOICE_SEP_SPACING
#define CHOICE_SEP_SPACING 10
#undef CHOICE_SEP_WIDTH
#define CHOICE_SEP_WIDTH (CHOICE_SIZE_X - (CHOICE_SIZE_Y/4))
+177
View File
@@ -0,0 +1,177 @@
/*
** spectator radar by banz
** thx to NTA for full ui_mp dump
** thx to aerosoul94 for the ps3 ui_mp dump
*/
{
menuDef
{
name minimap_fullscreen
fullscreen 0
rect 3 3 0 0 8 8
foreColor 1 1 1 1
visible when ( ( ( ! ( ui_active( ) ) ) && ( ! ( flashbanged( ) ) ) && ( ! ( ( ( weaponname( ) == "killstreak_ac130_mp" ) || ( weaponname( ) == "killstreak_helicopter_minigun_mp" ) || ( weaponname( ) == "killstreak_predator_missile_mp" ) || ( ( weaponname( ) == "ac130_105mm_mp" ) || ( weaponname( ) == "ac130_40mm_mp" ) || ( weaponname( ) == "ac130_25mm_mp" ) ) || ( adsjavelin( ) ) || ( weaponname( ) == "heli_remote_mp" ) || missilecam( ) ) || ( getperk( "equipment" ) == "_specialty_blastshield" && ( ( ! ( dvarint( "scr_gameended" ) ) ) || inkillcam( ) ) ) ) ) && ( ! ( scoped( ) ) ) && ( ! ( selecting_location( ) ) ) && ( !isempjammed( ) ) && ( ( ! ( dvarbool( "g_hardcore" ) ) ) || radarisenabled( ) || dvarint( "g_compassShowEnemies" ) ) && ( ! ( dvarint( "scr_gameended" ) ) ) ) && ( ! ( milliseconds( ) - localvarint( "ui_show_killedBy" ) < 4000 || ( inkillcam( ) ) ) ) && ( ! ( selecting_location( ) ) ) && ( ! ( spectatingfree( ) ) ) )
hiddenDuringFlashbang
hiddenDuringScope
visible 1
itemDef
{
name minimap_border
rect 3 3 100 100 8 8
border 1
borderSize 0.666667
foreColor 1 1 1 1
borderColor 1 1 1 0.35
textScale 0.55
visible 1
}
itemDef
{
rect 3 3 100 100 8 8
style 3
foreColor 0.89 0.98 0.95 0.05
background minimap_scanlines
textScale 0.55
visible 1
}
itemDef
{
name minimap_map
rect 3 3 100 100 8 8
ownerdraw 159
foreColor 1 1 1 1
background compass_map_default
type 8
textScale 0.55
visible 1
}
itemDef
{
name minimap_friendlies
rect 3 3 100 100 8 8
ownerdraw 158
foreColor 1 1 1 1
type 8
textScale 0.55
visible 1
exp forecolor a ( 1 - radarjamintensity() )
}
itemDef
{
name minimap_objectives
rect 3 3 100 100 8 8
ownerdraw 152
foreColor 1 1 1 1
background objective_line
type 8
textScale 0.55
visible 1
}
itemDef
{
name minimap_enemies
rect 3 3 100 100 8 8
ownerdraw 175
foreColor 1 1 1 1
type 8
textScale 0.55
visible 1
exp forecolor a ( 1 - radarjamintensity() )
}
itemDef
{
name minimap_vehicles
rect 3 3 100 100 8 8
ownerdraw 155
foreColor 1 1 1 1
type 8
textScale 0.55
visible 1
exp forecolor a ( 1 - radarjamintensity() )
}
itemDef
{
name minimap_planes
rect 3 3 100 100 8 8
ownerdraw 156
foreColor 1 1 1 1
type 8
textScale 0.55
visible 1
exp forecolor a ( 1 - radarjamintensity() )
}
itemDef
{
name minimap_sentries
rect 3 3 100 100 8 8
ownerdraw 165
foreColor 1 1 1 1
type 8
textScale 0.55
visible 1
exp forecolor a ( 1 - radarjamintensity() )
}
itemDef
{
name minimap_player
rect 3 3 100 100 8 8
ownerdraw 150
foreColor 1 1 1 1
background compassping_player
type 8
textScale 0.55
visible 1
exp forecolor a ( 1 - radarjamintensity() )
}
itemDef
{
rect 3 3 100 100 8 8
style 3
foreColor 0.64 0.74 0.71 1
background white
textScale 0.55
visible 1
visible when ( radarisjammed() )
exp forecolor a ( radarjamintensity() )
}
itemDef
{
rect 3 3 100 100 8 8
style 3
foreColor 0.89 0.98 0.95 1
background ac130_overlay_grain
textScale 0.55
visible 1
visible when ( radarisjammed() )
exp forecolor a ( radarjamintensity() )
}
itemDef
{
rect 3 3 100 100 8 8
style 3
foreColor 1 1 1 1
background stencil_base
textScale 0.55
visible 1
}
itemDef
{
rect 3 3 100 100 8 8
style 3
foreColor 1 1 1 1
background scanlines_stencil
textScale 0.55
visible 1
exp rect y ( ( -100 ) + ( ( 200 ) * ( 1 - ( ( milliseconds( ) % 4000 ) / 4000 ) ) ) )
}
itemDef
{
rect 3 3 100 100 8 8
style 3
foreColor 0.89 0.98 0.95 1
background stencil_fill
textScale 0.55
visible 1
}
}
}
@@ -0,0 +1,350 @@
{
menuDef
{
name "mod_download_popmenu"
rect -150 -84 300 116 2 2
popup
legacySplitScreenScale
style 1
forecolor 1 1 1 1
backcolor 1 1 1 1
background "white"
focuscolor 1 1 1 1
onOpen
{
setLocalVarInt "ui_centerPopup" ( 1 );
}
onClose
{
setLocalVarInt "ui_centerPopup" ( 0 );
uiScript "mod_download_cancel";
}
onEsc
{
close self;
}
itemDef
{
rect -1004 -564 1708 992 2 2
decoration
visible 1
style 1
forecolor 1 1 1 1
backcolor 0 0 0 0.35
background "white"
textscale 0.55
}
itemDef
{
rect -1004 -564 1708 992 2 2
decoration
visible 1
style 1
forecolor 1 1 1 1
backcolor 1 1 1 1
background "xpbar_stencilbase"
textscale 0.55
}
itemDef
{
rect 0 0 300 116 2 2
decoration
visible 1
style 1
forecolor 1 1 1 1
backcolor 0.5 0.5 0.5 1
background "white"
textscale 0.55
}
itemDef
{
rect -150 -44 1708 512 2 2
decoration
visible 1
style 3
forecolor 1 1 1 0.75
background "mw2_popup_bg_fogstencil"
textscale 0.55
exp rect x ( 0 - ( ( float( milliseconds( ) % 60000 ) / 60000 ) * ( 854 ) ) )
}
itemDef
{
rect -150 -44 -1708 -512 2 2
decoration
visible 1
style 3
forecolor 0.85 0.85 0.85 1
background "mw2_popup_bg_fogscroll"
textscale 0.55
exp rect x ( 0 - ( ( float( milliseconds( ) % 60000 ) / 60000 ) * ( 854 ) ) )
}
itemDef
{
rect 0 0 300 32 2 2
decoration
visible 1
style 3
forecolor 1 1 1 1
background "mockup_popup_bg_stencilfill"
textscale 0.55
exp rect h ( ( 56 + 3 * 20 ) )
}
itemDef
{
rect -150 -44 -1708 -512 2 2
decoration
visible 1
style 3
forecolor 1 1 1 0.75
background "mw2_popup_bg_fogstencil"
textscale 0.55
exp rect x ( ( 0 - 854 ) + ( ( float( milliseconds( ) % 50000 ) / 50000 ) * ( 854 ) ) )
}
itemDef
{
rect -150 -44 -1708 -512 2 2
decoration
visible 1
style 3
forecolor 0.85 0.85 0.85 1
background "mw2_popup_bg_fogscroll"
textscale 0.55
exp rect x ( ( 0 - 854 ) + ( ( float( milliseconds( ) % 50000 ) / 50000 ) * ( 854 ) ) )
}
itemDef
{
rect -150 -44 300 0 1 1
decoration
visible 1
style 3
forecolor 1 1 1 0
background "small_box_lightfx"
textscale 0.55
exp rect h ( ( 56 + 3 * 20 ) )
}
itemDef
{
rect -64 -64 64 64 2 2
decoration
visible 1
style 3
forecolor 0 0 0 1
background "drop_shadow_tl"
textscale 0.55
visible when ( 1 )
}
itemDef
{
rect 0 -64 300 64 2 2
decoration
visible 1
style 3
forecolor 0 0 0 1
background "drop_shadow_t"
textscale 0.55
visible when ( 1 )
}
itemDef
{
rect 300 -64 64 64 2 2
decoration
visible 1
style 3
forecolor 0 0 0 1
background "drop_shadow_tr"
textscale 0.55
visible when ( 1 )
}
itemDef
{
rect 300 0 64 0 2 2
decoration
visible 1
style 3
forecolor 0 0 0 1
background "drop_shadow_r"
textscale 0.55
//exp rect h ( ( 24 + 3 * 20 ) )
exp rect h ( ( 56 + 3 * 20 ) )
visible when ( 1 )
}
itemDef
{
rect 300 0 64 64 2 2
decoration
visible 1
style 3
forecolor 0 0 0 1
background "drop_shadow_br"
textscale 0.55
exp rect y ( ( 32 - 0 ) + ( ( 24 + 3 * 20 ) ) )
visible when ( 1 )
}
itemDef
{
rect 0 0 300 64 2 2
decoration
visible 1
style 3
forecolor 0 0 0 1
background "drop_shadow_b"
textscale 0.55
exp rect y ( ( 32 - 0 ) + ( ( 24 + 3 * 20 ) ) )
visible when ( 1 )
}
itemDef
{
rect -64 0 64 64 2 2
decoration
visible 1
style 3
forecolor 0 0 0 1
background "drop_shadow_bl"
textscale 0.55
exp rect y ( ( 32 - 0 ) + ( ( 24 + 3 * 20 ) ) )
visible when ( 1 )
}
itemDef
{
rect -63 0 64 0 2 2
decoration
visible 1
style 3
forecolor 0 0 0 1
background "drop_shadow_l"
textscale 0.55
exp rect h ( ( 56 + 3 * 20 ) )
visible when ( 1 )
}
itemDef
{
rect 0 0 300 40 2 2
decoration
visible 1
forecolor 1 1 1 1
type 1
textfont 9
textalign 5
textscale 0.375
text "@MPUI_DOWNLOADING"
}
itemDef
{
rect 0 45 300 20 2 2
decoration
visible 1
forecolor 1 1 1 1
type 1
textalign 0
textalignX 10
textscale 0.4
text "@EXE_EST_TIME_LEFT"
}
itemDef
{
name "est_time_left"
rect 0 45 300 20 2 2
decoration
forecolor 1 1 1 1
type 1
textalign 2
textalignX -10
textscale 0.4
//text "@MPUI_EST_TIME_LEFT"
exp text (dvarString("ui_dl_timeLeft"))
visible 1
}
itemDef
{
rect 0 65 300 20 2 2
decoration
visible 1
forecolor 1 1 1 1
type 1
textalign 0
textalignX 10
textscale 0.4
text "@EXE_TRANS_RATE"
}
itemDef
{
name "trans_rate"
rect 0 65 300 20 2 2
decoration
forecolor 1 1 1 1
type 1
textalign 2
textalignX -10
textscale 0.4
//text "@MPUI_TRANS_RATE"
exp text (dvarString("ui_dl_transRate"))
visible 1
}
itemDef
{
rect 0 85 300 20 2 2
decoration
visible 1
forecolor 1 1 1 1
type 1
textalign 0
textalignX 10
textscale 0.4
text "@EXE_PROGRESS"
}
itemDef
{
name "progress"
rect 0 85 300 20 2 2
decoration
forecolor 1 1 1 1
type 1
textalign 2
textalignX -10
textscale 0.4
autowrapped
//text "@MPUI_PROGRESS_DL"
exp text (dvarString("ui_dl_progress"))
visible 1
}
itemDef
{
name "cancel"
rect 6 96 292 20 2 2
visible 1
group "mw2_popup_button"
style 1
forecolor 1 1 1 1
disablecolor 0.6 0.55 0.55 1
background "popup_button_selection_bar"
type 1
textfont 3
textalign 6
textalignx -24
textscale 0.375
text "@MENU_CANCEL"
visible when ( 1 )
action
{
play "mouse_click";
close self;
}
onFocus
{
play "mouse_over";
if ( dvarstring( "gameMode" ) != "mp" )
{
setItemColor "mw2_popup_button" backcolor 0 0 0 0;
}
setItemColor self backcolor 0 0 0 1;
setLocalVarBool "ui_popupAButton" ( 1 );
}
leaveFocus
{
setItemColor self backcolor 1 1 1 0;
setLocalVarBool "ui_popupAButton" ( 0 );
}
}
}
}
+127
View File
@@ -0,0 +1,127 @@
#include "ui/menudef.h"
#include "ui_mp/main.inc"
#define MENU_NAME "mods_menu"
#define MENU_MUSIC "music_mainmenu_mp"
#define MENU_TITLE "@MENU_MODS_CAPS"
#undef CHOICE_GROUP
#define CHOICE_GROUP MENU_NAME
#define CHOICE_Y(i) (28 + (i * 20))
#define CHOICE_ORIGIN(i) -64 CHOICE_Y(i)
#define CHOICE_RECT(i) CHOICE_ORIGIN(i) 336 20 ITEM_ALIGN_CENTER ITEM_ALIGN_CENTER
#define HR_ORIGIN(i) 0 (CHOICE_Y(i) - 0.5)
#define HR_RECT(i) HR_ORIGIN(i) 216 ITEM_ALIGN_CENTER ITEM_ALIGN_CENTER 1
#define ON_MENU_OPEN \
setLocalVarString ui_info_name ""; \
setLocalVarString ui_info_desc ""; \
setLocalVarString ui_info_icon ""; \
uiScript "LoadMods";
setFocus "modlist";
#define MENU_MODS_BUTTON_VIS(nameArg, yPos, textArg, actionArg, visArg) \
itemDef \
{ \
name nameArg \
rect -292 yPos 292 20 HORIZONTAL_ALIGN_RIGHT VERTICAL_ALIGN_BOTTOM \
style WINDOW_STYLE_FILLED \
backColor 0.6 0.55 0.55 0.2 \
foreColor CHOICE_TEXTCOLOR \
textFont CHOICE_TEXTFONT \
textAlign ITEM_ALIGN_TOP_RIGHT \
textAlignX -40 \
textScale CHOICE_TEXTSIZE \
background "menu_setting_selection_bar" \
group "mw2_button" \
type ITEM_TYPE_BUTTON \
text textArg \
visible visArg \
onFocus \
{ \
play CHOICE_FOCUS_SOUND; \
setItemColor self backColor 0 0 0 1; \
} \
leaveFocus \
{ \
setItemColor self backColor 0.6 0.55 0.55 0.2; \
} \
action \
{ \
play CHOICE_CLICK_SOUND; \
actionArg \
} \
}
#undef MENU_ITEM_TITLE
#define MENU_ITEM_TITLE(posX) \
itemDef \
{ \
rect 0 4 210 28 HORIZONTAL_ALIGN_LEFT VERTICAL_ALIGN_TOP \
foreColor CHOICE_TEXTCOLOR \
decoration \
textAlign ITEM_ALIGN_TOP_RIGHT \
textAlignX -60 \
textScale 0.5 \
textFont 9 \
text MENU_TITLE \
visible 1 \
exp rect x (posX) \
}
menuDef
{
name MENU_NAME
fullscreen 1
rect 0 0 640 480
foreColor CHOICE_TEXTCOLOR
focusColor CHOICE_TEXTCOLOR
soundLoop MENU_MUSIC
fadeCycle 1
fadeClamp 1
fadeAmount 0.1
MENU_ON_OPEN(ON_MENU_OPEN)
MENU_ON_ESC(close self;)
#define DISABLE_SIDEBAR
#include "ui_mp/bg.inc"
MENU_ITEM_TITLE(-80)
MENU_BACKGROUND_FRAME
MENU_BACKGROUND_PANEL_RIGHT
itemDef
{
name "modlist"
rect 0 28 210 356 HORIZONTAL_ALIGN_LEFT VERTICAL_ALIGN_TOP
style WINDOW_STYLE_FILLED
foreColor CHOICE_TEXTCOLOR
backColor 0 0 0 0.5
outlineColor 0 0 0 0.6
type ITEM_TYPE_LISTBOX
textFont CHOICE_TEXTFONT
textAlignX 6
textScale CHOICE_TEXTSIZE
feeder FEEDER_MODS
selectBorder 0.8 0.95 1 0
elementWidth 120
elementHeight 22
visible 1
// numcols xpos xwidth textlen alignment
columns 1 8 120 25 0
doubleClick
{
uiScript "RunMod";
}
MENU_EXEC_KEYINT(13, uiScript "RunMod";)
}
MENU_MODS_BUTTON_VIS("loadMod", -48, "@MENU_LAUNCH", uiScript "RunMod", when (dvarstring("fs_game") == ""))
MENU_MODS_BUTTON_VIS("loadMod", -68, "@MENU_LAUNCH", uiScript "RunMod", when (dvarstring("fs_game") != ""))
MENU_MODS_BUTTON_VIS("unloadMod", -48, "@MENU_LAUNCH_WITHOUT_MODS", uiScript "ClearMods", when (dvarstring("fs_game") != ""))
ITEM_BUTTON_BACK(close self;)
}
+265
View File
@@ -0,0 +1,265 @@
{
menuDef
{
name "onlineupdate"
rect -150 -44 300 44 2 2
popup
legacySplitScreenScale
style 1
forecolor 1 1 1 1
backcolor 1 1 1 1
background "white"
focuscolor 1 1 1 1
fadeCycle 1
fadeClamp 1
fadeAmount 0.1
onOpen
{
setLocalVarInt "ui_centerPopup" ( 1 );
}
onClose
{
setLocalVarInt "ui_centerPopup" ( 0 );
}
onEsc
{
close self;
}
itemDef
{
rect -1004 -524 1708 960 2 2
decoration
visible 1
style 1
forecolor 1 1 1 1
backcolor 0 0 0 0.35
background "white"
textscale 0.55
}
itemDef
{
rect -1004 -524 1708 960 2 2
decoration
visible 1
style 1
forecolor 1 1 1 1
backcolor 1 1 1 1
background "xpbar_stencilbase"
textscale 0.55
}
itemDef
{
rect 0 0 300 44 2 2
decoration
visible 1
style 1
forecolor 1 1 1 1
backcolor 0.5 0.5 0.5 1
background "white"
textscale 0.55
}
itemDef
{
rect -150 -44 1708 480 2 2
decoration
visible 1
style 3
forecolor 1 1 1 0.75
background "mw2_popup_bg_fogstencil"
textscale 0.55
exp rect x ( 0 - ( ( float( milliseconds( ) % 60000 ) / 60000 ) * ( 854 ) ) )
}
itemDef
{
rect -150 -44 -1708 -480 2 2
decoration
visible 1
style 3
forecolor 0.85 0.85 0.85 1
background "mw2_popup_bg_fogscroll"
textscale 0.55
exp rect x ( 0 - ( ( float( milliseconds( ) % 60000 ) / 60000 ) * ( 854 ) ) )
}
itemDef
{
rect 0 0 300 0 2 2
decoration
visible 1
style 3
forecolor 1 1 1 1
background "mockup_popup_bg_stencilfill"
textscale 0.55
exp rect h ( ( 24 + 1 * 20 ) )
}
itemDef
{
rect -150 -44 -1708 -480 2 2
decoration
visible 1
style 3
forecolor 1 1 1 0.75
background "mw2_popup_bg_fogstencil"
textscale 0.55
exp rect x ( ( - 854 ) + ( ( float( milliseconds( ) % 50000 ) / 50000 ) * ( 854 ) ) )
}
itemDef
{
rect -150 -44 -1708 -480 2 2
decoration
visible 1
style 3
forecolor 0.85 0.85 0.85 1
background "mw2_popup_bg_fogscroll"
textscale 0.55
exp rect x ( ( - 854 ) + ( ( float( milliseconds( ) % 50000 ) / 50000 ) * ( 854 ) ) )
}
itemDef
{
rect -150 -44 300 0 1 1
decoration
visible 1
style 3
forecolor 1 1 1 0
background "small_box_lightfx"
textscale 0.55
exp rect h ( ( 24 + 1 * 20 ) )
}
itemDef
{
rect -64 -64 64 64 2 2
decoration
visible 1
style 3
forecolor 0 0 0 1
background "drop_shadow_tl"
textscale 0.55
}
itemDef
{
rect 0 -64 300 64 2 2
decoration
visible 1
style 3
forecolor 0 0 0 1
background "drop_shadow_t"
textscale 0.55
}
itemDef
{
rect 300 -64 64 64 2 2
decoration
visible 1
style 3
forecolor 0 0 0 1
background "drop_shadow_tr"
textscale 0.55
}
itemDef
{
rect 300 0 64 0 2 2
decoration
visible 1
style 3
forecolor 0 0 0 1
background "drop_shadow_r"
textscale 0.55
exp rect h ( ( 24 + 1 * 20 ) )
}
itemDef
{
rect 300 0 64 64 2 2
decoration
visible 1
style 3
forecolor 0 0 0 1
background "drop_shadow_br"
textscale 0.55
exp rect y ( ( 0 - 0 ) + ( ( 24 + 1 * 20 ) ) )
}
itemDef
{
rect 0 0 300 64 2 2
decoration
visible 1
style 3
forecolor 0 0 0 1
background "drop_shadow_b"
textscale 0.55
exp rect y ( ( 0 - 0 ) + ( ( 24 + 1 * 20 ) ) )
}
itemDef
{
rect -64 0 64 64 2 2
decoration
visible 1
style 3
forecolor 0 0 0 1
background "drop_shadow_bl"
textscale 0.55
exp rect y ( ( 0 - 0 ) + ( ( 24 + 1 * 20 ) ) )
}
itemDef
{
rect -63 0 64 0 2 2
decoration
visible 1
style 3
forecolor 0 0 0 1
background "drop_shadow_l"
textscale 0.55
exp rect h ( ( 24 + 1 * 20 ) )
}
itemDef
{
rect 0 6 300 40 2 2
decoration
visible 1
forecolor 1 1 1 1
type 1
textalign 5
textscale 0.375
exp text ( dvarstring( "popupText" ) )
}
itemDef
{
rect 0 10 300 40 2 2
decoration
visible 1
forecolor 1 1 1 1
type 1
textalign 5
textaligny 10
textscale 0.375
visible when ( ( sin( milliseconds( ) * 0.005 ) + 1 ) * 0.5 > 0.25 && ( sin( milliseconds( ) * 0.005 ) + 1 ) * 0.5 <= 0.5 )
exp text ( "." )
}
itemDef
{
rect 0 10 300 40 2 2
decoration
visible 1
forecolor 1 1 1 1
type 1
textalign 5
textaligny 10
textscale 0.375
visible when ( ( sin( milliseconds( ) * 0.005 ) + 1 ) * 0.5 > 0.5 && ( sin( milliseconds( ) * 0.005 ) + 1 ) * 0.5 <= 0.75 )
exp text ( ".." )
}
itemDef
{
rect 0 10 300 40 2 2
decoration
visible 1
forecolor 1 1 1 1
type 1
textalign 5
textaligny 10
textscale 0.375
visible when ( ( sin( milliseconds( ) * 0.005 ) + 1 ) * 0.5 > 0.75 )
exp text ( "..." )
}
}
}
+64
View File
@@ -0,0 +1,64 @@
#include "ui/menudef.h"
#include "ui_mp/main.inc"
#define HIDE_MOD
#define MENU_NAME "pc_join_unranked"
#define MENU_MUSIC "music_mainmenu_mp"
#define MENU_TITLE "@MENU_JOIN_SERVER_CAPS"
#undef CHOICE_GROUP
#define CHOICE_GROUP MENU_NAME
#define ON_MENU_OPEN \
exec "selectStringTableEntryInDvar mp/didyouknow.csv 0 didyouknow"; \
uiScript "LoadArenas"; \
uiScript "UpdateFilter"; \
uiScript "RefreshServers"; \
setFocus "serverlist";
#define KEYINT_F5 171
#define KEYINT_ENTER 13
#define ON_MENU_ESC \
close self;
#define ON_MENU_KEY_F5 \
play CHOICE_CLICK_SOUND; \
uiScript "RefreshServers";
#define ON_MENU_KEY_ENTER \
uiScript "JoinServer";
menuDef
{
name MENU_NAME
fullscreen 1
rect 0 0 640 480
foreColor CHOICE_TEXTCOLOR
focusColor CHOICE_TEXTCOLOR
soundLoop MENU_MUSIC
fadeCycle 1
fadeClamp 1
fadeAmount 0.1
MENU_ON_OPEN(ON_MENU_OPEN)
MENU_ON_ESC(ON_MENU_ESC)
MENU_EXEC_KEYINT(KEYINT_F5, ON_MENU_KEY_F5)
MENU_EXEC_KEYINT(KEYINT_ENTER, ON_MENU_KEY_ENTER)
#define DISABLE_SIDEBAR
#include "ui_mp/bg.inc"
#include "ui_mp/joinserver.inc"
ITEM_MENU_TITLE_VIS(MENU_TITLE, 1)
BUTTON_FOOTER(-310, 100, "back", "@PLATFORM_BACK_CAPS", ON_MENU_ESC)
BUTTON_FOOTER_VIS(-194, 140, "addFavorite", "@MENU_ADD_TO_FAVORITES_CAPS", uiScript "CreateListFavorite", when(dvarInt("ui_netSource") != 2))
BUTTON_FOOTER_VIS(-194, 140, "delFavorite", "@MENU_DEL_FAVORITE_CAPS", uiScript "DeleteFavorite", when(dvarInt("ui_netSource") == 2))
BUTTON_FOOTER(-34, 100, "passwordenter", "@MENU_PASSWORD_CAPS", open "popup_joinpassword";)
BUTTON_FOOTER(86, 100, "serverinfo", "@MENU_SERVER_INFO_CAPS", open "serverinfo_popmenu";)
BUTTON_FOOTER(206, 100, "joinserver", "@MENU_JOIN_SERVER_CAPS", uiScript "JoinServer";)
}
+457
View File
@@ -0,0 +1,457 @@
#define CHOICE_Y(i) (28 + (i * 20))
#define CHOICE_ORIGIN(i) 232 CHOICE_Y(i)
#define CHOICE_RECT(i) CHOICE_ORIGIN(i) 336 20 HORIZONTAL_ALIGN_LEFT VERTICAL_ALIGN_TOP
#define ACTION_SHOW_APPLY \
setLocalVarBool ui_showApply (1);
#define PC_OPTIONS_BUTTON_RIGHT(itemIndex, buttonName, textArg, actionArg) \
PC_OPTIONS_BUTTON_RIGHT_VIS(itemIndex, buttonName, textArg, actionArg, 1)
#define PC_OPTIONS_BUTTON_RIGHT_VIS(itemIndex, buttonName, textArg, actionArg, visArg) \
PC_OPTIONS_BUTTON_RIGHT_RAW(itemIndex, buttonName, textArg, actionArg, "@NULL_EMPTY", when(0), visArg)
#define PC_OPTIONS_BUTTON_RIGHT_DESC(itemIndex, buttonName, textArg, actionArg, descArg) \
PC_OPTIONS_BUTTON_RIGHT_DESC_VIS(itemIndex, buttonName, textArg, actionArg, descArg, 1)
#define PC_OPTIONS_BUTTON_RIGHT_DESC_VIS(itemIndex, buttonName, textArg, actionArg, descArg, visArg) \
PC_OPTIONS_BUTTON_RIGHT_RAW(itemIndex, buttonName, textArg, actionArg, descArg, when(0), visArg)
#define PC_OPTIONS_BUTTON_RIGHT_RAW(itemIndex, buttonName, textArg, actionArg, descArg, disArg, visArg) \
itemDef \
{ \
name buttonName \
group "mw2_button" \
rect 302 CHOICE_Y(itemIndex) 225 20 HORIZONTAL_ALIGN_LEFT VERTICAL_ALIGN_TOP \
style WINDOW_STYLE_FILLED \
type ITEM_TYPE_BUTTON \
foreColor CHOICE_TEXTCOLOR \
disableColor 0.6 0.55 0.55 1 \
background "menu_setting_selection_bar" \
textFont UI_FONT_SMALL \
textAlign ITEM_ALIGN_TOP_LEFT \
textAlignX 60 \
textScale CHOICE_TEXTSIZE \
text textArg \
disabled disArg \
visible visArg \
mouseEnter \
{ \
play CHOICE_FOCUS_SOUND; \
} \
onFocus \
{ \
setItemColor self backColor 0 0 0 1; \
setLocalVarString ui_hint_text(descArg); \
setLocalVarFloat ui_popupYPos (getFocusedItemY()); \
} \
leaveFocus \
{ \
setItemColor self backColor 0 0 0 0; \
setLocalVarString ui_hint_text("@NULL_EMPTY"); \
} \
action \
{ \
play CHOICE_CLICK_SOUND; \
actionArg \
} \
}
#define PC_OPTIONS_SEPERATOR(itemIndex) \
PC_OPTIONS_SEPERATOR_VIS(itemIndex, 1)
#define PC_OPTIONS_SEPERATOR_VIS(itemIndex, visArg) \
itemDef \
{ \
rect 226 (CHOICE_Y(itemIndex) + 20 ) -392 1 HORIZONTAL_ALIGN_LEFT VERTICAL_ALIGN_TOP \
style WINDOW_STYLE_SHADER \
foreColor 1 1 1 0.65 \
background "line_horizontal" \
decoration \
type ITEM_TYPE_TEXT \
textScale 0.55 \
textFont UI_FONT_DEFAULT \
visible visArg \
}
#define PC_OPTIONS_SECTION_TITLE(textArg) \
itemDef \
{ \
rect 232 0 344 28 HORIZONTAL_ALIGN_LEFT VERTICAL_ALIGN_TOP \
foreColor CHOICE_TEXTCOLOR \
textFont 9 \
textAlign ITEM_ALIGN_TOP_CENTER \
textScale 0.5 \
decoration \
text textArg \
visible 1 \
}
#define PC_OPTIONS_OPTION_LABEL_RAW(itemIndex, textArg, disArg, visArg) \
itemDef \
{ \
rect CHOICE_RECT(itemIndex) \
foreColor CHOICE_TEXTCOLOR \
disableColor 0.6 0.55 0.55 1 \
textFont UI_FONT_SMALL \
textAlign ITEM_ALIGN_TOP_RIGHT \
textAlignX -180 \
textScale CHOICE_TEXTSIZE \
decoration \
text textArg \
decoration \
visible visArg \
}
#define PC_OPTIONS_OPTION_LABEL2_RAW(itemIndex, textArg, visArg) \
itemDef \
{ \
rect CHOICE_RECT(itemIndex) \
foreColor CHOICE_TEXTCOLOR \
disableColor 0.6 0.55 0.55 1 \
textFont UI_FONT_SMALL \
textAlign ITEM_ALIGN_TOP_RIGHT \
textAlignX -170 \
textScale CHOICE_TEXTSIZE \
decoration \
text textArg \
decoration \
visible visArg \
}
#define PC_OPTIONS_DVARENUMLIST(itemIndex, textArg, dvarArg, dvarEnumArg, actionArg, disArg) \
PC_OPTIONS_DVARENUMLIST_RAW(itemIndex, textArg, dvarArg, dvarEnumArg, actionArg, "@MENU_GRAPHICS_WARNING", disArg, 1)
#define PC_OPTIONS_DVARENUMLIST_RAW(itemIndex, textArg, dvarArg, dvarEnumArg, actionArg, descArg, disArg, visArg) \
itemDef \
{ \
rect CHOICE_RECT(itemIndex) \
style WINDOW_STYLE_FILLED \
foreColor CHOICE_TEXTCOLOR \
disableColor 0.6 0.55 0.55 1 \
background "menu_setting_selection_bar" \
type ITEM_TYPE_DVARENUM \
dvar dvarArg \
dvarEnumList dvarEnumArg \
textFont UI_FONT_SMALL \
textAlign ITEM_ALIGN_TOP_LEFT \
textAlignX 170 \
textScale CHOICE_TEXTSIZE \
disabled disArg \
visible visArg \
mouseEnter \
{ \
play CHOICE_FOCUS_SOUND; \
} \
onFocus \
{ \
setItemColor self backColor 0 0 0 1; \
if (menuisopen("pc_options_video")) \
{ \
setLocalVarBool ui_hint_display 1; \
setLocalVarBool ui_brightness_hint_display 1; \
} \
else \
{ \
setLocalVarBool ui_hint_display 0; \
setLocalVarBool ui_brightness_hint_display 0; \
} \
setLocalVarString ui_hint_text descArg; \
} \
leaveFocus \
{ \
setItemColor self backColor 0 0 0 0; \
setLocalVarBool ui_hint_display 0; \
setLocalVarString ui_hint_text "@NULL_EMPTY"; \
} \
action \
{ \
play CHOICE_CLICK_SOUND; \
actionArg \
} \
} \
PC_OPTIONS_OPTION_LABEL_RAW(itemIndex, textArg, disArg, visArg)
#define PC_OPTIONS_DVARYESNO(itemIndex, textArg, dvarArg, actionArg, disArg) \
PC_OPTIONS_DVARYESNO_RAW(itemIndex, textArg, dvarArg, actionArg, "@NULL_EMPTY", disArg, 1)
#define PC_OPTIONS_DVARYESNO_RAW(itemIndex, textArg, dvarArg, actionArg, descArg, disArg, visArg) \
itemDef \
{ \
rect CHOICE_RECT(itemIndex) \
style WINDOW_STYLE_FILLED \
foreColor CHOICE_TEXTCOLOR \
disableColor 0.6 0.55 0.55 1 \
background "menu_setting_selection_bar" \
type ITEM_TYPE_YESNO \
dvar dvarArg \
textFont UI_FONT_SMALL \
textAlign ITEM_ALIGN_TOP_LEFT \
textAlignX 170 \
textScale CHOICE_TEXTSIZE \
disabled disArg \
visible visArg \
mouseEnter \
{ \
play CHOICE_FOCUS_SOUND; \
} \
onFocus \
{ \
setItemColor self backColor 0 0 0 1; \
setLocalVarBool ui_hint_display 1; \
if (menuisopen("pc_options_video")) \
{ \
setLocalVarBool ui_brightness_hint_display 1; \
} \
else \
{ \
setLocalVarBool ui_brightness_hint_display 0; \
} \
setLocalVarString ui_hint_text descArg; \
} \
leaveFocus \
{ \
setItemColor self backColor 0 0 0 0; \
setLocalVarBool ui_hint_display 0; \
setLocalVarBool ui_brightness_hint_display 0; \
setLocalVarString ui_hint_text "@NULL_EMPTY"; \
} \
action \
{ \
play CHOICE_CLICK_SOUND; \
actionArg \
} \
} \
PC_OPTIONS_OPTION_LABEL_RAW(itemIndex, textArg, disArg, visArg)
#define PC_OPTIONS_DVARSLIDER(itemIndex, textArg, dvarArg, dvarMin, dvarMax, dvarDef, focusArg, focusLeaveArg, actionArg, disArg) \
PC_OPTIONS_DVARSLIDER_RAW(itemIndex, textArg, dvarArg, dvarMin, dvarMax, dvarDef, focusArg, focusLeaveArg, actionArg, disArg, 1, 1)
#define PC_OPTIONS_DVARSLIDER_RAW(itemIndex, textArg, dvarArg, dvarMin, dvarMax, dvarDef, focusArg, focusLeaveArg, actionArg, disArg, visArg, visValue) \
itemDef \
{ \
rect CHOICE_RECT(itemIndex) \
style WINDOW_STYLE_FILLED \
foreColor CHOICE_TEXTCOLOR \
disableColor 0.6 0.55 0.55 1 \
background "menu_setting_selection_bar" \
type ITEM_TYPE_SLIDER \
dvarFloat dvarArg dvarDef dvarMin dvarMax \
textFont UI_FONT_SMALL \
textAlign ITEM_ALIGN_TOP_LEFT \
textAlignX 170 \
textAlignY 2 \
textScale CHOICE_TEXTSIZE \
disabled disArg \
visible visArg \
mouseEnter \
{ \
play CHOICE_FOCUS_SOUND; \
} \
onFocus \
{ \
focusArg \
} \
leaveFocus \
{ \
focusLeaveArg \
} \
action \
{ \
play CHOICE_CLICK_SOUND; \
actionArg \
} \
} \
PC_OPTIONS_OPTION_LABEL_RAW(itemIndex, textArg, disArg, visArg) \
itemDef \
{ \
rect 422 CHOICE_Y(itemIndex) 344 20 HORIZONTAL_ALIGN_LEFT VERTICAL_ALIGN_TOP \
foreColor CHOICE_TEXTCOLOR \
disableColor 0.6 0.55 0.55 1 \
textFont UI_FONT_SMALL \
textAlign ITEM_ALIGN_TOP_RIGHT \
textAlignX -190 \
textScale CHOICE_TEXTSIZE \
decoration \
decoration \
visible visValue \
exp text(dvarString(dvarArg)) \
}
#define PC_OPTIONS_FLOATLIST_RAW(itemIndex, textArg, dvarArg, dvarFloatListArg, actionArg, descArg, disArg, visArg) \
itemDef \
{ \
rect CHOICE_RECT(itemIndex) \
style WINDOW_STYLE_FILLED \
foreColor CHOICE_TEXTCOLOR \
disableColor 0.6 0.55 0.55 1 \
background "menu_setting_selection_bar" \
type ITEM_TYPE_MULTI \
dvar dvarArg \
dvarFloatList dvarFloatListArg \
textFont UI_FONT_SMALL \
textAlign ITEM_ALIGN_TOP_LEFT \
textAlignX 170 \
textScale CHOICE_TEXTSIZE \
disabled disArg \
visible visArg \
mouseEnter \
{ \
play CHOICE_FOCUS_SOUND; \
} \
onFocus \
{ \
setItemColor self backColor 0 0 0 1; \
setLocalVarBool ui_hint_display 1; \
setLocalVarString ui_hint_text descArg; \
} \
leaveFocus \
{ \
setItemColor self backColor 0 0 0 0; \
setLocalVarBool ui_hint_display 0; \
setLocalVarString ui_hint_text "@NULL_EMPTY"; \
} \
action \
{ \
play CHOICE_CLICK_SOUND; \
actionArg \
} \
} \
PC_OPTIONS_OPTION_LABEL_RAW(itemIndex, textArg, disArg, visArg)
#define PC_OPTIONS_STRLIST_RAW(itemIndex, textArg, dvarArg, dvarStrListArg, actionArg, descArg, disArg, visArg) \
itemDef \
{ \
rect CHOICE_RECT(itemIndex) \
style WINDOW_STYLE_FILLED \
foreColor CHOICE_TEXTCOLOR \
disableColor 0.6 0.55 0.55 1 \
background "menu_setting_selection_bar" \
type ITEM_TYPE_MULTI \
dvar dvarArg \
dvarStrList dvarStrListArg \
textFont UI_FONT_SMALL \
textAlign ITEM_ALIGN_TOP_LEFT \
textAlignX 170 \
textScale CHOICE_TEXTSIZE \
disabled disArg \
visible visArg \
mouseEnter \
{ \
play CHOICE_FOCUS_SOUND; \
} \
onFocus \
{ \
setItemColor self backColor 0 0 0 1; \
setLocalVarBool ui_hint_display 1; \
setLocalVarString ui_hint_text descArg; \
} \
leaveFocus \
{ \
setItemColor self backColor 0 0 0 0; \
setLocalVarBool ui_hint_display 0; \
setLocalVarString ui_hint_text "@NULL_EMPTY"; \
} \
action \
{ \
play CHOICE_CLICK_SOUND; \
actionArg \
} \
} \
PC_OPTIONS_OPTION_LABEL_RAW(itemIndex, textArg, disArg, visArg)
#define PC_OPTIONS_KEYBINDING(itemIndex, textArg, dvarArg) \
PC_OPTIONS_KEYBINDING_RAW(itemIndex, textArg, dvarArg, 1)
#define PC_OPTIONS_KEYBINDING_RAW(itemIndex, textArg, dvarArg, visArg) \
itemDef \
{ \
rect CHOICE_RECT(itemIndex) \
style WINDOW_STYLE_FILLED \
foreColor CHOICE_TEXTCOLOR \
background "menu_setting_selection_bar" \
type ITEM_TYPE_BIND \
dvar dvarArg \
textFont UI_FONT_SMALL \
textAlign ITEM_ALIGN_TOP_LEFT \
textAlignX 170 \
textScale CHOICE_TEXTSIZE \
visible visArg \
mouseEnter \
{ \
play CHOICE_FOCUS_SOUND; \
} \
onFocus \
{ \
setItemColor self backColor 0 0 0 1; \
show "keyBindStatus"; \
} \
leaveFocus \
{ \
setItemColor self backColor 0 0 0 0; \
hide "keyBindStatus"; \
} \
action \
{ \
play CHOICE_CLICK_SOUND; \
} \
} \
PC_OPTIONS_OPTION_LABEL_RAW(itemIndex, textArg, 0, visArg)
#define PC_OPTIONS_KEYBINDSTATUS \
itemDef \
{ \
name "keyBindStatus" \
rect 10 20 500 240 HORIZONTAL_ALIGN_CENTER VERTICAL_ALIGN_BOTTOM \
decoration \
autoWrapped \
style WINDOW_STYLE_FILLED \
ownerdraw UI_KEYBINDSTATUS \
forecolor 0.65 0.65 0.65 1 \
type ITEM_TYPE_OWNERDRAW \
textAlign ITEM_ALIGN_LEGACY_CENTER \
textscale CHOICE_TEXTSIZE \
}
#define PC_OPTIONS_EDITFIELD(itemIndex, textArg, dvarArg, maxCharsArg) \
PC_OPTIONS_EDITFIELD_RAW(itemIndex, textArg, dvarArg, maxCharsArg, "@NULL_EMPTY", 1)
#define PC_OPTIONS_EDITFIELD_RAW(itemIndex, textArg, dvarArg, maxCharsArg, descArg, visArg) \
itemDef \
{ \
rect CHOICE_RECT(itemIndex) \
style WINDOW_STYLE_FILLED \
foreColor CHOICE_TEXTCOLOR \
background "menu_setting_selection_bar" \
type ITEM_TYPE_EDITFIELD \
text " " \
dvar dvarArg \
maxChars maxCharsArg \
maxPaintChars maxCharsArg \
textFont UI_FONT_SMALL \
textAlign ITEM_ALIGN_TOP_LEFT \
textAlignX 160 \
textScale CHOICE_TEXTSIZE \
visible visArg \
mouseEnter \
{ \
play CHOICE_FOCUS_SOUND; \
} \
onFocus \
{ \
setItemColor self backColor 0 0 0 1; \
setLocalVarBool ui_hint_display 1; \
setLocalVarString ui_hint_text descArg; \
} \
leaveFocus \
{ \
setItemColor self backColor 0 0 0 0; \
setLocalVarBool ui_hint_display 0; \
setLocalVarString ui_hint_text "@NULL_EMPTY"; \
} \
action \
{ \
play CHOICE_CLICK_SOUND; \
} \
} \
PC_OPTIONS_OPTION_LABEL_RAW(itemIndex, textArg, 0, visArg)
@@ -0,0 +1,86 @@
#include "ui/menudef.h"
#include "ui_mp/main.inc"
#include "ui_mp/pc_options.inc"
#define MENU_NAME "pc_options_actions"
#define MENU_TITLE "@MENU_ACTIONS"
#undef CHOICE_GROUP
#define CHOICE_GROUP MENU_NAME
#define CLOSE_MENUS \
close "controls_multi"; \
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_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_FIRE_WEAPON", "+attack")
PC_OPTIONS_KEYBINDING(1, "@MENU_AIM_DOWN_THE_SIGHT", "+toggleads_throw")
PC_OPTIONS_KEYBINDING(2, "@MENU_HOLD_AIM_DOWN_SIGHT", "+speed_throw")
PC_OPTIONS_KEYBINDING(3, "@MENU_LEAN_LEFT", "+leanleft")
PC_OPTIONS_KEYBINDING(4, "@MENU_LEAN_RIGHT", "+leanright")
PC_OPTIONS_KEYBINDING(5, "@MENU_RELOAD_WEAPON", "+reload")
PC_OPTIONS_KEYBINDING(6, "@MENU_SWITCH_WEAPON", "weapnext")
PC_OPTIONS_KEYBINDING(7, "@MENU_MELEE_ATTACK", "+melee")
PC_OPTIONS_KEYBINDING(8, "@MENU_USE", "+activate")
PC_OPTIONS_KEYBINDING(9, "@MENU_FRAG_EQUIPMENT", "+frag")
PC_OPTIONS_KEYBINDING(10, "@MENU_THROW_SPECIAL_GRENADE", "+smoke")
PC_OPTIONS_KEYBINDING(11, "@MENU_WEAPON_ATTACHMENT", "+actionslot 3")
PC_OPTIONS_KEYBINDING(12, "@MENU_INVENTORY_KILLSTREAK", "+actionslot 4")
PC_OPTIONS_KEYBINDING(13, "@MENU_SECONDARY_INVENTORY", "+actionslot 2")
PC_OPTIONS_KEYBINDING(14, "@MENU_NIGHT_VISION", "+actionslot 1")
PC_OPTIONS_SEPERATOR(14)
PC_OPTIONS_KEYBINDING(15, "@MENU_SHOW_OBJECTIVES_SCORES", "+scores")
PC_OPTIONS_KEYBINDSTATUS
ITEM_BUTTON_BACK(ON_MENU_ESC)
}
@@ -0,0 +1,91 @@
#include "ui/menudef.h"
#include "ui_mp/main.inc"
#include "ui_mp/pc_options.inc"
#define MENU_NAME "pc_options_advanced_video"
#define MENU_TITLE "@MENU_ADVANCED_VIDEO"
#undef CHOICE_GROUP
#define CHOICE_GROUP MENU_NAME
#define CLOSE_MENUS \
close "controls_multi"; \
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_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 \
execnow "profile_menuDvarsSetup; resetViewport"; \
setLocalVarBool "ui_hideBack" (1);
#define ON_MENU_CLOSE \
execnow "profile_menuDvarsFinish; resetViewport"; \
setLocalVarBool "ui_hideBack" (0); \
execOnDvarIntValue "r_lodScaleRigid" 2 "set r_lodScaleSkinned 4; set r_lodBiasSkinned -200; set r_lodBiasRigid -100"; \
execOnDvarIntValue "r_lodScaleRigid" 1 "set r_lodScaleSkinned 1; set r_lodBiasSkinned 0; set r_lodBiasRigid 0"; \
open "pc_options_video";
#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_FLOATLIST_RAW(0, "@MENU_ASPECT_RATIO", "ui_r_aspectratio", {"@MENU_AUTO" 0 "@MENU_STANDARD_4_3" 1 "@MENU_WIDE_16_10" 2 "@MENU_WIDE_16_9" 3}, setDvarInt r_aspectratio dvarInt("ui_r_aspectratio"); setLocalVarBool "ui_showApply" (1);, "@NULL_EMPTY", when((dvarBool("cl_ingame") || dvarBool("sv_running") || inlobby())), 1)
PC_OPTIONS_FLOATLIST_RAW(1, "@MENU_ANTIALIASING", "ui_r_aasamples", {"@MENU_OFF" 1 "@MENU_2X" 2 "@MENU_4X" 4}, setLocalVarBool "ui_showApply" (1);, "@NULL_EMPTY", when((dvarBool("cl_ingame") || dvarBool("sv_running") || inlobby())), 1)
PC_OPTIONS_DVARENUMLIST(2, "@MENU_SCREEN_REFRESH_RATE", "ui_r_displayRefresh", "r_displayRefresh", ACTION_SHOW_APPLY, when((dvarBool("cl_ingame") || dvarBool("sv_running") || inlobby())))
PC_OPTIONS_DVARYESNO_RAW(3, "@MENU_SYNC_EVERY_FRAME", "ui_r_vsync", ACTION_SHOW_APPLY, "@NULL_EMPTY", when((dvarBool("cl_ingame") || dvarBool("sv_running") || inlobby())), 1)
PC_OPTIONS_SEPERATOR(3)
PC_OPTIONS_DVARYESNO(4, "@MENU_SHADOWS", "sm_enable", ;, when(0))
PC_OPTIONS_DVARYESNO(5, "@MENU_SPECULAR_MAP", "r_specular", ;, when(0))
PC_OPTIONS_DVARYESNO(6, "@MENU_DOF", "r_dof_enable", ;, when(0))
PC_OPTIONS_SEPERATOR(6)
PC_OPTIONS_DVARYESNO(7, "@MENU_ZFEATHER_SMOKE", "r_zfeather", ;, when(0))
PC_OPTIONS_DVARYESNO(8, "@MENU_RAGDOLL", "ragdoll_enable", ;, when(0))
PC_OPTIONS_DVARYESNO(9, "@MENU_BULLET_IMPACTS", "fx_marks", ;, when(0))
PC_OPTIONS_SEPERATOR(9)
PC_OPTIONS_FLOATLIST_RAW(10, "@MENU_TEXTURE_QUALITY", "ui_r_picmip_manual", {"@MENU_AUTOMATIC" 0 "@MENU_MANUAL" 1}, setLocalVarBool "ui_showApply" (1);, "@NULL_EMPTY", when((dvarBool("cl_ingame") || dvarBool("sv_running") || inlobby())), 1)
PC_OPTIONS_FLOATLIST_RAW(11, "@MENU_TEXTURE_RESOLUTION", "ui_r_picmip", {"@MENU_LOW" 3 "@MENU_NORMAL" 2 "@MENU_HIGH" 1 "@MENU_EXTRA" 0}, setLocalVarBool "ui_showApply" (1);, "@NULL_EMPTY", when((dvarBool("cl_ingame") || dvarBool("sv_running") || inlobby())), when(dvarBool("ui_r_picmip_manual")))
PC_OPTIONS_FLOATLIST_RAW(12, "@MENU_NORMAL_MAP_RESOLUTION", "ui_r_picmip_bump", {"@MENU_LOW" 3 "@MENU_NORMAL" 2 "@MENU_HIGH" 1 "@MENU_EXTRA" 0}, setLocalVarBool "ui_showApply" (1);, "@NULL_EMPTY", when((dvarBool("cl_ingame") || dvarBool("sv_running") || inlobby())), when(dvarBool("ui_r_picmip_manual")))
PC_OPTIONS_FLOATLIST_RAW(13, "@MENU_SPECULAR_MAP_RESOLUTION", "ui_r_picmip_spec", {"@MENU_LOW" 3 "@MENU_NORMAL" 2 "@MENU_HIGH" 1 "@MENU_EXTRA" 0}, setLocalVarBool "ui_showApply" (1);, "@NULL_EMPTY", when((dvarBool("cl_ingame") || dvarBool("sv_running") || inlobby())), when(dvarBool("ui_r_picmip_manual")))
ITEM_BUTTON_BACK(ON_MENU_ESC)
}
+81
View File
@@ -0,0 +1,81 @@
#include "ui/menudef.h"
#include "ui_mp/main.inc"
#include "ui_mp/pc_options.inc"
#define MENU_NAME "pc_options_audio"
#define MENU_TITLE "@MENU_AUDIO"
#undef CHOICE_GROUP
#define CHOICE_GROUP MENU_NAME
#define CLOSE_MENUS \
close "controls_multi"; \
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_advanced_video"; \
close "pc_options_controls"; \
close "pc_options_game"; \
close "pc_options_movement"; \
close "pc_options_multi"; \
close "pc_options_video"; \
close "pc_options_voice";
#define ON_MENU_OPEN \
CLOSE_MENUS \
setLocalVarString ui_hint_text "@NULL_EMPTY"; \
if (!localvarint("ui_showAudioApply")) \
{ \
exec "setfromdvar ui_snd_khz snd_khz"; \
exec "setfromdvar ui_snd_enableEq snd_enableEq"; \
exec "setfromdvar ui_outputConfig snd_outputConfiguration"; \
} \
execnow "profile_menuDvarsSetup; resetViewport"; \
setFocus "buttonAudio";
#define ON_MENU_ESC \
close self; \
if (!(menuisopen("pc_options_advanced_video") || menuisopen("pc_options_video") || menuisopen("pc_options_Audio") || menuisopen("pc_options_controls") || menuisopen("pc_options_voice") ) && localvarbool("ui_showPicApply") && !localvarbool("ui_showApply") && !localvarbool("ui_showAudioApply")) \
{ \
execnow "setfromdvar r_picmip ui_r_picmip"; \
execnow "setfromdvar r_picmip_bump ui_r_picmip_bump"; \
execnow "setfromdvar r_picmip_spec ui_r_picmip_spec"; \
execnow "setfromdvar r_picmip_manual ui_r_picmip_manual"; \
exec "wait; wait; r_applyPicmip"; \
setLocalVarBool "ui_showPicApply" (0); \
} \
if (!(menuisopen("pc_options_advanced_video") || menuisopen("pc_options_video") || menuisopen("pc_options_Audio") || menuisopen("pc_options_controls") || menuisopen("pc_options_voice") ) && localvarbool("ui_showApply") || localvarbool("ui_showAudioApply")) \
{ \
open "all_restart_popmenu"; \
} \
execnow "profile_menuDvarsFinish; resetViewport"; \
setLocalVarString ui_hint_text "@NULL_EMPTY";
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_ESC(ON_MENU_ESC)
#define BACKGROUND_PC_OPTIONS
#define BACKGROUND_IW4
#define SIDEBAR_RIGHT
#include "ui_mp/bg.inc"
#include "ui_mp/leftside_options.inc"
PC_OPTIONS_SECTION_TITLE(MENU_TITLE)
PC_OPTIONS_DVARSLIDER_RAW(0, "@MENU_MASTER_VOLUME", "snd_volume", 0, 1, 0, ;, ;, ;, when(0), 1, 1)
PC_OPTIONS_STRLIST_RAW(1, "@MENU_SPEAKER_CONFIG", "ui_outputConfig", {"@MENU_WINDOWS_DEFAULT"; "Windows default"; "@MENU_MONO"; "Mono"; "@MENU_STEREO"; "Stereo"; "@MENU_FOUR_SPEAKERS"; "4 speakers"; "@MENU_FIVE_ONE_SPEAKERS"; "5.1 speakers"}, setLocalVarBool "ui_showAudioApply" (1);, ;, when((dvarBool("cl_ingame") || dvarBool("sv_running") || inlobby())), 1)
}
+122
View File
@@ -0,0 +1,122 @@
#include "ui/menudef.h"
#include "ui_mp/main.inc"
#include "ui_mp/pc_options.inc"
#define MENU_NAME "pc_options_controls"
#define MENU_TITLE "@MENU_CONTROLS"
#define CLOSE_MENUS \
close "controls_multi"; \
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_game"; \
close "pc_options_look"; \
close "pc_options_movement"; \
close "pc_options_multi"; \
close "pc_options_video"; \
close "pc_options_voice";
#undef CHOICE_GROUP
#define CHOICE_GROUP MENU_NAME
#define ON_MENU_OPEN \
CLOSE_MENUS \
setLocalVarString ui_hint_text "@NULL_EMPTY"; \
setLocalVarBool "ui_hideBack" (1); \
execnow "profile_menuDvarsSetup; resetViewport"; \
setFocus "buttonControls";
#define ON_MENU_CLOSE \
setLocalVarBool "ui_hideBack" (0);
#define ON_MENU_ESC \
close self; \
if (!(menuisopen("pc_options_advanced_video") || menuisopen("pc_options_video") || menuisopen("pc_options_audio") || menuisopen("pc_options_controls") || menuisopen("pc_options_voice") ) && localvarbool("ui_showPicApply") && !localvarbool("ui_showApply") && !localvarbool("ui_showAudioApply")) \
{ \
execnow "setfromdvar r_picmip ui_r_picmip"; \
execnow "setfromdvar r_picmip_bump ui_r_picmip_bump"; \
execnow "setfromdvar r_picmip_spec ui_r_picmip_spec"; \
execnow "setfromdvar r_picmip_manual ui_r_picmip_manual"; \
exec "wait; wait; r_applyPicmip"; \
setLocalVarBool "ui_showPicApply" (0); \
} \
if (!(menuisopen("pc_options_advanced_video") || menuisopen("pc_options_video") || menuisopen("pc_options_audio") || menuisopen("pc_options_controls") || menuisopen("pc_options_voice") ) && localvarbool("ui_showApply") || localvarbool("ui_showAudioApply")) \
{ \
open "all_restart_popmenu"; \
} \
execnow "profile_menuDvarsFinish; resetViewport"; \
setLocalVarString ui_hint_text "@NULL_EMPTY";
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 SIDEBAR_RIGHT
#include "ui_mp/bg.inc"
#include "ui_mp/leftside_options.inc"
PC_OPTIONS_SECTION_TITLE(MENU_TITLE)
PC_OPTIONS_BUTTON_RIGHT(0, "buttonMovement", "@MENU_MOVEMENT", open "pc_options_movement"; close self;)
PC_OPTIONS_BUTTON_RIGHT(1, "buttonActions", "@MENU_ACTIONS", open "pc_options_actions"; close self;)
PC_OPTIONS_BUTTON_RIGHT(2, "buttonLook", "@MENU_LOOK", open "pc_options_look"; close self;)
PC_OPTIONS_BUTTON_RIGHT(3, "buttonChat", "@MENU_CHAT", open "controls_multi"; close self;)
PC_OPTIONS_SEPERATOR(3)
itemDef
{
rect 302 CHOICE_Y(4) 225 20 HORIZONTAL_ALIGN_LEFT VERTICAL_ALIGN_TOP
style WINDOW_STYLE_FILLED
type ITEM_TYPE_BUTTON
foreColor CHOICE_TEXTCOLOR
disableColor 0.6 0.55 0.55 1
background "menu_setting_selection_bar"
textFont UI_FONT_SMALL
textAlign ITEM_ALIGN_TOP_LEFT
textAlignX 60
textScale CHOICE_TEXTSIZE
text "@MENU_RESTORE_DEFAULT_CONTROLS"
visible 1
mouseEnter
{
play CHOICE_FOCUS_SOUND;
}
onFocus
{
setItemColor self backColor 0 0 0 1;
setLocalVarString ui_hint_text("@NULL_EMPTY");
setLocalVarFloat ui_popupYPos (getFocusedItemY());
}
leaveFocus
{
setItemColor self backColor 0 0 0 0;
setLocalVarString ui_hint_text("@NULL_EMPTY");
}
action
{
play CHOICE_CLICK_SOUND;
open "options_control_defaults";
}
}
}
+85
View File
@@ -0,0 +1,85 @@
#include "ui/menudef.h"
#include "ui_mp/main.inc"
#include "ui_mp/pc_options.inc"
#define MENU_NAME "pc_options_game"
#define MENU_TITLE "@MENU_GAME"
#undef CHOICE_GROUP
#define CHOICE_GROUP MENU_NAME
#define CLOSE_MENUS \
close "controls_multi"; \
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_look"; \
close "pc_options_movement"; \
close "pc_options_multi"; \
close "pc_options_video"; \
close "pc_options_voice";
#define ON_MENU_OPEN \
CLOSE_MENUS \
exec "setfromdvar ui_name name"; \
setLocalVarString ui_hint_text "@NULL_EMPTY"; \
setLocalVarBool ui_hint_display 1; \
execnow "profile_menuDvarsSetup; resetViewport"; \
setFocus "buttonGame";
#define ON_MENU_ESC \
close self; \
if (!(menuisopen("pc_options_advanced_video") || menuisopen("pc_options_video") || menuisopen("pc_options_Audio") || menuisopen("pc_options_controls") || menuisopen("pc_options_voice") ) && localvarbool("ui_showPicApply") && !localvarbool("ui_showApply") && !localvarbool("ui_showAudioApply")) \
{ \
execnow "setfromdvar r_picmip ui_r_picmip"; \
execnow "setfromdvar r_picmip_bump ui_r_picmip_bump"; \
execnow "setfromdvar r_picmip_spec ui_r_picmip_spec"; \
execnow "setfromdvar r_picmip_manual ui_r_picmip_manual"; \
exec "wait; wait; r_applyPicmip"; \
setLocalVarBool "ui_showPicApply" (0); \
} \
if (!(menuisopen("pc_options_advanced_video") || menuisopen("pc_options_video") || menuisopen("pc_options_Audio") || menuisopen("pc_options_controls") || menuisopen("pc_options_voice") ) && localvarbool("ui_showApply") || localvarbool("ui_showAudioApply")) \
{ \
open "all_restart_popmenu"; \
} \
execnow "profile_menuDvarsFinish; resetViewport"; \
setLocalVarString ui_hint_text "@NULL_EMPTY";
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 SIDEBAR_RIGHT
#include "ui_mp/bg.inc"
#include "ui_mp/leftside_options.inc"
PC_OPTIONS_SECTION_TITLE(MENU_TITLE)
PC_OPTIONS_DVARYESNO(0, "@MENU_SHOW_BLOOD", "cg_blood", ;, when(0))
PC_OPTIONS_DVARYESNO_RAW(1, "@MENU_NEWCOLORS", "cg_newColors", ;, "@MPUI_DESC_NEWCOLORS", when(0), 1)
PC_OPTIONS_SEPERATOR(1)
PC_OPTIONS_DVARYESNO_RAW(2, "@MENU_AUTORECORD", "cl_autoRecord", ;, "@MPUI_DESC_AUTORECORD", when(0), 1)
PC_OPTIONS_EDITFIELD_RAW(3, "@MENU_DEMOS_KEEP", "cl_demosKeep", 3, "@MPUI_DESC_DEMOS_KEEP", 1)
}
+92
View File
@@ -0,0 +1,92 @@
#include "ui/menudef.h"
#include "ui_mp/main.inc"
#include "ui_mp/pc_options.inc"
#define MENU_NAME "pc_options_look"
#define MENU_TITLE "@MENU_LOOK"
#undef CHOICE_GROUP
#define CHOICE_GROUP MENU_NAME
#define CLOSE_MENUS \
close "controls_multi"; \
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_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)
itemDef
{
rect 422 28 344 20 HORIZONTAL_ALIGN_LEFT VERTICAL_ALIGN_TOP
decoration
visible 1
foreColor CHOICE_TEXTCOLOR
disableColor 0.6 0.55 0.55 1
textFont UI_FONT_SMALL
textAlign ITEM_ALIGN_TOP_RIGHT
textAlignX -190
textScale CHOICE_TEXTSIZE
exp text(dvarString("sensitivity"))
}
PC_OPTIONS_DVARSLIDER(0, "@MENU_MOUSE_SENSITIVITY", "sensitivity", 0.01, 100, 5, ;, ;, ;, when(0))
PC_OPTIONS_DVARYESNO(1, "@MENU_INVERT_MOUSE", "ui_mousePitch", uiscript updateui_mousePitch;, when(0))
PC_OPTIONS_SEPERATOR(1)
PC_OPTIONS_DVARYESNO(2, "@MENU_SMOOTH_MOUSE", "m_filter", ;, when(0))
PC_OPTIONS_DVARYESNO(3, "@MENU_FREE_LOOK", "cl_freelook", ;, when(0))
PC_OPTIONS_KEYBINDING(4, "@MENU_LOOK_UP", "+lookup")
PC_OPTIONS_KEYBINDING(5, "@MENU_LOOK_DOWN", "+lookdown")
PC_OPTIONS_KEYBINDING(6, "@MENU_HOLD_MOUSE_LOOK", "+mlook")
PC_OPTIONS_KEYBINDING(7, "@MENU_CENTER_VIEW", "centerview")
PC_OPTIONS_KEYBINDSTATUS
ITEM_BUTTON_BACK(ON_MENU_ESC)
}
@@ -0,0 +1,88 @@
#include "ui/menudef.h"
#include "ui_mp/main.inc"
#include "ui_mp/pc_options.inc"
#define MENU_NAME "pc_options_movement"
#define MENU_TITLE "@MENU_MOVEMENT"
#undef CHOICE_GROUP
#define CHOICE_GROUP MENU_NAME
#define CLOSE_MENUS \
close "controls_multi"; \
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_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_FORWARD", "+forward")
PC_OPTIONS_KEYBINDING(1, "@MENU_MOVE_BACK", "+back")
PC_OPTIONS_KEYBINDING(2, "@MENU_MOVE_LEFT", "+moveleft")
PC_OPTIONS_KEYBINDING(3, "@MENU_MOVE_RIGHT", "+moveright")
PC_OPTIONS_KEYBINDING(4, "@MENU_STANDJUMP", "+gostand")
PC_OPTIONS_KEYBINDING(5, "@MENU_CROUCH", "togglecrouch")
PC_OPTIONS_KEYBINDING(6, "@MENU_PRONE", "toggleprone")
PC_OPTIONS_KEYBINDING(7, "@MENU_SPRINT_HOLD_BREATH", "+breath_sprint")
PC_OPTIONS_SEPERATOR(7)
PC_OPTIONS_KEYBINDING(8, "@MENU_HOLD_DOWN_CROUCH", "+movedown")
PC_OPTIONS_KEYBINDING(9, "@MENU_HOLD_DOWN_PRONE", "+prone")
PC_OPTIONS_KEYBINDING(10, "@MENU_CHANGE_STANCE", "+stance")
PC_OPTIONS_KEYBINDING(11, "@MENU_SPRINT", "+sprint")
PC_OPTIONS_KEYBINDING(12, "@MENU_HOLD_BREATH", "+holdbreath")
PC_OPTIONS_KEYBINDING(13, "@MENU_TURN_LEFT", "+left")
PC_OPTIONS_KEYBINDING(14, "@MENU_TURN_RIGHT", "+right")
PC_OPTIONS_KEYBINDING(15, "@MENU_STRAFE", "+strafe")
ITEM_BUTTON_BACK(ON_MENU_ESC)
PC_OPTIONS_KEYBINDSTATUS
ITEM_BUTTON_BACK(ON_MENU_ESC)
}
+99
View File
@@ -0,0 +1,99 @@
#include "ui/menudef.h"
#include "ui_mp/main.inc"
#include "ui_mp/pc_options.inc"
#define MENU_NAME "pc_options_multi"
#define MENU_TITLE "@MENU_MULTIPLAYER"
#undef CHOICE_GROUP
#define CHOICE_GROUP MENU_NAME
#define CLOSE_MENUS \
close "controls_multi"; \
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_video"; \
close "pc_options_voice";
#define ON_MENU_OPEN \
CLOSE_MENUS \
exec "setfromdvar ui_name name"; \
setLocalVarString ui_hint_text "@NULL_EMPTY"; \
setLocalVarBool ui_hint_display 1; \
execnow "profile_menuDvarsSetup; resetViewport"; \
setFocus "buttonMulti";
#define ON_MENU_CLOSE \
setLocalVarBool ui_hint_display 0; \
exec "setfromdvar name ui_name";
#define ON_MENU_ESC \
close self; \
if (!(menuisopen("pc_options_advanced_video") || menuisopen("pc_options_video") || menuisopen("pc_options_Audio") || menuisopen("pc_options_controls") || menuisopen("pc_options_voice") ) && localvarbool("ui_showPicApply") && !localvarbool("ui_showApply") && !localvarbool("ui_showAudioApply")) \
{ \
execnow "setfromdvar r_picmip ui_r_picmip"; \
execnow "setfromdvar r_picmip_bump ui_r_picmip_bump"; \
execnow "setfromdvar r_picmip_spec ui_r_picmip_spec"; \
execnow "setfromdvar r_picmip_manual ui_r_picmip_manual"; \
exec "wait; wait; r_applyPicmip"; \
setLocalVarBool "ui_showPicApply" (0); \
} \
if (!(menuisopen("pc_options_advanced_video") || menuisopen("pc_options_video") || menuisopen("pc_options_Audio") || menuisopen("pc_options_controls") || menuisopen("pc_options_voice") ) && localvarbool("ui_showApply") || localvarbool("ui_showAudioApply")) \
{ \
open "all_restart_popmenu"; \
} \
execnow "profile_menuDvarsFinish; resetViewport"; \
setLocalVarString ui_hint_text "@NULL_EMPTY";
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 SIDEBAR_RIGHT
#include "ui_mp/bg.inc"
#include "ui_mp/leftside_options.inc"
PC_OPTIONS_SECTION_TITLE(MENU_TITLE)
PC_OPTIONS_EDITFIELD(0, "@MENU_PLAYER_NAME", "ui_name", 15)
PC_OPTIONS_SEPERATOR(0)
PC_OPTIONS_FLOATLIST_RAW(1, "@MENU_MAXPACKETS", "cl_maxpackets", {"30" 30 "100" 100 "125" 125}, ;, ;, when(0), 1)
PC_OPTIONS_FLOATLIST_RAW(2, "@MENU_SNAPS", "snaps", {"20" 20 "30" 30}, ;, ;, when(0), 1)
PC_OPTIONS_SEPERATOR(2)
PC_OPTIONS_DVARYESNO(3, "@MENU_LAGOMETER", "drawLagometer", ;, when(0))
PC_OPTIONS_STRLIST_RAW(4, "@MENU_DRAWFPS", "cg_drawFPS", {"Off"; "Off"; "Simple"; "Simple"; "SimpleRanges"; "SimpleRanges"; "Verbose"; "Verbose"; "Verbose+Viewpos"; "Verbose+Viewpos"}, ;, ;, when(0), 1)
PC_OPTIONS_DVARYESNO(5, "@MENU_FPSLABELS", "cg_drawFPSLabels", ;, when(0))
PC_OPTIONS_SEPERATOR(5)
PC_OPTIONS_DVARYESNO_RAW(6, "@MENU_STREAMFRIENDLY_UI", "ui_streamFriendly", ;, "@MPUI_DESC_STREAM_FRIENDLY_UI", when(0), 1)
PC_OPTIONS_FLOATLIST_RAW(7, "@MENU_FRIENDNOTIFY", "cl_notifyFriendState", {"Always" -1 "Never" 0 "in Menu" 1}, ;, "@MPUI_DESC_FRIENDNOTIFY", when(dvarBool("ui_streamFriendly")), 1)
}
+138
View File
@@ -0,0 +1,138 @@
#include "ui/menudef.h"
#include "ui_mp/main.inc"
#include "ui_mp/pc_options.inc"
#define MENU_NAME "pc_options_video"
#define MENU_TITLE "@MENU_VIDEO"
#undef CHOICE_GROUP
#define CHOICE_GROUP MENU_NAME
#define CLOSE_MENUS \
close "controls_multi"; \
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_voice";
#define ON_MENU_OPEN \
CLOSE_MENUS \
setLocalVarString ui_hint_text "@NULL_EMPTY"; \
execnow "profile_menuDvarsSetup; resetViewport"; \
setLocalVarBool "ui_hideBack" ( 1 ); \
if (!localvarint("ui_showApply") && !localvarint("ui_showPicApply")) \
{ \
exec "exec options_graphics.cfg"; \
exec "setfromdvar ui_r_fullscreen r_fullscreen"; \
} \
execnow "profile_menuDvarsSetup; resetViewport"; \
setFocus "buttonVideo";
#define ON_MENU_CLOSE \
execnow "profile_menuDvarsFinish; resetViewport"; \
setLocalVarBool "ui_hideBack" (0); \
execOnDvarIntValue "r_lodScaleRigid" 2 "set r_lodScaleSkinned 4; set r_lodBiasSkinned -200; set r_lodBiasRigid -100"; \
execOnDvarIntValue "r_lodScaleRigid" 1 "set r_lodScaleSkinned 1; set r_lodBiasSkinned 0; set r_lodBiasRigid 0"; \
exec "setfromdvar r_fullscreen ui_r_fullscreen"; \
setLocalVarString ui_hint_text "@NULL_EMPTY";
#define ON_MENU_ESC \
close self; \
if (!(menuisopen("pc_options_advanced_video") || menuisopen("pc_options_video") || menuisopen("pc_options_audio") || menuisopen("pc_options_controls") || menuisopen("pc_options_voice")) && localvarbool("ui_showPicApply") && !localvarbool("ui_showApply") && !localvarbool("ui_showAudioApply")) \
{ \
execnow "setfromdvar r_picmip ui_r_picmip"; \
execnow "setfromdvar r_picmip_bump ui_r_picmip_bump"; \
execnow "setfromdvar r_picmip_spec ui_r_picmip_spec"; \
execnow "setfromdvar r_picmip_manual ui_r_picmip_manual"; \
exec "wait; wait; r_applyPicmip"; \
setLocalVarBool "ui_showPicApply" (0); \
} \
if (!(menuisopen("pc_options_advanced_video") || menuisopen("pc_options_video") || menuisopen("pc_options_audio") || menuisopen("pc_options_controls") || menuisopen("pc_options_voice")) && localvarbool("ui_showApply") || localvarbool("ui_showAudioApply")) \
{ \
open "all_restart_popmenu"; \
} \
execnow "profile_menuDvarsFinish; resetViewport"; \
setLocalVarString ui_hint_text "@NULL_EMPTY";
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 SIDEBAR_RIGHT
#include "ui_mp/bg.inc"
#include "ui_mp/leftside_options.inc"
PC_OPTIONS_SECTION_TITLE(MENU_TITLE)
PC_OPTIONS_DVARENUMLIST(0, "@MENU_VIDEO_MODE", "ui_r_mode", "r_mode", ACTION_SHOW_APPLY, when((dvarBool("cl_ingame") || dvarBool("sv_running") || inlobby())))
PC_OPTIONS_DVARYESNO_RAW(1, "@MENU_D3D9EX", "r_useD3D9Ex", ACTION_SHOW_APPLY, "@MPUI_DESC_D3D9EX", when((dvarBool("cl_ingame") || dvarBool("sv_running") || inlobby())), 1)
PC_OPTIONS_SEPERATOR(1)
PC_OPTIONS_DVARYESNO(2, "@MENU_FULLSCREEN", "ui_r_fullscreen", ACTION_SHOW_APPLY exec "vid_xpos 0;vid_ypos 0";, when((dvarBool("cl_ingame") || dvarBool("sv_running") || inlobby())))
PC_OPTIONS_DVARYESNO_RAW(3, "@MENU_NOBORDER", "r_noborder", ACTION_SHOW_APPLY exec "vid_xpos 0;vid_ypos 0";, "@MPUI_DESC_NOBORDER", when((dvarBool("cl_ingame") || dvarBool("sv_running") || inlobby())), 1)
PC_OPTIONS_DVARYESNO_RAW(4, "@MENU_NATIVECURSOR", "ui_nativeCursor", ;, "@MPUI_DESC_NATIVECURSOR", when(0), 1)
PC_OPTIONS_SEPERATOR(4)
PC_OPTIONS_DVARSLIDER_RAW(5, "@MENU_BRIGHTNESS", "r_gamma", 0.5, 3, 0.8, setLocalVarBool ui_brightness_hint_display (1);, setLocalVarBool ui_brightness_hint_display (0);, execNow "profile_menuDvarsFinish";, when((dvarBool("cl_ingame") || dvarBool("sv_running") || inlobby())), 1, 0)
PC_OPTIONS_FLOATLIST_RAW(6, "@MENU_FOV", "cg_fov", {"65 (Default)" 65 "80" 80 "90" 90 "120" 120}, execNow "profile_menuDvarsFinish";, "@MPUI_DESC_FOV", when(0), 1)
PC_OPTIONS_FLOATLIST_RAW(7, "@MENU_FOVSCALE", "cg_fovscale", {"1 (Default)" 1 "1.1" 1.1 "1.2" 1.2 "1.3" 1.3 "1.4" 1.4 "1.5" 1.5 "1.6" 1.6 "1.7" 1.7 "1.8" 1.8 "1.9" 1.9 "2" 2}, execNow "profile_menuDvarsFinish";, "@MPUI_DESC_FOVSCALE", when(0), 1)
PC_OPTIONS_FLOATLIST_RAW(8, "@MENU_MAXFPS", "com_maxfps", { "30" 30 "85 (Default)" 85 "125" 125 "250" 250 "333" 333 "Unlimited" 0}, ;, "@MPUI_DESC_MAXFPS", when(0), 1)
PC_OPTIONS_SEPERATOR(8)
itemDef
{
rect 260 CHOICE_Y(9) 225 20 HORIZONTAL_ALIGN_LEFT VERTICAL_ALIGN_TOP
style WINDOW_STYLE_FILLED
foreColor CHOICE_TEXTCOLOR
disablecolor 0.6 0.55 0.55 1
background "menu_setting_selection_bar"
type ITEM_TYPE_BUTTON
textFont UI_FONT_SMALL
textAlign ITEM_ALIGN_TOP_RIGHT
textAlignX -60
textScale CHOICE_TEXTSIZE
text "@MENU_ADVANCED_VIDEO"
visible 1
mouseEnter
{
play CHOICE_FOCUS_SOUND;
}
onFocus
{
setItemColor self backColor 0 0 0 1;
}
leaveFocus
{
setItemColor self backColor 0 0 0 0;
}
action
{
open "pc_options_advanced_video";
close self;
}
}
}
+79
View File
@@ -0,0 +1,79 @@
#include "ui/menudef.h"
#include "ui_mp/main.inc"
#define MENU_NAME "pc_store"
#define MENU_MUSIC "music_mainmenu_mp"
#define MENU_TITLE "@MENU_STORE_CAPS"
#undef CHOICE_GROUP
#define CHOICE_GROUP MENU_NAME
#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
#define HAS_DLC1 dvarbool(isDlcInstalled_1)
#define HAS_DLC2 dvarbool(isDlcInstalled_2)
#define HAS_DLC3 dvarbool(isDlcInstalled_3)
#define HAS_DLC4 dvarbool(isDlcInstalled_4)
#define HAS_DLC5 dvarbool(isDlcInstalled_5)
#define HAS_DLC6 dvarbool(isDlcInstalled_6)
#define HAS_DLC7 dvarbool(isDlcInstalled_7)
#define HAS_DLC8 dvarbool(isDlcInstalled_8)
#define ON_MENU_OPEN \
setLocalVarString ui_info_name ""; \
setLocalVarString ui_info_desc ""; \
setLocalVarString ui_info_icon ""; \
setFocus "button_dlc1";
menuDef
{
name MENU_NAME
fullscreen 1
rect 0 0 640 480
foreColor CHOICE_TEXTCOLOR
focusColor CHOICE_TEXTCOLOR
soundLoop MENU_MUSIC
fadeCycle 1
fadeClamp 1
fadeAmount 0.1
MENU_ON_OPEN(ON_MENU_OPEN)
MENU_ON_ESC(close self;)
#define DISABLE_SIDEBAR
#include "ui_mp/bg.inc"
MENU_ITEM_TITLE(0)
MENU_BACKGROUND_FRAME
MENU_BACKGROUND_PANEL_RIGHT
MENU_CHOICE_BUTTON_ADVANCED_VIS(0, button_dlc1, "@PATCH_DLC1", uiScript "downloadDLC" 1, "preview_dlc1", "PATCH_DLC1", "PATCH_DESC_DLC1", 1)
MENU_CHOICE_NEWICON_VIS(0, when(!HAS_DLC1))
MENU_CHOICE_BUTTON_ADVANCED_VIS(1, button_dlc2, "@PATCH_DLC2", uiScript "downloadDLC" 2, "preview_dlc2", "PATCH_DLC2", "PATCH_DESC_DLC2", 1)
MENU_CHOICE_NEWICON_VIS(1, when(!HAS_DLC2))
MENU_CHOICE_HORIZONTAL_LINE(2)
MENU_CHOICE_BUTTON_ADVANCED_VIS(2, button_dlc4, "@PATCH_DLC4", uiScript "downloadDLC" 4, "preview_dlc4", "PATCH_DLC4", "PATCH_DESC_DLC4", 1)
MENU_CHOICE_NEWICON_VIS(2, when(!HAS_DLC4))
MENU_CHOICE_BUTTON_ADVANCED_VIS(3, button_dlc5, "@PATCH_DLC5", uiScript "downloadDLC" 5, "preview_dlc5", "PATCH_DLC5", "PATCH_DESC_DLC5", 1)
MENU_CHOICE_NEWICON_VIS(3, when(!HAS_DLC5))
MENU_CHOICE_BUTTON_ADVANCED_VIS(4, button_dlc7, "@PATCH_DLC7", uiScript "downloadDLC" 7, "preview_dlc7", "PATCH_DLC7", "PATCH_DESC_DLC7", 1)
MENU_CHOICE_NEWICON_VIS(4, when(!HAS_DLC7))
MENU_CHOICE_BUTTON_ADVANCED_VIS(5, button_dlc8, "@PATCH_DLC8", uiScript "downloadDLC" 8, "preview_dlc8", "PATCH_DLC8", "PATCH_DESC_DLC8", 1)
MENU_CHOICE_NEWICON_VIS(5, when(!HAS_DLC8))
MENU_CHOICE_HORIZONTAL_LINE(6)
MENU_CHOICE_BUTTON_ADVANCED_VIS(6, button_dlc3, "@PATCH_DLC3", uiScript "downloadDLC" 3, "preview_dlc3", "PATCH_DLC3", "PATCH_DESC_DLC3", 1)
MENU_CHOICE_NEWICON_VIS(6, when(!HAS_DLC3))
MENU_CHOICE_BUTTON_ADVANCED_VIS(7, button_dlc6, "@PATCH_DLC6", uiScript "downloadDLC" 6, "preview_dlc6", "PATCH_DLC6", "PATCH_DESC_DLC6", 1)
MENU_CHOICE_NEWICON_VIS(7, when(!HAS_DLC6))
ITEM_BUTTON_BACK(close self;)
}
@@ -0,0 +1,310 @@
{
menuDef
{
name "player_popup_publiclobby"
rect -150 -64 300 64 2 2
popup
legacySplitScreenScale
style 1
forecolor 1 1 1 1
backcolor 1 1 1 1
background "white"
focuscolor 1 1 1 1
onOpen
{
setLocalVarInt "ui_centerPopup" ( 1 );
}
onClose
{
setLocalVarInt "ui_centerPopup" ( 0 );
}
onEsc
{
close self;
}
itemDef
{
rect -1004 -544 1708 960 2 2
decoration
visible 1
style 1
forecolor 1 1 1 1
backcolor 0 0 0 0.35
background "white"
textscale 0.55
}
itemDef
{
rect -1004 -544 1708 960 2 2
decoration
visible 1
style 1
forecolor 1 1 1 1
backcolor 1 1 1 1
background "xpbar_stencilbase"
textscale 0.55
}
itemDef
{
rect 0 0 300 64 2 2
decoration
visible 1
style 1
forecolor 1 1 1 1
backcolor 0.5 0.5 0.5 1
background "white"
textscale 0.55
}
itemDef
{
rect -150 -64 1708 480 2 2
decoration
visible 1
style 3
forecolor 1 1 1 0.75
background "mw2_popup_bg_fogstencil"
textscale 0.55
exp rect x ( 0 - ( ( float( milliseconds( ) % 60000 ) / 60000 ) * ( 854 ) ) )
}
itemDef
{
rect -150 -64 -1708 -480 2 2
decoration
visible 1
style 3
forecolor 0.85 0.85 0.85 1
background "mw2_popup_bg_fogscroll"
textscale 0.55
exp rect x ( 0 - ( ( float( milliseconds( ) % 60000 ) / 60000 ) * ( 854 ) ) )
}
itemDef
{
rect 0 0 300 0 2 2
decoration
visible 1
style 3
forecolor 1 1 1 1
background "mockup_popup_bg_stencilfill"
textscale 0.55
exp rect h ( ( 24 + 2 * 20 ) )
}
itemDef
{
rect -150 -64 -1708 -480 2 2
decoration
visible 1
style 3
forecolor 1 1 1 0.75
background "mw2_popup_bg_fogstencil"
textscale 0.55
exp rect x ( ( - 854 ) + ( ( float( milliseconds( ) % 50000 ) / 50000 ) * ( 854 ) ) )
}
itemDef
{
rect -150 -64 -1708 -480 2 2
decoration
visible 1
style 3
forecolor 0.85 0.85 0.85 1
background "mw2_popup_bg_fogscroll"
textscale 0.55
exp rect x ( ( - 854 ) + ( ( float( milliseconds( ) % 50000 ) / 50000 ) * ( 854 ) ) )
}
itemDef
{
rect -150 -64 300 0 1 1
decoration
visible 1
style 3
forecolor 1 1 1 0
background "small_box_lightfx"
textscale 0.55
exp rect h ( ( 24 + 2 * 20 ) )
}
itemDef
{
rect -64 -64 64 64 2 2
decoration
visible 1
style 3
forecolor 0 0 0 1
background "drop_shadow_tl"
textscale 0.55
visible when ( 1 )
}
itemDef
{
rect 0 -64 300 64 2 2
decoration
visible 1
style 3
forecolor 0 0 0 1
background "drop_shadow_t"
textscale 0.55
visible when ( 1 )
}
itemDef
{
rect 300 -64 64 64 2 2
decoration
visible 1
style 3
forecolor 0 0 0 1
background "drop_shadow_tr"
textscale 0.55
visible when ( 1 )
}
itemDef
{
rect 300 0 64 0 2 2
decoration
visible 1
style 3
forecolor 0 0 0 1
background "drop_shadow_r"
textscale 0.55
exp rect h ( ( 24 + 2 * 20 ) )
visible when ( 1 )
}
itemDef
{
rect 300 0 64 64 2 2
decoration
visible 1
style 3
forecolor 0 0 0 1
background "drop_shadow_br"
textscale 0.55
exp rect y ( ( 0 - 0 ) + ( ( 24 + 2 * 20 ) ) )
visible when ( 1 )
}
itemDef
{
rect 0 0 300 64 2 2
decoration
visible 1
style 3
forecolor 0 0 0 1
background "drop_shadow_b"
textscale 0.55
exp rect y ( ( 0 - 0 ) + ( ( 24 + 2 * 20 ) ) )
visible when ( 1 )
}
itemDef
{
rect -64 0 64 64 2 2
decoration
visible 1
style 3
forecolor 0 0 0 1
background "drop_shadow_bl"
textscale 0.55
exp rect y ( ( 0 - 0 ) + ( ( 24 + 2 * 20 ) ) )
visible when ( 1 )
}
itemDef
{
rect -64 0 64 0 2 2
decoration
visible 1
style 3
forecolor 0 0 0 1
background "drop_shadow_l"
textscale 0.55
exp rect h ( ( 24 + 2 * 20 ) )
visible when ( 1 )
}
itemDef
{
rect 0 0 300 24 2 2
decoration
visible 1
style 1
forecolor 1 1 1 1
background "gradient_fadein"
textfont 9
textalign 5
textscale 0.375
text "@MPUI_PLAYER_OPTIONS"
}
itemDef
{
name "player_add_friend"
rect 6 24 292 20 2 2
visible 1
group "mw2_popup_button"
style 1
forecolor 1 1 1 1
disablecolor 0.6 0.55 0.55 1
background "popup_button_selection_bar"
type 1
textfont 3
textalign 6
textalignx -24
textscale 0.375
text "@MENU_FRIEND_ADD"
//disabled when ( dvarbool( "party_iamselected" ) || !dvarbool( "party_playervisible" ) )
disabled when ( 1 )
action
{
play "mouse_click";
// TODO: add friend here
close self;
}
onFocus
{
play "mouse_over";
if ( dvarstring( "gameMode" ) != "mp" )
{
setItemColor "mw2_popup_button" backcolor 0 0 0 0;
}
setItemColor self backcolor 0 0 0 1;
setLocalVarBool "ui_popupAButton" ( 1 );
}
leaveFocus
{
setItemColor self backcolor 1 1 1 0;
setLocalVarBool "ui_popupAButton" ( 0 );
}
}
itemDef
{
name "player_mute"
rect 6 44 292 20 2 2
visible 1
group "mw2_popup_button"
style 1
forecolor 1 1 1 1
disablecolor 0.6 0.55 0.55 1
background "popup_button_selection_bar"
type 1
textfont 3
textalign 6
textalignx -24
textscale 0.375
text "@XBOXLIVE_PLAYER_MUTE"
disabled when ( dvarbool( "party_iamselected" ) || !dvarbool( "party_playervisible" ) )
action
{
play "mouse_click";
togglePlayerMute;
close self;
}
onFocus
{
play "mouse_over";
if ( dvarstring( "gameMode" ) != "mp" )
{
setItemColor "mw2_popup_button" backcolor 0 0 0 0;
}
setItemColor self backcolor 0 0 0 1;
setLocalVarBool "ui_popupAButton" ( 1 );
}
leaveFocus
{
setItemColor self backcolor 1 1 1 0;
setLocalVarBool "ui_popupAButton" ( 0 );
}
}
}
}
+78
View File
@@ -0,0 +1,78 @@
{
menuDef
{
name "playerdataread"
rect 0 0 0 0 0 0
decoration
forecolor 1 1 1 1
fadeCycle 1
fadeClamp 1
fadeAmount 0.1
onOpen
{
setLocalVarInt "oldClassIndex" ( localvarint( "classIndex" ) );
setDvar "ui_checkclass" 0;
open "resetclass";
setDvar "ui_checkclass" 1;
open "resetclass";
setDvar "ui_checkclass" 2;
open "resetclass";
setDvar "ui_checkclass" 3;
open "resetclass";
setDvar "ui_checkclass" 4;
open "resetclass";
setDvar "ui_checkclass" 5;
open "resetclass";
setDvar "ui_checkclass" 6;
open "resetclass";
setDvar "ui_checkclass" 7;
open "resetclass";
setDvar "ui_checkclass" 8;
open "resetclass";
setDvar "ui_checkclass" 9;
open "resetclass";
setDvar "ui_checkclass" 10;
open "resetclass";
setDvar "ui_checkclass" 11;
open "resetclass";
setDvar "ui_checkclass" 12;
open "resetclass";
setDvar "ui_checkclass" 13;
open "resetclass";
setDvar "ui_checkclass" 14;
open "resetclass";
exec "checkClasses";
setLocalVarInt "classIndex" ( localvarint( "oldClassIndex" ) );
if ( !isitemunlocked( getplayerdata( "killstreaks" , 0 ) ) && getplayerdata( "killstreaks" , 0 ) != "none" )
{
setLocalVarString "temp" ( debugprint( "Stats" , "Killstreak " + getplayerdata( "killstreaks" , 0 ) + " locked for class " + localvarint( "classIndex" ) + "; resetting" ) );
setPlayerData( "killstreaks" , 0 , "none" );
}
setPlayerData( "killstreakUnlocked" , "uav" , "true" );
if ( !isitemunlocked( getplayerdata( "killstreaks" , 1 ) ) && getplayerdata( "killstreaks" , 1 ) != "none" )
{
setLocalVarString "temp" ( debugprint( "Stats" , "Killstreak " + getplayerdata( "killstreaks" , 1 ) + " locked for class " + localvarint( "classIndex" ) + "; resetting" ) );
setPlayerData( "killstreaks" , 1 , "none" );
}
setPlayerData( "killstreakUnlocked" , "airdrop" , "true" );
if ( !isitemunlocked( getplayerdata( "killstreaks" , 2 ) ) && getplayerdata( "killstreaks" , 2 ) != "none" )
{
setLocalVarString "temp" ( debugprint( "Stats" , "Killstreak " + getplayerdata( "killstreaks" , 2 ) + " locked for class " + localvarint( "classIndex" ) + "; resetting" ) );
setPlayerData( "killstreaks" , 2 , "none" );
}
setPlayerData( "killstreakUnlocked" , "predator_missile" , "true" );
setLocalVarInt "ui_tempVar" ( getplayerdata( "prestige" ) + 1 );
setPlayerData( "challengeState" , "ch_prestige" , "localVarInt" ( "ui_tempVar" ) );
setLocalVarInt "ui_tempVar" ( getplayerdata( "prestige" ) );
setPlayerData( "challengeProgress" , "ch_prestige" , "localVarInt" ( "ui_tempVar" ) );
if ( getplayerdata( "prestige" ) == 10 )
{
setPlayerData( "challengeState" , "ch_prestige_10" , 2 ) setPlayerData( "challengeProgress" , "ch_prestige_10" , 1 );
}
close self;
}
}
}
+233
View File
@@ -0,0 +1,233 @@
#define POPUP_BACKGROUND_BASE \
itemDef \
{ \
rect 0 0 POPMENU_WIDTH POPMENU_HEIGHT HORIZONTAL_ALIGN_CENTER VERTICAL_ALIGN_CENTER \
style WINDOW_STYLE_FILLED \
foreColor CHOICE_TEXTCOLOR \
backColor 0 0 0 0.35 \
background "white" \
decoration \
visible 1 \
} \
itemDef \
{ \
rect -1004 -564 1708 960 HORIZONTAL_ALIGN_CENTER VERTICAL_ALIGN_CENTER \
style WINDOW_STYLE_FILLED \
foreColor CHOICE_TEXTCOLOR \
backColor 1 1 1 1 \
background "xpbar_stencilbase" \
decoration \
visible 1 \
} \
itemDef \
{ \
rect 0 0 POPMENU_WIDTH POPMENU_HEIGHT HORIZONTAL_ALIGN_CENTER VERTICAL_ALIGN_CENTER \
style WINDOW_STYLE_FILLED \
foreColor CHOICE_TEXTCOLOR \
backColor 0.5 0.5 0.5 1 \
background "white" \
decoration \
visible 1 \
} \
itemDef \
{ \
rect -150 -44 1708 480 HORIZONTAL_ALIGN_CENTER VERTICAL_ALIGN_CENTER \
decoration \
visible 1 \
style WINDOW_STYLE_SHADER \
foreColor 1 1 1 0.75 \
background "mw2_popup_bg_fogstencil" \
exp rect x (0 - ((float(milliseconds() % 60000) / 60000) * (854))) \
} \
itemDef \
{ \
rect -150 -110 -1708 -480 HORIZONTAL_ALIGN_CENTER VERTICAL_ALIGN_CENTER \
decoration \
visible 1 \
style WINDOW_STYLE_SHADER \
foreColor 0.85 0.85 0.85 1 \
background "mw2_popup_bg_fogscroll" \
exp rect x (0 - ((float(milliseconds() % 60000) / 60000) * (854))) \
} \
itemDef \
{ \
rect 0 0 POPMENU_WIDTH POPMENU_HEIGHT HORIZONTAL_ALIGN_CENTER VERTICAL_ALIGN_CENTER \
decoration \
visible 1 \
style WINDOW_STYLE_SHADER \
foreColor CHOICE_TEXTCOLOR \
background "mockup_popup_bg_stencilfill" \
} \
itemDef \
{ \
rect -150 -44 -1708 -480 HORIZONTAL_ALIGN_CENTER VERTICAL_ALIGN_CENTER \
decoration \
visible 1 \
style WINDOW_STYLE_SHADER \
foreColor 1 1 1 0.75 \
background "mw2_popup_bg_fogstencil" \
exp rect x ((0 - 854) + ((float(milliseconds() % 50000) / 50000) * (854))) \
} \
itemDef \
{ \
rect -150 -110 -1708 -480 HORIZONTAL_ALIGN_CENTER VERTICAL_ALIGN_CENTER \
decoration \
visible 1 \
style WINDOW_STYLE_SHADER \
foreColor 0.85 0.85 0.85 1 \
background "mw2_popup_bg_fogscroll" \
exp rect x ((0 - 854) + ((float(milliseconds() % 50000) / 50000) * (854))) \
} \
itemDef \
{ \
rect -150 -44 POPMENU_WIDTH 0 WINDOW_BORDER_FULL WINDOW_STYLE_FILLED \
decoration \
visible 1 \
style WINDOW_STYLE_SHADER \
foreColor 1 1 1 0 \
background "small_box_lightfx" \
exp rect h ((24 + 3 * 20)) \
} \
itemDef \
{ \
rect -64 -64 64 64 HORIZONTAL_ALIGN_CENTER VERTICAL_ALIGN_CENTER \
decoration \
visible 1 \
style WINDOW_STYLE_SHADER \
foreColor 0 0 0 1 \
background "drop_shadow_tl" \
} \
itemDef \
{ \
rect 0 -64 POPMENU_WIDTH 64 HORIZONTAL_ALIGN_CENTER VERTICAL_ALIGN_CENTER \
decoration \
visible 1 \
style WINDOW_STYLE_SHADER \
foreColor 0 0 0 1 \
background "drop_shadow_t" \
} \
itemDef \
{ \
rect POPMENU_WIDTH -64 64 64 HORIZONTAL_ALIGN_CENTER VERTICAL_ALIGN_CENTER \
decoration \
visible 1 \
style WINDOW_STYLE_SHADER \
foreColor 0 0 0 1 \
background "drop_shadow_tr" \
} \
itemDef \
{ \
rect POPMENU_WIDTH 0 64 POPMENU_HEIGHT HORIZONTAL_ALIGN_CENTER VERTICAL_ALIGN_CENTER \
decoration \
visible 1 \
style WINDOW_STYLE_SHADER \
foreColor 0 0 0 1 \
background "drop_shadow_r" \
} \
itemDef \
{ \
rect POPMENU_WIDTH POPMENU_HEIGHT 64 64 HORIZONTAL_ALIGN_CENTER VERTICAL_ALIGN_CENTER \
decoration \
visible 1 \
style WINDOW_STYLE_SHADER \
foreColor 0 0 0 1 \
background "drop_shadow_br" \
} \
itemDef \
{ \
rect 0 POPMENU_HEIGHT POPMENU_WIDTH 64 HORIZONTAL_ALIGN_CENTER VERTICAL_ALIGN_CENTER \
decoration \
visible 1 \
style WINDOW_STYLE_SHADER \
foreColor 0 0 0 1 \
background "drop_shadow_b" \
} \
itemDef \
{ \
rect -64 POPMENU_HEIGHT 64 64 HORIZONTAL_ALIGN_CENTER VERTICAL_ALIGN_CENTER \
decoration \
visible 1 \
style WINDOW_STYLE_SHADER \
foreColor 0 0 0 1 \
background "drop_shadow_bl" \
} \
itemDef \
{ \
rect -64 0 64 POPMENU_HEIGHT HORIZONTAL_ALIGN_CENTER VERTICAL_ALIGN_CENTER \
decoration \
visible 1 \
style WINDOW_STYLE_SHADER \
foreColor 0 0 0 1 \
background "drop_shadow_l" \
}
#define POPUP_TITLE(textArg) \
itemDef \
{ \
rect 0 0 POPMENU_WIDTH 18 HORIZONTAL_ALIGN_CENTER VERTICAL_ALIGN_CENTER \
style WINDOW_STYLE_FILLED \
foreColor CHOICE_TEXTCOLOR \
backColor 0 0 0 0.7 \
background "gradient_fadein" \
textFont 9 \
textAlign ITEM_ALIGN_LEGACY_CENTER \
textAlignY 18 \
textScale CHOICE_TEXTSIZE \
decoration \
visible 1 \
exp text(textArg) \
}
#define POPUP_TITLE2(textArg) \
itemDef \
{ \
rect 0 0 POPMENU_WIDTH 18 HORIZONTAL_ALIGN_CENTER VERTICAL_ALIGN_CENTER \
foreColor CHOICE_TEXTCOLOR \
textFont 9 \
textAlign ITEM_ALIGN_LEGACY_CENTER \
textAlignY 18 \
textScale CHOICE_TEXTSIZE \
decoration \
visible 1 \
exp text(textArg) \
}
#define POPUP_BUTTON_FOOTER(posY, textArg, actionArg) \
POPUP_BUTTON_FOOTER_VIS(posY, textArg, actionArg, 1)
#define POPUP_BUTTON_FOOTER_VIS(posY, textArg, actionArg, visArg) \
itemDef \
{ \
rect 6 posY (POPMENU_WIDTH - 8) 20 HORIZONTAL_ALIGN_CENTER VERTICAL_ALIGN_CENTER \
group "mw2_popup_button" \
style WINDOW_STYLE_FILLED \
type ITEM_TYPE_BUTTON \
foreColor CHOICE_TEXTCOLOR \
disableColor 0.6 0.55 0.55 1 \
background "popup_button_selection_bar" \
textFont UI_FONT_SMALL \
textAlign ITEM_ALIGN_TOP_RIGHT \
textAlignX -24 \
textScale CHOICE_TEXTSIZE \
text textArg \
visible visArg \
action \
{ \
play CHOICE_CLICK_SOUND; \
actionArg \
} \
mouseEnter \
{ \
play CHOICE_FOCUS_SOUND; \
} \
onFocus \
{ \
setItemColor self backColor 0 0 0 1; \
setLocalVarBool "ui_popupAButton" (1); \
} \
leaveFocus \
{ \
setItemColor self backColor 0 0 0 0; \
setLocalVarBool "ui_popupAButton" (0); \
} \
}
@@ -0,0 +1,411 @@
#include "ui_mp/emz_macros.inc"
{
menuDef
{
name "popup_cac_assault_primary"
rect 0 0 854 204 1 1
style 1
popup
forecolor 1 1 1 0
backcolor 1 1 1 0
background "white"
focuscolor 1 1 1 1
fadeCycle 1
fadeClamp 1
fadeAmount 0.1
popup
outOfBoundsClick
visible when ( localvarint( "ui_tabDepth" ) == localvarint( "ui_popup_cac_assault_primary_tabDepth" ) )
exp rect y ( localvarfloat( "ui_popupYPos" ) + localvarint( "ui_tabDepth" ) * 20 )
onOpen
{
setfocus "cac_weapon_m4";
setLocalVarInt "ui_tabDepth" ( localvarint( "ui_tabDepth" ) + 1 );
setLocalVarInt "ui_popup_cac_assault_primary_tabDepth" ( localvarint( "ui_tabDepth" ) );
CLASS_FOCUS("m4")
CLASS_FOCUS("famas")
CLASS_FOCUS("scar")
CLASS_FOCUS("tavor")
CLASS_FOCUS("fal")
CLASS_FOCUS("m16")
CLASS_FOCUS("masada")
CLASS_FOCUS("fn2000")
CLASS_FOCUS("ak47")
CLASS_FOCUS("ak47classic")
}
onClose
{
setLocalVarInt "ui_tabDepth" ( localvarint( "ui_tabDepth" ) - 1 );
}
onEsc
{
close self;
}
#define ITEMNUM 10
#include "ui_mp/popup_cac_background.inc"
CAC_PRIMARY_WEAPON(0,"m4")
CAC_PRIMARY_WEAPON(1,"famas")
CAC_PRIMARY_WEAPON(2,"scar")
CAC_PRIMARY_WEAPON(3,"tavor")
CAC_PRIMARY_WEAPON(4,"fal")
CAC_PRIMARY_WEAPON(5,"m16")
CAC_PRIMARY_WEAPON(6,"masada")
CAC_PRIMARY_WEAPON(7,"fn2000")
CAC_PRIMARY_WEAPON(8,"ak47")
CAC_PRIMARY_WEAPON(9,"ak47classic")
itemDef
{
rect -56 0 200 204 2 1
style 3
decoration
visible 1
forecolor 1 1 1 0.5
background "small_box_lightfx"
textscale 0.55
}
itemDef
{
rect -56 0 200 184 2 1
decoration
visible 1
forecolor 1 1 1 1
textfont 9
textalign 4
textalignx 4
textscale 0.375
exp text ( "@" + tablelookup( "mp/statsTable.csv" , 4 , localvarstring( "ui_selected_ref" ) , 3 ) )
}
itemDef
{
rect -56 10 200 100 2 1
style 3
decoration
visible 1
forecolor 1 1 1 1
textscale 0.55
exp material ( tablelookup( "mp/statsTable.csv" , 4 , localvarstring( "ui_selected_ref" ) , 6 ) )
}
itemDef
{
rect -56 0 200 184 2 1
decoration
autowrapped
visible 1
forecolor 1 1 1 0.65
textfont 3
textalign 4
textalignx 4
textaligny 104
textscale 0.375
visible when ( isitemunlocked( localvarstring( "ui_selected_ref" ) ) )
exp text ( "@" + tablelookup( "mp/statstable.csv" , 4 , localvarstring( "ui_selected_ref" ) , 7 ) )
}
itemDef
{
rect -56 0 200 184 2 1
decoration
autowrapped
visible 1
forecolor 1 1 1 0.65
textfont 3
textalign 4
textalignx 4
textaligny 104
textscale 0.375
visible when ( !isitemunlocked( localvarstring( "ui_selected_ref" ) ) )
exp text ( "@" + tablelookup( "mp/rankTable.csv" , 0 , tablelookup( "mp/unlockTable.csv" , 0 , localvarstring( "ui_selected_ref" ) , 2 ) , 17 ) )
}
itemDef
{
rect -56 0 200 184 2 1
decoration
autowrapped
visible 1
forecolor 1 1 1 0.65
textfont 3
textalign 4
textalignx 4
textaligny 144
textscale 0.375
text "@PLATFORM_VIEW_CHALLENGES"
visible when ( isitemunlocked( localvarstring( "ui_selected_ref" ) ) && ( tablelookup( "mp/challengeTable.csv" , 6 , localvarstring( "ui_selected_ref" ) , 4 ) ) != "" )
}
itemDef
{
rect -128 22 120 4 3 1
style 1
decoration
visible 1
forecolor 1 1 1 0.65
backcolor 0 0 0 1
background "gradient_fadein"
textfont 3
textalign 6
textaligny -20
textscale 0.375
text "@MPUI_ACCURACY"
visible when ( tablelookup( "mp/statsTable.csv" , 4 , localvarstring( "ui_selected_ref" ) , 22 ) && 1 )
}
itemDef
{
rect -128 22 120 2 3 1
style 3
decoration
visible 1
forecolor 0.75 1 0.7 0.85
background "white"
textscale 0.55
exp rect w ( ( tablelookup( "mp/statsTable.csv" , 4 , localvarstring( "ui_selected_ref" ) , 22 ) / 100 ) * 120 )
visible when ( tablelookup( "mp/statsTable.csv" , 4 , localvarstring( "ui_selected_ref" ) , 22 ) && 1 )
}
itemDef
{
rect -128 22 120 2 3 1
style 3
decoration
visible 1
forecolor 0.85 0.85 0.85 1
background "gradient_fadein"
textscale 0.55
exp rect w ( ( tablelookup( "mp/statsTable.csv" , 4 , localvarstring( "ui_selected_ref" ) , 22 ) / 100 ) * 120 )
visible when ( tablelookup( "mp/statsTable.csv" , 4 , localvarstring( "ui_selected_ref" ) , 22 ) && 1 )
}
itemDef
{
rect -128 22 120 2 3 1
style 3
decoration
visible 1
forecolor 1 1 0.25 0.65
background "white"
textscale 0.55
exp rect x ( - 64 + ( 0 - 120 * ( tablelookup( "mp/statsTable.csv" , 4 , localvarstring( "ui_selected_ref" ) , 22 ) / 100 ) ) + ( ( 0 - 120 * ( 0 / 100 ) ) * ( 0 < 0 ) ) )
exp rect w ( min( 120 * ( 0 / 100 ) , ( 1 - ( tablelookup( "mp/statsTable.csv" , 4 , localvarstring( "ui_selected_ref" ) , 22 ) / 100 ) ) * 120 ) )
exp forecolor r ( ( 0 < 0 ) * 0.45 + 0.25 )
exp forecolor g ( ( 0 > 0 ) * 0.45 + 0.25 )
visible when ( tablelookup( "mp/statsTable.csv" , 4 , localvarstring( "ui_selected_ref" ) , 22 ) && 1 )
}
itemDef
{
rect -128 48 120 4 3 1
style 1
decoration
visible 1
forecolor 1 1 1 0.65
backcolor 0 0 0 1
background "gradient_fadein"
textfont 3
textalign 6
textaligny -20
textscale 0.375
text "@MPUI_DAMAGE"
visible when ( tablelookup( "mp/statsTable.csv" , 4 , localvarstring( "ui_selected_ref" ) , 23 ) && 1 )
}
itemDef
{
rect -128 48 120 2 3 1
style 3
decoration
visible 1
forecolor 0.75 1 0.7 0.85
background "white"
textscale 0.55
exp rect w ( ( tablelookup( "mp/statsTable.csv" , 4 , localvarstring( "ui_selected_ref" ) , 23 ) / 100 ) * 120 )
visible when ( tablelookup( "mp/statsTable.csv" , 4 , localvarstring( "ui_selected_ref" ) , 23 ) && 1 )
}
itemDef
{
rect -128 48 120 2 3 1
style 3
decoration
visible 1
forecolor 0.85 0.85 0.85 1
background "gradient_fadein"
textscale 0.55
exp rect w ( ( tablelookup( "mp/statsTable.csv" , 4 , localvarstring( "ui_selected_ref" ) , 23 ) / 100 ) * 120 )
visible when ( tablelookup( "mp/statsTable.csv" , 4 , localvarstring( "ui_selected_ref" ) , 23 ) && 1 )
}
itemDef
{
rect -128 48 120 2 3 1
style 3
decoration
visible 1
forecolor 1 1 0.25 0.65
background "white"
textscale 0.55
exp rect x ( - 64 + ( 0 - 120 * ( tablelookup( "mp/statsTable.csv" , 4 , localvarstring( "ui_selected_ref" ) , 23 ) / 100 ) ) + ( ( 0 - 120 * ( 0 / 100 ) ) * ( 0 < 0 ) ) )
exp rect w ( min( 120 * ( 0 / 100 ) , ( 1 - ( tablelookup( "mp/statsTable.csv" , 4 , localvarstring( "ui_selected_ref" ) , 23 ) / 100 ) ) * 120 ) )
exp forecolor r ( ( 0 < 0 ) * 0.45 + 0.25 )
exp forecolor g ( ( 0 > 0 ) * 0.45 + 0.25 )
visible when ( tablelookup( "mp/statsTable.csv" , 4 , localvarstring( "ui_selected_ref" ) , 23 ) && 1 )
}
itemDef
{
rect -128 74 120 4 3 1
style 1
decoration
visible 1
forecolor 1 1 1 0.65
backcolor 0 0 0 1
background "gradient_fadein"
textfont 3
textalign 6
textaligny -20
textscale 0.375
text "@MPUI_RANGE"
visible when ( tablelookup( "mp/statsTable.csv" , 4 , localvarstring( "ui_selected_ref" ) , 24 ) && 1 )
}
itemDef
{
rect -128 74 120 2 3 1
style 3
decoration
visible 1
forecolor 0.75 1 0.7 0.85
background "white"
textscale 0.55
exp rect w ( ( tablelookup( "mp/statsTable.csv" , 4 , localvarstring( "ui_selected_ref" ) , 24 ) / 100 ) * 120 )
visible when ( tablelookup( "mp/statsTable.csv" , 4 , localvarstring( "ui_selected_ref" ) , 24 ) && 1 )
}
itemDef
{
rect -128 74 120 2 3 1
style 3
decoration
visible 1
forecolor 0.85 0.85 0.85 1
background "gradient_fadein"
textscale 0.55
exp rect w ( ( tablelookup( "mp/statsTable.csv" , 4 , localvarstring( "ui_selected_ref" ) , 24 ) / 100 ) * 120 )
visible when ( tablelookup( "mp/statsTable.csv" , 4 , localvarstring( "ui_selected_ref" ) , 24 ) && 1 )
}
itemDef
{
rect -128 74 120 2 3 1
style 3
decoration
visible 1
forecolor 1 1 0.25 0.65
background "white"
textscale 0.55
exp rect x ( - 64 + ( 0 - 120 * ( tablelookup( "mp/statsTable.csv" , 4 , localvarstring( "ui_selected_ref" ) , 24 ) / 100 ) ) + ( ( 0 - 120 * ( 0 / 100 ) ) * ( 0 < 0 ) ) )
exp rect w ( min( 120 * ( 0 / 100 ) , ( 1 - ( tablelookup( "mp/statsTable.csv" , 4 , localvarstring( "ui_selected_ref" ) , 24 ) / 100 ) ) * 120 ) )
exp forecolor r ( ( 0 < 0 ) * 0.45 + 0.25 )
exp forecolor g ( ( 0 > 0 ) * 0.45 + 0.25 )
visible when ( tablelookup( "mp/statsTable.csv" , 4 , localvarstring( "ui_selected_ref" ) , 24 ) && 1 )
}
itemDef
{
rect -128 100 120 4 3 1
style 1
decoration
visible 1
forecolor 1 1 1 0.65
backcolor 0 0 0 1
background "gradient_fadein"
textfont 3
textalign 6
textaligny -20
textscale 0.375
text "@MPUI_FIRE_RATE"
visible when ( tablelookup( "mp/statsTable.csv" , 4 , localvarstring( "ui_selected_ref" ) , 25 ) && 1 )
}
itemDef
{
rect -128 100 120 2 3 1
style 3
decoration
visible 1
forecolor 0.75 1 0.7 0.85
background "white"
textscale 0.55
exp rect w ( ( tablelookup( "mp/statsTable.csv" , 4 , localvarstring( "ui_selected_ref" ) , 25 ) / 100 ) * 120 )
visible when ( tablelookup( "mp/statsTable.csv" , 4 , localvarstring( "ui_selected_ref" ) , 25 ) && 1 )
}
itemDef
{
rect -128 100 120 2 3 1
style 3
decoration
visible 1
forecolor 0.85 0.85 0.85 1
background "gradient_fadein"
textscale 0.55
exp rect w ( ( tablelookup( "mp/statsTable.csv" , 4 , localvarstring( "ui_selected_ref" ) , 25 ) / 100 ) * 120 )
visible when ( tablelookup( "mp/statsTable.csv" , 4 , localvarstring( "ui_selected_ref" ) , 25 ) && 1 )
}
itemDef
{
rect -128 100 120 2 3 1
style 3
decoration
visible 1
forecolor 1 1 0.25 0.65
background "white"
textscale 0.55
exp rect x ( - 64 + ( 0 - 120 * ( tablelookup( "mp/statsTable.csv" , 4 , localvarstring( "ui_selected_ref" ) , 25 ) / 100 ) ) + ( ( 0 - 120 * ( 0 / 100 ) ) * ( 0 < 0 ) ) )
exp rect w ( min( 120 * ( 0 / 100 ) , ( 1 - ( tablelookup( "mp/statsTable.csv" , 4 , localvarstring( "ui_selected_ref" ) , 25 ) / 100 ) ) * 120 ) )
exp forecolor r ( ( 0 < 0 ) * 0.45 + 0.25 )
exp forecolor g ( ( 0 > 0 ) * 0.45 + 0.25 )
visible when ( tablelookup( "mp/statsTable.csv" , 4 , localvarstring( "ui_selected_ref" ) , 25 ) && 1 )
}
itemDef
{
rect -128 126 120 4 3 1
style 1
decoration
visible 1
forecolor 1 1 1 0.65
backcolor 0 0 0 1
background "gradient_fadein"
textfont 3
textalign 6
textaligny -20
textscale 0.375
text "@MPUI_MOBILITY"
visible when ( tablelookup( "mp/statsTable.csv" , 4 , localvarstring( "ui_selected_ref" ) , 26 ) && 1 )
}
itemDef
{
rect -128 126 120 2 3 1
style 3
decoration
visible 1
forecolor 0.75 1 0.7 0.85
background "white"
textscale 0.55
exp rect w ( ( tablelookup( "mp/statsTable.csv" , 4 , localvarstring( "ui_selected_ref" ) , 26 ) / 100 ) * 120 )
visible when ( tablelookup( "mp/statsTable.csv" , 4 , localvarstring( "ui_selected_ref" ) , 26 ) && 1 )
}
itemDef
{
rect -128 126 120 2 3 1
style 3
decoration
visible 1
forecolor 0.85 0.85 0.85 1
background "gradient_fadein"
textscale 0.55
exp rect w ( ( tablelookup( "mp/statsTable.csv" , 4 , localvarstring( "ui_selected_ref" ) , 26 ) / 100 ) * 120 )
visible when ( tablelookup( "mp/statsTable.csv" , 4 , localvarstring( "ui_selected_ref" ) , 26 ) && 1 )
}
itemDef
{
rect -128 126 120 2 3 1
style 3
decoration
visible 1
forecolor 1 1 0.25 0.65
background "white"
textscale 0.55
exp rect x ( - 64 + ( 0 - 120 * ( tablelookup( "mp/statsTable.csv" , 4 , localvarstring( "ui_selected_ref" ) , 26 ) / 100 ) ) + ( ( 0 - 120 * ( 0 / 100 ) ) * ( 0 < 0 ) ) )
exp rect w ( min( 120 * ( 0 / 100 ) , ( 1 - ( tablelookup( "mp/statsTable.csv" , 4 , localvarstring( "ui_selected_ref" ) , 26 ) / 100 ) ) * 120 ) )
exp forecolor r ( ( 0 < 0 ) * 0.45 + 0.25 )
exp forecolor g ( ( 0 > 0 ) * 0.45 + 0.25 )
visible when ( tablelookup( "mp/statsTable.csv" , 4 , localvarstring( "ui_selected_ref" ) , 26 ) && 1 )
}
}
}
+332
View File
@@ -0,0 +1,332 @@
#ifndef ITEMNUM
#define ITEMNUM 10
#endif
itemDef
{
rect -918 -480 1708 960 1 1
style 1
decoration
forecolor 1 1 1 1
backcolor 0 0 0 0.35
background "white"
visible when ( !localvarint( "ui_centerPopup" ) )
}
itemDef
{
rect -918 -480 1708 960 1 1
style 1
decoration
visible 1
forecolor 1 1 1 1
backcolor 1 1 1 1
background "xpbar_stencilbase"
}
itemDef
{
rect -64 0 854 184 1 1
style 1
exp rect H(4 + ITEMNUM * 20)
decoration
visible 1
forecolor 1 1 1 1
backcolor 0.5 0.5 0.5 1
background "white"
}
itemDef
{
rect -64 0 1708 480 1 1
style 3
decoration
visible 1
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
forecolor 0.85 0.85 0.85 0.85
background "mw2_popup_bg_fogscroll"
exp rect x ( 0 - ( ( float( milliseconds( ) % 60000 ) / 60000 ) * ( 854 ) ) )
}
itemDef
{
rect -64 0 854 0 1 1
style 3
decoration
visible 1
forecolor 1 1 1 1
background "mockup_popup_bg_stencilfill"
exp rect h ( 4 + ITEMNUM * 20 )
}
itemDef
{
rect -64 0 -1708 -480 1 1
style 3
decoration
visible 0
forecolor 1 1 1 1
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
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 854 0 1 1
style 3
decoration
forecolor 1 1 1 0
background "small_box_lightfx"
exp rect h ( 4 + ITEMNUM * 20 )
}
itemDef
{
rect -96 -32 32 32 1 1
style 3
decoration
forecolor 0 0 0 1
background "drop_shadow_tl"
visible when ( !localvarint( "ui_centerPopup" ) )
}
itemDef
{
rect -64 -32 854 32 1 1
style 3
decoration
forecolor 0 0 0 1
background "drop_shadow_t"
visible when ( !localvarint( "ui_centerPopup" ) )
}
itemDef
{
rect 790 -32 32 32 1 1
style 3
decoration
forecolor 0 0 0 1
background "drop_shadow_tr"
visible when ( !localvarint( "ui_centerPopup" ) )
}
itemDef
{
rect 790 0 32 0 1 1
style 3
decoration
forecolor 0 0 0 1
background "drop_shadow_r"
exp rect h ( 4 + ITEMNUM * 20 )
visible when ( !localvarint( "ui_centerPopup" ) )
}
itemDef
{
rect 790 0 32 32 1 1
style 3
decoration
forecolor 0 0 0 1
background "drop_shadow_br"
exp rect y ( 4 + ITEMNUM * 20 )
visible when ( !localvarint( "ui_centerPopup" ) )
}
itemDef
{
rect -64 0 854 32 1 1
style 3
decoration
forecolor 0 0 0 1
background "drop_shadow_b"
exp rect y ( 4 + ITEMNUM * 20 )
visible when ( !localvarint( "ui_centerPopup" ) )
}
itemDef
{
rect -96 0 32 32 1 1
style 3
decoration
forecolor 0 0 0 1
background "drop_shadow_bl"
exp rect y ( 4 + ITEMNUM * 20 )
visible when ( !localvarint( "ui_centerPopup" ) )
}
itemDef
{
rect -96 0 32 0 1 1
style 3
decoration
forecolor 0 0 0 1
background "drop_shadow_l"
exp rect h ( 4 + ITEMNUM * 20 )
visible when ( !localvarint( "ui_centerPopup" ) )
}
itemDef
{
rect -64 0 280 184 1 1
exp rect H( 4 + ITEMNUM * 20 )
style 1
decoration
visible 1
forecolor 1 1 1 1
backcolor 1 1 1 0
background "gradient_fadein"
}
itemDef
{
rect -64 0 280 20 1 1
style 1
decoration
forecolor 1 1 1 1
backcolor 0.25 0.25 0.25 1
background "white"
exp rect y ( - 20 - ( ( localvarint( "ui_tabDepth" ) - 1 ) * 20 ) )
visible when ( localvarint( "ui_tabDepth" ) > ( 1 - 1 ) )
}
itemDef
{
rect -64 0 280 20 1 1
style 1
decoration
forecolor 1 1 1 1
backcolor 0 0 0 1
background "gradient_fadein"
textfont 9
textalign 4
textalignx 68
textscale 0.375
exp rect y ( - 20 - ( ( localvarint( "ui_tabDepth" ) - 1 ) * 20 ) )
exp forecolor r ( 1 - ( ( localvarint( "ui_tabDepth" ) > 1 ) * 0.35 ) )
exp forecolor g ( 1 - ( ( localvarint( "ui_tabDepth" ) > 1 ) * 0.35 ) )
exp forecolor b ( 1 - ( ( localvarint( "ui_tabDepth" ) > 1 ) * 0.35 ) )
visible when ( localvarint( "ui_tabDepth" ) > ( 1 - 1 ) )
exp text ( localvarstring( "ui_tab1Name" ) )
}
itemDef
{
rect -64 0 280 20 1 1
style 1
decoration
forecolor 1 1 1 1
backcolor 0.25 0.25 0.25 1
background "white"
exp rect y ( - 20 - ( ( localvarint( "ui_tabDepth" ) - 2 ) * 20 ) )
visible when ( localvarint( "ui_tabDepth" ) > ( 2 - 1 ) )
}
itemDef
{
rect -64 0 280 20 1 1
style 1
decoration
forecolor 1 1 1 1
backcolor 0 0 0 1
background "gradient_fadein"
textfont 9
textalign 4
textalignx 68
textscale 0.375
exp rect y ( - 20 - ( ( localvarint( "ui_tabDepth" ) - 2 ) * 20 ) )
exp forecolor r ( 1 - ( ( localvarint( "ui_tabDepth" ) > 2 ) * 0.35 ) )
exp forecolor g ( 1 - ( ( localvarint( "ui_tabDepth" ) > 2 ) * 0.35 ) )
exp forecolor b ( 1 - ( ( localvarint( "ui_tabDepth" ) > 2 ) * 0.35 ) )
visible when ( localvarint( "ui_tabDepth" ) > ( 2 - 1 ) )
exp text ( localvarstring( "ui_tab2Name" ) )
}
itemDef
{
rect -64 0 280 20 1 1
style 1
decoration
forecolor 1 1 1 1
backcolor 0.25 0.25 0.25 1
background "white"
exp rect y ( - 20 - ( ( localvarint( "ui_tabDepth" ) - 3 ) * 20 ) )
visible when ( localvarint( "ui_tabDepth" ) > ( 3 - 1 ) )
}
itemDef
{
rect -64 0 280 20 1 1
style 1
decoration
forecolor 1 1 1 1
backcolor 0 0 0 1
background "gradient_fadein"
textfont 9
textalign 4
textalignx 68
textscale 0.375
exp rect y ( - 20 - ( ( localvarint( "ui_tabDepth" ) - 3 ) * 20 ) )
exp forecolor r ( 1 - ( ( localvarint( "ui_tabDepth" ) > 3 ) * 0.35 ) )
exp forecolor g ( 1 - ( ( localvarint( "ui_tabDepth" ) > 3 ) * 0.35 ) )
exp forecolor b ( 1 - ( ( localvarint( "ui_tabDepth" ) > 3 ) * 0.35 ) )
visible when ( localvarint( "ui_tabDepth" ) > ( 3 - 1 ) )
exp text ( localvarstring( "ui_tab3Name" ) )
}
itemDef
{
rect -64 0 280 20 1 1
style 1
decoration
forecolor 1 1 1 1
backcolor 0.25 0.25 0.25 1
background "white"
exp rect y ( - 20 - ( ( localvarint( "ui_tabDepth" ) - 4 ) * 20 ) )
visible when ( localvarint( "ui_tabDepth" ) > ( 4 - 1 ) )
}
itemDef
{
rect -64 0 280 20 1 1
style 1
decoration
forecolor 1 1 1 1
backcolor 0 0 0 1
background "gradient_fadein"
textfont 9
textalign 4
textalignx 68
textscale 0.375
exp rect y ( - 20 - ( ( localvarint( "ui_tabDepth" ) - 4 ) * 20 ) )
exp forecolor r ( 1 - ( ( localvarint( "ui_tabDepth" ) > 4 ) * 0.35 ) )
exp forecolor g ( 1 - ( ( localvarint( "ui_tabDepth" ) > 4 ) * 0.35 ) )
exp forecolor b ( 1 - ( ( localvarint( "ui_tabDepth" ) > 4 ) * 0.35 ) )
visible when ( localvarint( "ui_tabDepth" ) > ( 4 - 1 ) )
exp text ( localvarstring( "ui_tab4Name" ) )
}
itemDef
{
rect -64 0 280 20 1 1
style 1
decoration
forecolor 1 1 1 1
backcolor 0.25 0.25 0.25 1
background "white"
exp rect y ( - 20 - ( ( localvarint( "ui_tabDepth" ) - 5 ) * 20 ) )
visible when ( localvarint( "ui_tabDepth" ) > ( 5 - 1 ) )
}
itemDef
{
rect -64 0 280 20 1 1
style 1
decoration
forecolor 1 1 1 1
backcolor 0 0 0 1
background "gradient_fadein"
textfont 9
textalign 4
textalignx 68
textscale 0.375
exp rect y ( - 20 - ( ( localvarint( "ui_tabDepth" ) - 5 ) * 20 ) )
exp forecolor r ( 1 - ( ( localvarint( "ui_tabDepth" ) > 5 ) * 0.35 ) )
exp forecolor g ( 1 - ( ( localvarint( "ui_tabDepth" ) > 5 ) * 0.35 ) )
exp forecolor b ( 1 - ( ( localvarint( "ui_tabDepth" ) > 5 ) * 0.35 ) )
visible when ( localvarint( "ui_tabDepth" ) > ( 5 - 1 ) )
exp text ( localvarstring( "ui_tab5Name" ) )
}
@@ -0,0 +1,399 @@
#include "ui_mp/emz_macros.inc"
{
menuDef
{
name "popup_cac_handgun_secondary"
rect 0 0 854 184 1 1
style 1
popup
forecolor 1 1 1 0
backcolor 1 1 1 0
background "white"
focuscolor 1 1 1 1
fadeCycle 1
fadeClamp 1
fadeAmount 0.1
visible when ( localvarint( "ui_tabDepth" ) == localvarint( "ui_popup_cac_handgun_secondary_tabDepth" ) )
exp rect y ( localvarfloat( "ui_popupYPos" ) + localvarint( "ui_tabDepth" ) * 20 )
onOpen
{
setfocus "cac_weapon_usp";
setLocalVarInt "ui_tabDepth" ( localvarint( "ui_tabDepth" ) + 1 );
setLocalVarInt "ui_popup_cac_handgun_secondary_tabDepth" ( localvarint( "ui_tabDepth" ) );
CLASS_FOCUS_SECONDARY("usp")
CLASS_FOCUS_SECONDARY("coltanaconda")
CLASS_FOCUS_SECONDARY("beretta")
CLASS_FOCUS_SECONDARY("deserteagle")
CLASS_FOCUS_SECONDARY("deserteaglegold")
}
onClose
{
setLocalVarInt "ui_tabDepth" ( localvarint( "ui_tabDepth" ) - 1 );
}
onEsc
{
close self;
}
#define ITEMNUM 9
#include "ui_mp/popup_cac_background.inc"
CAC_SECONDARY_WEAPON(0,"usp")
CAC_SECONDARY_WEAPON(1,"coltanaconda")
CAC_SECONDARY_WEAPON(2,"beretta")
CAC_SECONDARY_WEAPON(3,"deserteagle")
CAC_SECONDARY_WEAPON_W_GOLD(4,"deserteaglegold")
itemDef
{
rect -56 0 200 184 2 1
style 3
decoration
visible 1
forecolor 1 1 1 0.5
background "small_box_lightfx"
textscale 0.55
}
itemDef
{
rect -56 0 200 184 2 1
decoration
visible 1
forecolor 1 1 1 1
textfont 9
textalign 4
textalignx 4
textscale 0.375
exp text ( "@" + tablelookup( "mp/statsTable.csv" , 4 , localvarstring( "ui_selected_ref" ) , 3 ) )
}
itemDef
{
rect -56 10 200 100 2 1
style 3
decoration
visible 1
forecolor 1 1 1 1
textscale 0.55
exp material ( tablelookup( "mp/statsTable.csv" , 4 , localvarstring( "ui_selected_ref" ) , 6 ) )
}
itemDef
{
rect -56 0 200 184 2 1
decoration
autowrapped
visible 1
forecolor 1 1 1 0.65
textfont 3
textalign 4
textalignx 4
textaligny 104
textscale 0.375
visible when ( isitemunlocked( localvarstring( "ui_selected_ref" ) ) )
exp text ( "@" + tablelookup( "mp/statstable.csv" , 4 , localvarstring( "ui_selected_ref" ) , 7 ) )
}
itemDef
{
rect -56 0 200 184 2 1
decoration
autowrapped
visible 1
forecolor 1 1 1 0.65
textfont 3
textalign 4
textalignx 4
textaligny 104
textscale 0.375
visible when ( !isitemunlocked( localvarstring( "ui_selected_ref" ) ) )
exp text ( "@" + tablelookup( "mp/rankTable.csv" , 0 , tablelookup( "mp/unlockTable.csv" , 0 , localvarstring( "ui_selected_ref" ) , 2 ) , 17 ) )
}
itemDef
{
rect -56 0 200 184 2 1
decoration
autowrapped
visible 1
forecolor 1 1 1 0.65
textfont 3
textalign 4
textalignx 4
textaligny 144
textscale 0.375
text "@PLATFORM_VIEW_CHALLENGES"
visible when ( isitemunlocked( localvarstring( "ui_selected_ref" ) ) && ( tablelookup( "mp/challengeTable.csv" , 6 , localvarstring( "ui_selected_ref" ) , 4 ) ) != "" )
}
itemDef
{
rect -128 22 120 4 3 1
style 1
decoration
visible 1
forecolor 1 1 1 0.65
backcolor 0 0 0 1
background "gradient_fadein"
textfont 3
textalign 6
textaligny -20
textscale 0.375
text "@MPUI_ACCURACY"
visible when ( tablelookup( "mp/statsTable.csv" , 4 , localvarstring( "ui_selected_ref" ) , 22 ) && 1 )
}
itemDef
{
rect -128 22 120 2 3 1
style 3
decoration
visible 1
forecolor 0.75 1 0.7 0.85
background "white"
textscale 0.55
exp rect w ( ( tablelookup( "mp/statsTable.csv" , 4 , localvarstring( "ui_selected_ref" ) , 22 ) / 100 ) * 120 )
visible when ( tablelookup( "mp/statsTable.csv" , 4 , localvarstring( "ui_selected_ref" ) , 22 ) && 1 )
}
itemDef
{
rect -128 22 120 2 3 1
style 3
decoration
visible 1
forecolor 0.85 0.85 0.85 1
background "gradient_fadein"
textscale 0.55
exp rect w ( ( tablelookup( "mp/statsTable.csv" , 4 , localvarstring( "ui_selected_ref" ) , 22 ) / 100 ) * 120 )
visible when ( tablelookup( "mp/statsTable.csv" , 4 , localvarstring( "ui_selected_ref" ) , 22 ) && 1 )
}
itemDef
{
rect -128 22 120 2 3 1
style 3
decoration
visible 1
forecolor 1 1 0.25 0.65
background "white"
textscale 0.55
exp rect x ( - 64 + ( 0 - 120 * ( tablelookup( "mp/statsTable.csv" , 4 , localvarstring( "ui_selected_ref" ) , 22 ) / 100 ) ) + ( ( 0 - 120 * ( 0 / 100 ) ) * ( 0 < 0 ) ) )
exp rect w ( min( 120 * ( 0 / 100 ) , ( 1 - ( tablelookup( "mp/statsTable.csv" , 4 , localvarstring( "ui_selected_ref" ) , 22 ) / 100 ) ) * 120 ) )
exp forecolor r ( ( 0 < 0 ) * 0.45 + 0.25 )
exp forecolor g ( ( 0 > 0 ) * 0.45 + 0.25 )
visible when ( tablelookup( "mp/statsTable.csv" , 4 , localvarstring( "ui_selected_ref" ) , 22 ) && 1 )
}
itemDef
{
rect -128 48 120 4 3 1
style 1
decoration
visible 1
forecolor 1 1 1 0.65
backcolor 0 0 0 1
background "gradient_fadein"
textfont 3
textalign 6
textaligny -20
textscale 0.375
text "@MPUI_DAMAGE"
visible when ( tablelookup( "mp/statsTable.csv" , 4 , localvarstring( "ui_selected_ref" ) , 23 ) && 1 )
}
itemDef
{
rect -128 48 120 2 3 1
style 3
decoration
visible 1
forecolor 0.75 1 0.7 0.85
background "white"
textscale 0.55
exp rect w ( ( tablelookup( "mp/statsTable.csv" , 4 , localvarstring( "ui_selected_ref" ) , 23 ) / 100 ) * 120 )
visible when ( tablelookup( "mp/statsTable.csv" , 4 , localvarstring( "ui_selected_ref" ) , 23 ) && 1 )
}
itemDef
{
rect -128 48 120 2 3 1
style 3
decoration
visible 1
forecolor 0.85 0.85 0.85 1
background "gradient_fadein"
textscale 0.55
exp rect w ( ( tablelookup( "mp/statsTable.csv" , 4 , localvarstring( "ui_selected_ref" ) , 23 ) / 100 ) * 120 )
visible when ( tablelookup( "mp/statsTable.csv" , 4 , localvarstring( "ui_selected_ref" ) , 23 ) && 1 )
}
itemDef
{
rect -128 48 120 2 3 1
style 3
decoration
visible 1
forecolor 1 1 0.25 0.65
background "white"
textscale 0.55
exp rect x ( - 64 + ( 0 - 120 * ( tablelookup( "mp/statsTable.csv" , 4 , localvarstring( "ui_selected_ref" ) , 23 ) / 100 ) ) + ( ( 0 - 120 * ( 0 / 100 ) ) * ( 0 < 0 ) ) )
exp rect w ( min( 120 * ( 0 / 100 ) , ( 1 - ( tablelookup( "mp/statsTable.csv" , 4 , localvarstring( "ui_selected_ref" ) , 23 ) / 100 ) ) * 120 ) )
exp forecolor r ( ( 0 < 0 ) * 0.45 + 0.25 )
exp forecolor g ( ( 0 > 0 ) * 0.45 + 0.25 )
visible when ( tablelookup( "mp/statsTable.csv" , 4 , localvarstring( "ui_selected_ref" ) , 23 ) && 1 )
}
itemDef
{
rect -128 74 120 4 3 1
style 1
decoration
visible 1
forecolor 1 1 1 0.65
backcolor 0 0 0 1
background "gradient_fadein"
textfont 3
textalign 6
textaligny -20
textscale 0.375
text "@MPUI_RANGE"
visible when ( tablelookup( "mp/statsTable.csv" , 4 , localvarstring( "ui_selected_ref" ) , 24 ) && 1 )
}
itemDef
{
rect -128 74 120 2 3 1
style 3
decoration
visible 1
forecolor 0.75 1 0.7 0.85
background "white"
textscale 0.55
exp rect w ( ( tablelookup( "mp/statsTable.csv" , 4 , localvarstring( "ui_selected_ref" ) , 24 ) / 100 ) * 120 )
visible when ( tablelookup( "mp/statsTable.csv" , 4 , localvarstring( "ui_selected_ref" ) , 24 ) && 1 )
}
itemDef
{
rect -128 74 120 2 3 1
style 3
decoration
visible 1
forecolor 0.85 0.85 0.85 1
background "gradient_fadein"
textscale 0.55
exp rect w ( ( tablelookup( "mp/statsTable.csv" , 4 , localvarstring( "ui_selected_ref" ) , 24 ) / 100 ) * 120 )
visible when ( tablelookup( "mp/statsTable.csv" , 4 , localvarstring( "ui_selected_ref" ) , 24 ) && 1 )
}
itemDef
{
rect -128 74 120 2 3 1
style 3
decoration
visible 1
forecolor 1 1 0.25 0.65
background "white"
textscale 0.55
exp rect x ( - 64 + ( 0 - 120 * ( tablelookup( "mp/statsTable.csv" , 4 , localvarstring( "ui_selected_ref" ) , 24 ) / 100 ) ) + ( ( 0 - 120 * ( 0 / 100 ) ) * ( 0 < 0 ) ) )
exp rect w ( min( 120 * ( 0 / 100 ) , ( 1 - ( tablelookup( "mp/statsTable.csv" , 4 , localvarstring( "ui_selected_ref" ) , 24 ) / 100 ) ) * 120 ) )
exp forecolor r ( ( 0 < 0 ) * 0.45 + 0.25 )
exp forecolor g ( ( 0 > 0 ) * 0.45 + 0.25 )
visible when ( tablelookup( "mp/statsTable.csv" , 4 , localvarstring( "ui_selected_ref" ) , 24 ) && 1 )
}
itemDef
{
rect -128 100 120 4 3 1
style 1
decoration
visible 1
forecolor 1 1 1 0.65
backcolor 0 0 0 1
background "gradient_fadein"
textfont 3
textalign 6
textaligny -20
textscale 0.375
text "@MPUI_FIRE_RATE"
visible when ( tablelookup( "mp/statsTable.csv" , 4 , localvarstring( "ui_selected_ref" ) , 25 ) && 1 )
}
itemDef
{
rect -128 100 120 2 3 1
style 3
decoration
visible 1
forecolor 0.75 1 0.7 0.85
background "white"
textscale 0.55
exp rect w ( ( tablelookup( "mp/statsTable.csv" , 4 , localvarstring( "ui_selected_ref" ) , 25 ) / 100 ) * 120 )
visible when ( tablelookup( "mp/statsTable.csv" , 4 , localvarstring( "ui_selected_ref" ) , 25 ) && 1 )
}
itemDef
{
rect -128 100 120 2 3 1
style 3
decoration
visible 1
forecolor 0.85 0.85 0.85 1
background "gradient_fadein"
textscale 0.55
exp rect w ( ( tablelookup( "mp/statsTable.csv" , 4 , localvarstring( "ui_selected_ref" ) , 25 ) / 100 ) * 120 )
visible when ( tablelookup( "mp/statsTable.csv" , 4 , localvarstring( "ui_selected_ref" ) , 25 ) && 1 )
}
itemDef
{
rect -128 100 120 2 3 1
style 3
decoration
visible 1
forecolor 1 1 0.25 0.65
background "white"
textscale 0.55
exp rect x ( - 64 + ( 0 - 120 * ( tablelookup( "mp/statsTable.csv" , 4 , localvarstring( "ui_selected_ref" ) , 25 ) / 100 ) ) + ( ( 0 - 120 * ( 0 / 100 ) ) * ( 0 < 0 ) ) )
exp rect w ( min( 120 * ( 0 / 100 ) , ( 1 - ( tablelookup( "mp/statsTable.csv" , 4 , localvarstring( "ui_selected_ref" ) , 25 ) / 100 ) ) * 120 ) )
exp forecolor r ( ( 0 < 0 ) * 0.45 + 0.25 )
exp forecolor g ( ( 0 > 0 ) * 0.45 + 0.25 )
visible when ( tablelookup( "mp/statsTable.csv" , 4 , localvarstring( "ui_selected_ref" ) , 25 ) && 1 )
}
itemDef
{
rect -128 126 120 4 3 1
style 1
decoration
visible 1
forecolor 1 1 1 0.65
backcolor 0 0 0 1
background "gradient_fadein"
textfont 3
textalign 6
textaligny -20
textscale 0.375
text "@MPUI_MOBILITY"
visible when ( tablelookup( "mp/statsTable.csv" , 4 , localvarstring( "ui_selected_ref" ) , 26 ) && 0 )
}
itemDef
{
rect -128 126 120 2 3 1
style 3
decoration
visible 1
forecolor 0.75 1 0.7 0.85
background "white"
textscale 0.55
exp rect w ( ( tablelookup( "mp/statsTable.csv" , 4 , localvarstring( "ui_selected_ref" ) , 26 ) / 100 ) * 120 )
visible when ( tablelookup( "mp/statsTable.csv" , 4 , localvarstring( "ui_selected_ref" ) , 26 ) && 0 )
}
itemDef
{
rect -128 126 120 2 3 1
style 3
decoration
visible 1
forecolor 0.85 0.85 0.85 1
background "gradient_fadein"
textscale 0.55
exp rect w ( ( tablelookup( "mp/statsTable.csv" , 4 , localvarstring( "ui_selected_ref" ) , 26 ) / 100 ) * 120 )
visible when ( tablelookup( "mp/statsTable.csv" , 4 , localvarstring( "ui_selected_ref" ) , 26 ) && 0 )
}
itemDef
{
rect -128 126 120 2 3 1
style 3
decoration
visible 1
forecolor 1 1 0.25 0.65
background "white"
textscale 0.55
exp rect x ( - 64 + ( 0 - 120 * ( tablelookup( "mp/statsTable.csv" , 4 , localvarstring( "ui_selected_ref" ) , 26 ) / 100 ) ) + ( ( 0 - 120 * ( 0 / 100 ) ) * ( 0 < 0 ) ) )
exp rect w ( min( 120 * ( 0 / 100 ) , ( 1 - ( tablelookup( "mp/statsTable.csv" , 4 , localvarstring( "ui_selected_ref" ) , 26 ) / 100 ) ) * 120 ) )
exp forecolor r ( ( 0 < 0 ) * 0.45 + 0.25 )
exp forecolor g ( ( 0 > 0 ) * 0.45 + 0.25 )
visible when ( tablelookup( "mp/statsTable.csv" , 4 , localvarstring( "ui_selected_ref" ) , 26 ) && 0 )
}
}
}
File diff suppressed because it is too large. Load diff
@@ -0,0 +1,405 @@
#include "ui_mp/emz_macros.inc"
{
menuDef
{
name "popup_cac_smg_primary"
rect 0 0 854 184 1 1
style 1
popup
forecolor 1 1 1 0
backcolor 1 1 1 0
background "white"
focuscolor 1 1 1 1
fadeCycle 1
fadeClamp 1
fadeAmount 0.1
popup
outOfBoundsClick
visible when ( localvarint( "ui_tabDepth" ) == localvarint( "ui_popup_cac_smg_primary_tabDepth" ) )
exp rect y ( localvarfloat( "ui_popupYPos" ) + localvarint( "ui_tabDepth" ) * 20 )
onOpen
{
setfocus "cac_weapon_mp5k";
setLocalVarInt "ui_tabDepth" ( localvarint( "ui_tabDepth" ) + 1 );
setLocalVarInt "ui_popup_cac_smg_primary_tabDepth" ( localvarint( "ui_tabDepth" ) );
CLASS_FOCUS("mp5k")
CLASS_FOCUS("ump45")
CLASS_FOCUS("kriss")
CLASS_FOCUS("p90")
CLASS_FOCUS("uzi")
CLASS_FOCUS("ak74u")
CLASS_FOCUS("peacekeeper")
}
onClose
{
setLocalVarInt "ui_tabDepth" ( localvarint( "ui_tabDepth" ) - 1 );
}
onEsc
{
close self;
}
#define ITEMNUM 9
#include "ui_mp/popup_cac_background.inc"
CAC_PRIMARY_WEAPON(0,"mp5k")
CAC_PRIMARY_WEAPON(1,"ump45")
CAC_PRIMARY_WEAPON(2,"kriss")
CAC_PRIMARY_WEAPON(3,"p90")
CAC_PRIMARY_WEAPON(4,"uzi")
CAC_PRIMARY_WEAPON(5,"ak74u")
CAC_PRIMARY_WEAPON(6,"peacekeeper")
itemDef
{
rect -56 0 200 184 2 1
style 3
decoration
visible 1
forecolor 1 1 1 0.5
background "small_box_lightfx"
textscale 0.55
}
itemDef
{
rect -56 0 200 184 2 1
decoration
visible 1
forecolor 1 1 1 1
textfont 9
textalign 4
textalignx 4
textscale 0.375
exp text ( "@" + tablelookup( "mp/statsTable.csv" , 4 , localvarstring( "ui_selected_ref" ) , 3 ) )
}
itemDef
{
rect -56 10 200 100 2 1
style 3
decoration
visible 1
forecolor 1 1 1 1
textscale 0.55
exp material ( tablelookup( "mp/statsTable.csv" , 4 , localvarstring( "ui_selected_ref" ) , 6 ) )
}
itemDef
{
rect -56 0 200 184 2 1
decoration
autowrapped
visible 1
forecolor 1 1 1 0.65
textfont 3
textalign 4
textalignx 4
textaligny 104
textscale 0.375
visible when ( isitemunlocked( localvarstring( "ui_selected_ref" ) ) )
exp text ( "@" + tablelookup( "mp/statstable.csv" , 4 , localvarstring( "ui_selected_ref" ) , 7 ) )
}
itemDef
{
rect -56 0 200 184 2 1
decoration
autowrapped
visible 1
forecolor 1 1 1 0.65
textfont 3
textalign 4
textalignx 4
textaligny 104
textscale 0.375
visible when ( !isitemunlocked( localvarstring( "ui_selected_ref" ) ) )
exp text ( "@" + tablelookup( "mp/rankTable.csv" , 0 , tablelookup( "mp/unlockTable.csv" , 0 , localvarstring( "ui_selected_ref" ) , 2 ) , 17 ) )
}
itemDef
{
rect -56 0 200 184 2 1
decoration
autowrapped
visible 1
forecolor 1 1 1 0.65
textfont 3
textalign 4
textalignx 4
textaligny 144
textscale 0.375
text "@PLATFORM_VIEW_CHALLENGES"
visible when ( isitemunlocked( localvarstring( "ui_selected_ref" ) ) && ( tablelookup( "mp/challengeTable.csv" , 6 , localvarstring( "ui_selected_ref" ) , 4 ) ) != "" )
}
itemDef
{
rect -128 22 120 4 3 1
style 1
decoration
visible 1
forecolor 1 1 1 0.65
backcolor 0 0 0 1
background "gradient_fadein"
textfont 3
textalign 6
textaligny -20
textscale 0.375
text "@MPUI_ACCURACY"
visible when ( tablelookup( "mp/statsTable.csv" , 4 , localvarstring( "ui_selected_ref" ) , 22 ) && 1 )
}
itemDef
{
rect -128 22 120 2 3 1
style 3
decoration
visible 1
forecolor 0.75 1 0.7 0.85
background "white"
textscale 0.55
exp rect w ( ( tablelookup( "mp/statsTable.csv" , 4 , localvarstring( "ui_selected_ref" ) , 22 ) / 100 ) * 120 )
visible when ( tablelookup( "mp/statsTable.csv" , 4 , localvarstring( "ui_selected_ref" ) , 22 ) && 1 )
}
itemDef
{
rect -128 22 120 2 3 1
style 3
decoration
visible 1
forecolor 0.85 0.85 0.85 1
background "gradient_fadein"
textscale 0.55
exp rect w ( ( tablelookup( "mp/statsTable.csv" , 4 , localvarstring( "ui_selected_ref" ) , 22 ) / 100 ) * 120 )
visible when ( tablelookup( "mp/statsTable.csv" , 4 , localvarstring( "ui_selected_ref" ) , 22 ) && 1 )
}
itemDef
{
rect -128 22 120 2 3 1
style 3
decoration
visible 1
forecolor 1 1 0.25 0.65
background "white"
textscale 0.55
exp rect x ( - 64 + ( 0 - 120 * ( tablelookup( "mp/statsTable.csv" , 4 , localvarstring( "ui_selected_ref" ) , 22 ) / 100 ) ) + ( ( 0 - 120 * ( 0 / 100 ) ) * ( 0 < 0 ) ) )
exp rect w ( min( 120 * ( 0 / 100 ) , ( 1 - ( tablelookup( "mp/statsTable.csv" , 4 , localvarstring( "ui_selected_ref" ) , 22 ) / 100 ) ) * 120 ) )
exp forecolor r ( ( 0 < 0 ) * 0.45 + 0.25 )
exp forecolor g ( ( 0 > 0 ) * 0.45 + 0.25 )
visible when ( tablelookup( "mp/statsTable.csv" , 4 , localvarstring( "ui_selected_ref" ) , 22 ) && 1 )
}
itemDef
{
rect -128 48 120 4 3 1
style 1
decoration
visible 1
forecolor 1 1 1 0.65
backcolor 0 0 0 1
background "gradient_fadein"
textfont 3
textalign 6
textaligny -20
textscale 0.375
text "@MPUI_DAMAGE"
visible when ( tablelookup( "mp/statsTable.csv" , 4 , localvarstring( "ui_selected_ref" ) , 23 ) && 1 )
}
itemDef
{
rect -128 48 120 2 3 1
style 3
decoration
visible 1
forecolor 0.75 1 0.7 0.85
background "white"
textscale 0.55
exp rect w ( ( tablelookup( "mp/statsTable.csv" , 4 , localvarstring( "ui_selected_ref" ) , 23 ) / 100 ) * 120 )
visible when ( tablelookup( "mp/statsTable.csv" , 4 , localvarstring( "ui_selected_ref" ) , 23 ) && 1 )
}
itemDef
{
rect -128 48 120 2 3 1
style 3
decoration
visible 1
forecolor 0.85 0.85 0.85 1
background "gradient_fadein"
textscale 0.55
exp rect w ( ( tablelookup( "mp/statsTable.csv" , 4 , localvarstring( "ui_selected_ref" ) , 23 ) / 100 ) * 120 )
visible when ( tablelookup( "mp/statsTable.csv" , 4 , localvarstring( "ui_selected_ref" ) , 23 ) && 1 )
}
itemDef
{
rect -128 48 120 2 3 1
style 3
decoration
visible 1
forecolor 1 1 0.25 0.65
background "white"
textscale 0.55
exp rect x ( - 64 + ( 0 - 120 * ( tablelookup( "mp/statsTable.csv" , 4 , localvarstring( "ui_selected_ref" ) , 23 ) / 100 ) ) + ( ( 0 - 120 * ( 0 / 100 ) ) * ( 0 < 0 ) ) )
exp rect w ( min( 120 * ( 0 / 100 ) , ( 1 - ( tablelookup( "mp/statsTable.csv" , 4 , localvarstring( "ui_selected_ref" ) , 23 ) / 100 ) ) * 120 ) )
exp forecolor r ( ( 0 < 0 ) * 0.45 + 0.25 )
exp forecolor g ( ( 0 > 0 ) * 0.45 + 0.25 )
visible when ( tablelookup( "mp/statsTable.csv" , 4 , localvarstring( "ui_selected_ref" ) , 23 ) && 1 )
}
itemDef
{
rect -128 74 120 4 3 1
style 1
decoration
visible 1
forecolor 1 1 1 0.65
backcolor 0 0 0 1
background "gradient_fadein"
textfont 3
textalign 6
textaligny -20
textscale 0.375
text "@MPUI_RANGE"
visible when ( tablelookup( "mp/statsTable.csv" , 4 , localvarstring( "ui_selected_ref" ) , 24 ) && 1 )
}
itemDef
{
rect -128 74 120 2 3 1
style 3
decoration
visible 1
forecolor 0.75 1 0.7 0.85
background "white"
textscale 0.55
exp rect w ( ( tablelookup( "mp/statsTable.csv" , 4 , localvarstring( "ui_selected_ref" ) , 24 ) / 100 ) * 120 )
visible when ( tablelookup( "mp/statsTable.csv" , 4 , localvarstring( "ui_selected_ref" ) , 24 ) && 1 )
}
itemDef
{
rect -128 74 120 2 3 1
style 3
decoration
visible 1
forecolor 0.85 0.85 0.85 1
background "gradient_fadein"
textscale 0.55
exp rect w ( ( tablelookup( "mp/statsTable.csv" , 4 , localvarstring( "ui_selected_ref" ) , 24 ) / 100 ) * 120 )
visible when ( tablelookup( "mp/statsTable.csv" , 4 , localvarstring( "ui_selected_ref" ) , 24 ) && 1 )
}
itemDef
{
rect -128 74 120 2 3 1
style 3
decoration
visible 1
forecolor 1 1 0.25 0.65
background "white"
textscale 0.55
exp rect x ( - 64 + ( 0 - 120 * ( tablelookup( "mp/statsTable.csv" , 4 , localvarstring( "ui_selected_ref" ) , 24 ) / 100 ) ) + ( ( 0 - 120 * ( 0 / 100 ) ) * ( 0 < 0 ) ) )
exp rect w ( min( 120 * ( 0 / 100 ) , ( 1 - ( tablelookup( "mp/statsTable.csv" , 4 , localvarstring( "ui_selected_ref" ) , 24 ) / 100 ) ) * 120 ) )
exp forecolor r ( ( 0 < 0 ) * 0.45 + 0.25 )
exp forecolor g ( ( 0 > 0 ) * 0.45 + 0.25 )
visible when ( tablelookup( "mp/statsTable.csv" , 4 , localvarstring( "ui_selected_ref" ) , 24 ) && 1 )
}
itemDef
{
rect -128 100 120 4 3 1
style 1
decoration
visible 1
forecolor 1 1 1 0.65
backcolor 0 0 0 1
background "gradient_fadein"
textfont 3
textalign 6
textaligny -20
textscale 0.375
text "@MPUI_FIRE_RATE"
visible when ( tablelookup( "mp/statsTable.csv" , 4 , localvarstring( "ui_selected_ref" ) , 25 ) && 1 )
}
itemDef
{
rect -128 100 120 2 3 1
style 3
decoration
visible 1
forecolor 0.75 1 0.7 0.85
background "white"
textscale 0.55
exp rect w ( ( tablelookup( "mp/statsTable.csv" , 4 , localvarstring( "ui_selected_ref" ) , 25 ) / 100 ) * 120 )
visible when ( tablelookup( "mp/statsTable.csv" , 4 , localvarstring( "ui_selected_ref" ) , 25 ) && 1 )
}
itemDef
{
rect -128 100 120 2 3 1
style 3
decoration
visible 1
forecolor 0.85 0.85 0.85 1
background "gradient_fadein"
textscale 0.55
exp rect w ( ( tablelookup( "mp/statsTable.csv" , 4 , localvarstring( "ui_selected_ref" ) , 25 ) / 100 ) * 120 )
visible when ( tablelookup( "mp/statsTable.csv" , 4 , localvarstring( "ui_selected_ref" ) , 25 ) && 1 )
}
itemDef
{
rect -128 100 120 2 3 1
style 3
decoration
visible 1
forecolor 1 1 0.25 0.65
background "white"
textscale 0.55
exp rect x ( - 64 + ( 0 - 120 * ( tablelookup( "mp/statsTable.csv" , 4 , localvarstring( "ui_selected_ref" ) , 25 ) / 100 ) ) + ( ( 0 - 120 * ( 0 / 100 ) ) * ( 0 < 0 ) ) )
exp rect w ( min( 120 * ( 0 / 100 ) , ( 1 - ( tablelookup( "mp/statsTable.csv" , 4 , localvarstring( "ui_selected_ref" ) , 25 ) / 100 ) ) * 120 ) )
exp forecolor r ( ( 0 < 0 ) * 0.45 + 0.25 )
exp forecolor g ( ( 0 > 0 ) * 0.45 + 0.25 )
visible when ( tablelookup( "mp/statsTable.csv" , 4 , localvarstring( "ui_selected_ref" ) , 25 ) && 1 )
}
itemDef
{
rect -128 126 120 4 3 1
style 1
decoration
visible 1
forecolor 1 1 1 0.65
backcolor 0 0 0 1
background "gradient_fadein"
textfont 3
textalign 6
textaligny -20
textscale 0.375
text "@MPUI_MOBILITY"
visible when ( tablelookup( "mp/statsTable.csv" , 4 , localvarstring( "ui_selected_ref" ) , 26 ) && 1 )
}
itemDef
{
rect -128 126 120 2 3 1
style 3
decoration
visible 1
forecolor 0.75 1 0.7 0.85
background "white"
textscale 0.55
exp rect w ( ( tablelookup( "mp/statsTable.csv" , 4 , localvarstring( "ui_selected_ref" ) , 26 ) / 100 ) * 120 )
visible when ( tablelookup( "mp/statsTable.csv" , 4 , localvarstring( "ui_selected_ref" ) , 26 ) && 1 )
}
itemDef
{
rect -128 126 120 2 3 1
style 3
decoration
visible 1
forecolor 0.85 0.85 0.85 1
background "gradient_fadein"
textscale 0.55
exp rect w ( ( tablelookup( "mp/statsTable.csv" , 4 , localvarstring( "ui_selected_ref" ) , 26 ) / 100 ) * 120 )
visible when ( tablelookup( "mp/statsTable.csv" , 4 , localvarstring( "ui_selected_ref" ) , 26 ) && 1 )
}
itemDef
{
rect -128 126 120 2 3 1
style 3
decoration
visible 1
forecolor 1 1 0.25 0.65
background "white"
textscale 0.55
exp rect x ( - 64 + ( 0 - 120 * ( tablelookup( "mp/statsTable.csv" , 4 , localvarstring( "ui_selected_ref" ) , 26 ) / 100 ) ) + ( ( 0 - 120 * ( 0 / 100 ) ) * ( 0 < 0 ) ) )
exp rect w ( min( 120 * ( 0 / 100 ) , ( 1 - ( tablelookup( "mp/statsTable.csv" , 4 , localvarstring( "ui_selected_ref" ) , 26 ) / 100 ) ) * 120 ) )
exp forecolor r ( ( 0 < 0 ) * 0.45 + 0.25 )
exp forecolor g ( ( 0 > 0 ) * 0.45 + 0.25 )
visible when ( tablelookup( "mp/statsTable.csv" , 4 , localvarstring( "ui_selected_ref" ) , 26 ) && 1 )
}
}
}
@@ -0,0 +1,403 @@
#include "ui_mp/emz_macros.inc"
{
menuDef
{
name "popup_cac_sniper_primary"
rect 0 0 854 184 1 1
style 1
popup
forecolor 1 1 1 0
backcolor 1 1 1 0
background "white"
focuscolor 1 1 1 1
fadeCycle 1
fadeClamp 1
fadeAmount 0.1
popup
outOfBoundsClick
visible when ( localvarint( "ui_tabDepth" ) == localvarint( "ui_popup_cac_sniper_primary_tabDepth" ) )
exp rect y ( localvarfloat( "ui_popupYPos" ) + localvarint( "ui_tabDepth" ) * 20 )
onOpen
{
setfocus "cac_weapon_cheytac";
setLocalVarInt "ui_tabDepth" ( localvarint( "ui_tabDepth" ) + 1 );
setLocalVarInt "ui_popup_cac_sniper_primary_tabDepth" ( localvarint( "ui_tabDepth" ) );
CLASS_FOCUS("cheytac")
CLASS_FOCUS("barrett")
CLASS_FOCUS("wa2000")
CLASS_FOCUS("m21")
CLASS_FOCUS("m40a3")
CLASS_FOCUS("dragunov")
}
onClose
{
setLocalVarInt "ui_tabDepth" ( localvarint( "ui_tabDepth" ) - 1 );
}
onEsc
{
close self;
}
#define ITEMNUM 9
#include "ui_mp/popup_cac_background.inc"
CAC_PRIMARY_WEAPON(0,"cheytac")
CAC_PRIMARY_WEAPON(1,"barrett")
CAC_PRIMARY_WEAPON(2,"wa2000")
CAC_PRIMARY_WEAPON(3,"m21")
CAC_PRIMARY_WEAPON(4,"m40a3")
CAC_PRIMARY_WEAPON(5,"dragunov")
itemDef
{
rect -56 0 200 184 2 1
style 3
decoration
visible 1
forecolor 1 1 1 0.5
background "small_box_lightfx"
textscale 0.55
}
itemDef
{
rect -56 0 200 184 2 1
decoration
visible 1
forecolor 1 1 1 1
textfont 9
textalign 4
textalignx 4
textscale 0.375
exp text ( "@" + tablelookup( "mp/statsTable.csv" , 4 , localvarstring( "ui_selected_ref" ) , 3 ) )
}
itemDef
{
rect -56 10 200 100 2 1
style 3
decoration
visible 1
forecolor 1 1 1 1
textscale 0.55
exp material ( tablelookup( "mp/statsTable.csv" , 4 , localvarstring( "ui_selected_ref" ) , 6 ) )
}
itemDef
{
rect -56 0 200 184 2 1
decoration
autowrapped
visible 1
forecolor 1 1 1 0.65
textfont 3
textalign 4
textalignx 4
textaligny 104
textscale 0.375
visible when ( isitemunlocked( localvarstring( "ui_selected_ref" ) ) )
exp text ( "@" + tablelookup( "mp/statstable.csv" , 4 , localvarstring( "ui_selected_ref" ) , 7 ) )
}
itemDef
{
rect -56 0 200 184 2 1
decoration
autowrapped
visible 1
forecolor 1 1 1 0.65
textfont 3
textalign 4
textalignx 4
textaligny 104
textscale 0.375
visible when ( !isitemunlocked( localvarstring( "ui_selected_ref" ) ) )
exp text ( "@" + tablelookup( "mp/rankTable.csv" , 0 , tablelookup( "mp/unlockTable.csv" , 0 , localvarstring( "ui_selected_ref" ) , 2 ) , 17 ) )
}
itemDef
{
rect -56 0 200 184 2 1
decoration
autowrapped
visible 1
forecolor 1 1 1 0.65
textfont 3
textalign 4
textalignx 4
textaligny 144
textscale 0.375
text "@PLATFORM_VIEW_CHALLENGES"
visible when ( isitemunlocked( localvarstring( "ui_selected_ref" ) ) && ( tablelookup( "mp/challengeTable.csv" , 6 , localvarstring( "ui_selected_ref" ) , 4 ) ) != "" )
}
itemDef
{
rect -128 22 120 4 3 1
style 1
decoration
visible 1
forecolor 1 1 1 0.65
backcolor 0 0 0 1
background "gradient_fadein"
textfont 3
textalign 6
textaligny -20
textscale 0.375
text "@MPUI_ACCURACY"
visible when ( tablelookup( "mp/statsTable.csv" , 4 , localvarstring( "ui_selected_ref" ) , 22 ) && 1 )
}
itemDef
{
rect -128 22 120 2 3 1
style 3
decoration
visible 1
forecolor 0.75 1 0.7 0.85
background "white"
textscale 0.55
exp rect w ( ( tablelookup( "mp/statsTable.csv" , 4 , localvarstring( "ui_selected_ref" ) , 22 ) / 100 ) * 120 )
visible when ( tablelookup( "mp/statsTable.csv" , 4 , localvarstring( "ui_selected_ref" ) , 22 ) && 1 )
}
itemDef
{
rect -128 22 120 2 3 1
style 3
decoration
visible 1
forecolor 0.85 0.85 0.85 1
background "gradient_fadein"
textscale 0.55
exp rect w ( ( tablelookup( "mp/statsTable.csv" , 4 , localvarstring( "ui_selected_ref" ) , 22 ) / 100 ) * 120 )
visible when ( tablelookup( "mp/statsTable.csv" , 4 , localvarstring( "ui_selected_ref" ) , 22 ) && 1 )
}
itemDef
{
rect -128 22 120 2 3 1
style 3
decoration
visible 1
forecolor 1 1 0.25 0.65
background "white"
textscale 0.55
exp rect x ( - 64 + ( 0 - 120 * ( tablelookup( "mp/statsTable.csv" , 4 , localvarstring( "ui_selected_ref" ) , 22 ) / 100 ) ) + ( ( 0 - 120 * ( 0 / 100 ) ) * ( 0 < 0 ) ) )
exp rect w ( min( 120 * ( 0 / 100 ) , ( 1 - ( tablelookup( "mp/statsTable.csv" , 4 , localvarstring( "ui_selected_ref" ) , 22 ) / 100 ) ) * 120 ) )
exp forecolor r ( ( 0 < 0 ) * 0.45 + 0.25 )
exp forecolor g ( ( 0 > 0 ) * 0.45 + 0.25 )
visible when ( tablelookup( "mp/statsTable.csv" , 4 , localvarstring( "ui_selected_ref" ) , 22 ) && 1 )
}
itemDef
{
rect -128 48 120 4 3 1
style 1
decoration
visible 1
forecolor 1 1 1 0.65
backcolor 0 0 0 1
background "gradient_fadein"
textfont 3
textalign 6
textaligny -20
textscale 0.375
text "@MPUI_DAMAGE"
visible when ( tablelookup( "mp/statsTable.csv" , 4 , localvarstring( "ui_selected_ref" ) , 23 ) && 1 )
}
itemDef
{
rect -128 48 120 2 3 1
style 3
decoration
visible 1
forecolor 0.75 1 0.7 0.85
background "white"
textscale 0.55
exp rect w ( ( tablelookup( "mp/statsTable.csv" , 4 , localvarstring( "ui_selected_ref" ) , 23 ) / 100 ) * 120 )
visible when ( tablelookup( "mp/statsTable.csv" , 4 , localvarstring( "ui_selected_ref" ) , 23 ) && 1 )
}
itemDef
{
rect -128 48 120 2 3 1
style 3
decoration
visible 1
forecolor 0.85 0.85 0.85 1
background "gradient_fadein"
textscale 0.55
exp rect w ( ( tablelookup( "mp/statsTable.csv" , 4 , localvarstring( "ui_selected_ref" ) , 23 ) / 100 ) * 120 )
visible when ( tablelookup( "mp/statsTable.csv" , 4 , localvarstring( "ui_selected_ref" ) , 23 ) && 1 )
}
itemDef
{
rect -128 48 120 2 3 1
style 3
decoration
visible 1
forecolor 1 1 0.25 0.65
background "white"
textscale 0.55
exp rect x ( - 64 + ( 0 - 120 * ( tablelookup( "mp/statsTable.csv" , 4 , localvarstring( "ui_selected_ref" ) , 23 ) / 100 ) ) + ( ( 0 - 120 * ( 0 / 100 ) ) * ( 0 < 0 ) ) )
exp rect w ( min( 120 * ( 0 / 100 ) , ( 1 - ( tablelookup( "mp/statsTable.csv" , 4 , localvarstring( "ui_selected_ref" ) , 23 ) / 100 ) ) * 120 ) )
exp forecolor r ( ( 0 < 0 ) * 0.45 + 0.25 )
exp forecolor g ( ( 0 > 0 ) * 0.45 + 0.25 )
visible when ( tablelookup( "mp/statsTable.csv" , 4 , localvarstring( "ui_selected_ref" ) , 23 ) && 1 )
}
itemDef
{
rect -128 74 120 4 3 1
style 1
decoration
visible 1
forecolor 1 1 1 0.65
backcolor 0 0 0 1
background "gradient_fadein"
textfont 3
textalign 6
textaligny -20
textscale 0.375
text "@MPUI_RANGE"
visible when ( tablelookup( "mp/statsTable.csv" , 4 , localvarstring( "ui_selected_ref" ) , 24 ) && 1 )
}
itemDef
{
rect -128 74 120 2 3 1
style 3
decoration
visible 1
forecolor 0.75 1 0.7 0.85
background "white"
textscale 0.55
exp rect w ( ( tablelookup( "mp/statsTable.csv" , 4 , localvarstring( "ui_selected_ref" ) , 24 ) / 100 ) * 120 )
visible when ( tablelookup( "mp/statsTable.csv" , 4 , localvarstring( "ui_selected_ref" ) , 24 ) && 1 )
}
itemDef
{
rect -128 74 120 2 3 1
style 3
decoration
visible 1
forecolor 0.85 0.85 0.85 1
background "gradient_fadein"
textscale 0.55
exp rect w ( ( tablelookup( "mp/statsTable.csv" , 4 , localvarstring( "ui_selected_ref" ) , 24 ) / 100 ) * 120 )
visible when ( tablelookup( "mp/statsTable.csv" , 4 , localvarstring( "ui_selected_ref" ) , 24 ) && 1 )
}
itemDef
{
rect -128 74 120 2 3 1
style 3
decoration
visible 1
forecolor 1 1 0.25 0.65
background "white"
textscale 0.55
exp rect x ( - 64 + ( 0 - 120 * ( tablelookup( "mp/statsTable.csv" , 4 , localvarstring( "ui_selected_ref" ) , 24 ) / 100 ) ) + ( ( 0 - 120 * ( 0 / 100 ) ) * ( 0 < 0 ) ) )
exp rect w ( min( 120 * ( 0 / 100 ) , ( 1 - ( tablelookup( "mp/statsTable.csv" , 4 , localvarstring( "ui_selected_ref" ) , 24 ) / 100 ) ) * 120 ) )
exp forecolor r ( ( 0 < 0 ) * 0.45 + 0.25 )
exp forecolor g ( ( 0 > 0 ) * 0.45 + 0.25 )
visible when ( tablelookup( "mp/statsTable.csv" , 4 , localvarstring( "ui_selected_ref" ) , 24 ) && 1 )
}
itemDef
{
rect -128 100 120 4 3 1
style 1
decoration
visible 1
forecolor 1 1 1 0.65
backcolor 0 0 0 1
background "gradient_fadein"
textfont 3
textalign 6
textaligny -20
textscale 0.375
text "@MPUI_FIRE_RATE"
visible when ( tablelookup( "mp/statsTable.csv" , 4 , localvarstring( "ui_selected_ref" ) , 25 ) && 1 )
}
itemDef
{
rect -128 100 120 2 3 1
style 3
decoration
visible 1
forecolor 0.75 1 0.7 0.85
background "white"
textscale 0.55
exp rect w ( ( tablelookup( "mp/statsTable.csv" , 4 , localvarstring( "ui_selected_ref" ) , 25 ) / 100 ) * 120 )
visible when ( tablelookup( "mp/statsTable.csv" , 4 , localvarstring( "ui_selected_ref" ) , 25 ) && 1 )
}
itemDef
{
rect -128 100 120 2 3 1
style 3
decoration
visible 1
forecolor 0.85 0.85 0.85 1
background "gradient_fadein"
textscale 0.55
exp rect w ( ( tablelookup( "mp/statsTable.csv" , 4 , localvarstring( "ui_selected_ref" ) , 25 ) / 100 ) * 120 )
visible when ( tablelookup( "mp/statsTable.csv" , 4 , localvarstring( "ui_selected_ref" ) , 25 ) && 1 )
}
itemDef
{
rect -128 100 120 2 3 1
style 3
decoration
visible 1
forecolor 1 1 0.25 0.65
background "white"
textscale 0.55
exp rect x ( - 64 + ( 0 - 120 * ( tablelookup( "mp/statsTable.csv" , 4 , localvarstring( "ui_selected_ref" ) , 25 ) / 100 ) ) + ( ( 0 - 120 * ( 0 / 100 ) ) * ( 0 < 0 ) ) )
exp rect w ( min( 120 * ( 0 / 100 ) , ( 1 - ( tablelookup( "mp/statsTable.csv" , 4 , localvarstring( "ui_selected_ref" ) , 25 ) / 100 ) ) * 120 ) )
exp forecolor r ( ( 0 < 0 ) * 0.45 + 0.25 )
exp forecolor g ( ( 0 > 0 ) * 0.45 + 0.25 )
visible when ( tablelookup( "mp/statsTable.csv" , 4 , localvarstring( "ui_selected_ref" ) , 25 ) && 1 )
}
itemDef
{
rect -128 126 120 4 3 1
style 1
decoration
visible 1
forecolor 1 1 1 0.65
backcolor 0 0 0 1
background "gradient_fadein"
textfont 3
textalign 6
textaligny -20
textscale 0.375
text "@MPUI_MOBILITY"
visible when ( tablelookup( "mp/statsTable.csv" , 4 , localvarstring( "ui_selected_ref" ) , 26 ) && 1 )
}
itemDef
{
rect -128 126 120 2 3 1
style 3
decoration
visible 1
forecolor 0.75 1 0.7 0.85
background "white"
textscale 0.55
exp rect w ( ( tablelookup( "mp/statsTable.csv" , 4 , localvarstring( "ui_selected_ref" ) , 26 ) / 100 ) * 120 )
visible when ( tablelookup( "mp/statsTable.csv" , 4 , localvarstring( "ui_selected_ref" ) , 26 ) && 1 )
}
itemDef
{
rect -128 126 120 2 3 1
style 3
decoration
visible 1
forecolor 0.85 0.85 0.85 1
background "gradient_fadein"
textscale 0.55
exp rect w ( ( tablelookup( "mp/statsTable.csv" , 4 , localvarstring( "ui_selected_ref" ) , 26 ) / 100 ) * 120 )
visible when ( tablelookup( "mp/statsTable.csv" , 4 , localvarstring( "ui_selected_ref" ) , 26 ) && 1 )
}
itemDef
{
rect -128 126 120 2 3 1
style 3
decoration
visible 1
forecolor 1 1 0.25 0.65
background "white"
textscale 0.55
exp rect x ( - 64 + ( 0 - 120 * ( tablelookup( "mp/statsTable.csv" , 4 , localvarstring( "ui_selected_ref" ) , 26 ) / 100 ) ) + ( ( 0 - 120 * ( 0 / 100 ) ) * ( 0 < 0 ) ) )
exp rect w ( min( 120 * ( 0 / 100 ) , ( 1 - ( tablelookup( "mp/statsTable.csv" , 4 , localvarstring( "ui_selected_ref" ) , 26 ) / 100 ) ) * 120 ) )
exp forecolor r ( ( 0 < 0 ) * 0.45 + 0.25 )
exp forecolor g ( ( 0 > 0 ) * 0.45 + 0.25 )
visible when ( tablelookup( "mp/statsTable.csv" , 4 , localvarstring( "ui_selected_ref" ) , 26 ) && 1 )
}
}
}
@@ -0,0 +1,358 @@
{
menuDef
{
name "popup_cac_weapon_primary"
rect 0 0 854 124 1 1
style 1
popup
forecolor 1 1 1 0
backcolor 1 1 1 0
background "white"
focuscolor 1 1 1 1
fadeCycle 1
fadeClamp 1
fadeAmount 0.1
visible when ( localvarint( "ui_tabDepth" ) == localvarint( "ui_popup_cac_weapon_primary_tabDepth" ) )
exp rect y ( localvarfloat( "ui_popupYPos" ) + localvarint( "ui_tabDepth" ) * 20 )
onOpen
{
setLocalVarInt "ui_tabDepth" ( localvarint( "ui_tabDepth" ) + 1 );
setLocalVarInt "ui_popup_cac_weapon_primary_tabDepth" ( localvarint( "ui_tabDepth" ) );
if ( tablelookup( "mp/statsTable.csv" , 4 , getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "weapon" ) , 2 ) == "weapon_assault" )
{
setfocus "cac_primary_assault";
}
if ( tablelookup( "mp/statsTable.csv" , 4 , getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "weapon" ) , 2 ) == "weapon_smg" )
{
setfocus "cac_primary_smg";
}
if ( tablelookup( "mp/statsTable.csv" , 4 , getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "weapon" ) , 2 ) == "weapon_lmg" )
{
setfocus "cac_primary_lmg";
}
if ( tablelookup( "mp/statsTable.csv" , 4 , getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "weapon" ) , 2 ) == "weapon_sniper" )
{
setfocus "cac_primary_sniper";
}
if ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "weapon" ) == "riotshield" )
{
setfocus "cac_primary_riotshield";
}
}
onClose
{
setLocalVarInt "ui_tabDepth" ( localvarint( "ui_tabDepth" ) - 1 );
}
onEsc
{
close self;
}
#define ITEMNUM 6
#include "ui_mp/popup_cac_background.inc"
#define CLASS_ITEM(itemNum,textArg,classArg,menuArg) \
itemDef \
{ \
name "cac_primary_" ## classArg \
rect -64 (4 + (itemNum * 20)) 336 20 1 1 \
group "mw2_popup_button" \
style 1 \
visible 1 \
forecolor 1 1 1 1 \
disablecolor 0.6 0.55 0.55 1 \
background "popup_button_selection_bar_short" \
type 1 \
textfont 3 \
textalign 4 \
textalignx 68 \
textscale 0.375 \
text textArg \
action \
{ \
play "mouse_click"; \
if ( localvarint( "ui_tabDepth" ) == 0 ) \
{ \
setLocalVarString "ui_tab1Name" ( textArg ); \
} \
if ( localvarint( "ui_tabDepth" ) == 1 ) \
{ \
setLocalVarString "ui_tab2Name" ( textArg ); \
} \
if ( localvarint( "ui_tabDepth" ) == 2 ) \
{ \
setLocalVarString "ui_tab3Name" ( textArg ); \
} \
if ( localvarint( "ui_tabDepth" ) == 3 ) \
{ \
setLocalVarString "ui_tab4Name" ( textArg ); \
} \
if ( localvarint( "ui_tabDepth" ) == 4 ) \
{ \
setLocalVarString "ui_tab5Name" ( textArg ); \
} \
if ( localvarint( "ui_tabDepth" ) == 5 ) \
{ \
setLocalVarString "ui_tab6Name" ( textArg ); \
} \
open menuArg; \
} \
onFocus \
{ \
play "mouse_over"; \
if ( dvarstring( "gameMode" ) != "mp" ) \
{ \
setItemColor "mw2_popup_button" backcolor 0 0 0 0; \
} \
setItemColor self backcolor 0 0 0 1; \
setLocalVarBool "ui_popupAButton" ( 1 ); \
setLocalVarString "ui_info_name" ( textArg ); \
setLocalVarString "ui_info_desc" ( "@" ); \
setLocalVarString "ui_info_icon" ( "" ); \
} \
leaveFocus \
{ \
setItemColor self backcolor 1 1 1 0; \
setLocalVarBool "ui_popupAButton" ( 0 ); \
} \
} \
itemDef \
{ \
rect 162 4 40 20 1 1 \
style 3 \
decoration \
visible 1 \
forecolor 1 1 1 1 \
background "specialty_new" \
textscale 0.55 \
visible when ( weaponclassnew( classArg ) ) \
}
CLASS_ITEM(0,"@MENU_ASSAULT_RIFLES_CAPS","assault","popup_cac_assault_primary")
CLASS_ITEM(1,"@MENU_SMGS_CAPS","smg","popup_cac_smg_primary")
CLASS_ITEM(2,"@MENU_LMGS_CAPS","lmg","popup_cac_lmg_primary")
CLASS_ITEM(3,"@MENU_SNIPER_RIFLES_CAPS","sniper","popup_cac_sniper_primary")
// 4 is the riot.
// CLASS_ITEM(5,"@MENU_RIFLES_CAPS","assault","popup_ready")
itemDef
{
name "cac_primary_riotshield"
rect -64 84 336 20 1 1
group "mw2_popup_button"
style 1
visible 1
forecolor 1 1 1 1
disablecolor 0.6 0.55 0.55 1
background "popup_button_selection_bar_short"
type 1
textfont 3
textalign 4
textalignx 68
textscale 0.375
text "@MENU_RIOT_SHIELD_CAPS"
action
{
play "mouse_click";
if ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "weapon" ) != "riotshield" )
{
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 0 , "attachment" , 0 , "none" );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 0 , "attachment" , 1 , "none" );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 0 , "camo" , "none" );
}
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 0 , "weapon" , "riotshield" );
setPlayerData( "weaponNew" , "riotshield" , "false" );
if ( !( tablelookup( "mp/attachmentTable.csv" , 4 , getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "attachment" , 0 ) , 12 ) != "" || tablelookup( "mp/attachmentTable.csv" , 4 , getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 0 ) , 12 ) != "" ) && ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 0 ) == "specialty_null_gl" || getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 0 ) == "specialty_null_grip" || getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 0 ) == "specialty_null_shotgun" ) || getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 0 ) == "specialty_null_heartbeat" )
{
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "perks" , 0 , "specialty_null" );
}
setLocalVarString "loadoutPrimary" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "weapon" ) );
setLocalVarString "loadoutPrimaryAttachment" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "attachment" , 0 ) );
setLocalVarString "loadoutPrimaryAttachment2" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "attachment" , 1 ) );
if ( localvarstring( "loadoutPrimaryAttachment2" ) == "" )
{
setLocalVarString "loadoutPrimaryAttachment2" ( "none" );
}
setLocalVarString "loadoutPrimaryCamo" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "camo" ) );
setLocalVarString "loadoutSecondaryCamo" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "camo" ) );
setLocalVarString "loadoutSecondary" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "weapon" ) );
setLocalVarString "loadoutSecondaryAttachment" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 0 ) );
setLocalVarString "loadoutSecondaryAttachment2" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 1 ) );
if ( localvarstring( "loadoutSecondaryAttachment2" ) == "" )
{
setLocalVarString "loadoutSecondaryAttachment2" ( "none" );
}
setLocalVarString "loadoutSecondaryCamo" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "camo" ) );
setLocalVarString "loadoutEquipment" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 0 ) );
setLocalVarString "loadoutPerk1" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 1 ) );
setLocalVarString "loadoutPerk2" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 2 ) );
setLocalVarString "loadoutPerk3" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 3 ) );
setLocalVarString "loadoutStreak1" ( getplayerdata( "killstreaks" , 0 ) );
setLocalVarString "loadoutStreak2" ( getplayerdata( "killstreaks" , 1 ) );
setLocalVarString "loadoutStreak3" ( getplayerdata( "killstreaks" , 2 ) );
setLocalVarString "loadoutDeathStreak" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 4 ) );
setLocalVarString "loadoutOffhandSecondary" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "specialGrenade" ) );
setLocalVarString "loadoutClassName" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "name" ) );
if ( 0 == 0 )
{
if ( ( tablelookup( "mp/statsTable.csv" , 4 , "riotshield" , 11 ) != "" ) )
{
if ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 1 ) == "specialty_bling" )
{
open "popup_primary_attachments_bling";
}
else
{
open "popup_primary_attachments";
}
}
else
{
open "popup_cac_primary_camo";
}
}
else
{
if ( ( tablelookup( "mp/statsTable.csv" , 4 , "riotshield" , 11 ) != "" ) )
{
if ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 1 ) == "specialty_bling" && isitemunlocked( "specialty_secondarybling" ) )
{
open "popup_secondary_attachments_bling";
}
else
{
open "popup_secondary_attachments";
}
}
else
{
close "popup_cac_weapon_primary";
close "popup_primary_attachments" close "popup_secondary_attachments" close "popup_cac_weapon_secondary";
close "popup_cac_handgun_secondary";
close "popup_cac_machinePistols_secondary";
close "popup_cac_assault_primary";
close "popup_cac_SMG_primary";
close "popup_cac_LMG_primary";
close "popup_cac_sniper_primary";
close "popup_cac_shotgun_primary";
close "popup_cac_assault_secondary";
close "popup_cac_SMG_secondary";
close "popup_cac_LMG_secondary";
close "popup_cac_sniper_secondary";
close "popup_cac_shotgun_secondary";
close "popup_cac_template";
close "popup_cac_primary_camo";
close "popup_cac_secondary_camo";
close "popup_cac_bling";
close "popup_cac_perk2";
close "popup_cac_rocket_secondary";
close "popup_primary_attachments_bling";
close "popup_secondary_attachments_bling";
close "popup_cac_other_primary";
}
}
close self;
close "popup_cac_weapon_primary";
close "popup_primary_attachments" close "popup_secondary_attachments" close "popup_cac_weapon_secondary";
close "popup_cac_handgun_secondary";
close "popup_cac_machinePistols_secondary";
close "popup_cac_assault_primary";
close "popup_cac_SMG_primary";
close "popup_cac_LMG_primary";
close "popup_cac_sniper_primary";
close "popup_cac_shotgun_primary";
close "popup_cac_assault_secondary";
close "popup_cac_SMG_secondary";
close "popup_cac_LMG_secondary";
close "popup_cac_sniper_secondary";
close "popup_cac_shotgun_secondary";
close "popup_cac_template";
close "popup_cac_primary_camo";
close "popup_cac_secondary_camo";
close "popup_cac_bling";
close "popup_cac_perk2";
close "popup_cac_rocket_secondary";
close "popup_primary_attachments_bling";
close "popup_secondary_attachments_bling";
close "popup_cac_other_primary";
}
onFocus
{
play "mouse_over";
if ( dvarstring( "gameMode" ) != "mp" )
{
setItemColor "mw2_popup_button" backcolor 0 0 0 0;
}
setItemColor self backcolor 0 0 0 1;
setLocalVarBool "ui_popupAButton" ( 1 );
setLocalVarString "ui_info_name" ( "@" + tablelookup( "mp/statsTable.csv" , 4 , "riotshield" , 3 ) );
setLocalVarString "ui_info_desc" ( "@" + tablelookup( "mp/statstable.csv" , 4 , "riotshield" , 7 ) );
setLocalVarString "ui_info_icon" ( tablelookup( "mp/statsTable.csv" , 4 , "riotshield" , 6 ) );
}
leaveFocus
{
setItemColor self backcolor 1 1 1 0;
setLocalVarBool "ui_popupAButton" ( 0 );
}
}
itemDef
{
rect 162 84 40 20 1 1
style 3
decoration
visible 1
forecolor 1 1 1 1
background "specialty_new"
textscale 0.55
visible when ( weaponclassnew( "weapon_shield" ) )
}
itemDef
{
rect -56 0 200 124 2 1
style 3
decoration
visible 1
forecolor 1 1 1 0.5
background "small_box_lightfx"
textscale 0.55
}
itemDef
{
rect -56 0 200 124 2 1
decoration
visible 1
forecolor 1 1 1 1
textfont 9
textalign 4
textalignx 4
textscale 0.375
exp text ( localvarstring( "ui_info_name" ) )
}
itemDef
{
rect -56 10 200 100 2 1
style 3
decoration
visible 1
forecolor 1 1 1 1
textscale 0.55
visible when ( localvarstring( "ui_info_icon" ) != "" )
exp material ( localvarstring( "ui_info_icon" ) )
}
itemDef
{
rect -56 0 200 124 2 1
decoration
autowrapped
visible 1
forecolor 1 1 1 0.65
textfont 3
textalign 4
textalignx 4
textaligny 84
textscale 0.375
visible when ( isitemunlocked( "weaponRefString" + " " + "refString" ) )
exp text ( localvarstring( "ui_info_desc" ) )
}
}
}
+71
View File
@@ -0,0 +1,71 @@
#include "ui/menudef.h"
#include "ui_mp/main.inc"
#include "ui_mp/popup.inc"
#define MENU_NAME "popup_customtitle"
#define MENU_TITLE "@MENU_CUSTOM_TITLE"
#define POPMENU_POS_X -150
#define POPMENU_POS_Y -84
#define POPMENU_WIDTH 300
#define POPMENU_HEIGHT 84
#define POPMENU_RECT POPMENU_POS_X POPMENU_POS_Y POPMENU_WIDTH POPMENU_HEIGHT HORIZONTAL_ALIGN_CENTER VERTICAL_ALIGN_CENTER
#define ITEM_NAMEENTRY \
itemDef \
{ \
name "customtitleEntry" \
rect 10 32 (POPMENU_WIDTH - 20) 20 HORIZONTAL_ALIGN_CENTER VERTICAL_ALIGN_CENTER \
style WINDOW_STYLE_FILLED \
foreColor CHOICE_TEXTCOLOR \
backColor 0 0 0 0.3 \
type ITEM_TYPE_EDITFIELD \
textFont UI_FONT_SMALL \
textAlignX 5 \
textAlignY 18 \
textScale CHOICE_TEXTSIZE \
visible 1 \
text " " \
dvar "customtitle" \
maxChars 15 \
maxPaintChars 15 \
accept \
{ \
close self; \
} \
}
#define ON_MENU_OPEN \
setLocalVarInt "ui_centerPopup" (1); \
setFocus "customtitleEntry";
#define ON_MENU_CLOSE \
setLocalVarInt "ui_centerPopup" (0);
#define ON_MENU_ESC \
close self;
menuDef
{
name MENU_NAME
rect POPMENU_RECT
popup
legacySplitScreenScale
style WINDOW_STYLE_FILLED
foreColor CHOICE_TEXTCOLOR
focusColor CHOICE_TEXTCOLOR
backColor 1 1 1 1
background "white"
MENU_ON_OPEN(ON_MENU_OPEN)
MENU_ON_CLOSE(ON_MENU_CLOSE)
MENU_ON_ESC(ON_MENU_ESC)
POPUP_BACKGROUND_BASE
POPUP_TITLE2(MENU_TITLE)
ITEM_NAMEENTRY
POPUP_BUTTON_FOOTER(64, "@MENU_CLOSE", close self;)
}
+73
View File
@@ -0,0 +1,73 @@
#include "ui/menudef.h"
#include "ui_mp/main.inc"
#include "ui_mp/popup.inc"
#define MENU_NAME "popup_friends"
#define MENU_TITLE "@MENU_FRIENDS"
#define POPMENU_POS_X -250
#define POPMENU_POS_Y -184
#define POPMENU_WIDTH 520
#define POPMENU_HEIGHT 370
#define POPMENU_RECT POPMENU_POS_X POPMENU_POS_Y POPMENU_WIDTH POPMENU_HEIGHT HORIZONTAL_ALIGN_CENTER VERTICAL_ALIGN_CENTER
#define ON_MENU_OPEN \
uiScript "LoadFriends"; \
setLocalVarInt "ui_centerPopup" (1);
#define ON_MENU_CLOSE \
setLocalVarInt "ui_centerPopup" (0);
#define ON_MENU_ESC \
close self;
#define ON_EXEC_KEY_F \
escape self;
menuDef
{
name MENU_NAME
rect POPMENU_RECT
popup
legacySplitScreenScale
style WINDOW_STYLE_FILLED
foreColor CHOICE_TEXTCOLOR
focusColor CHOICE_TEXTCOLOR
backColor 1 1 1 1
background "white"
MENU_ON_OPEN(ON_MENU_OPEN)
MENU_ON_CLOSE(ON_MENU_CLOSE)
MENU_ON_ESC(ON_MENU_ESC)
MENU_EXEC_KEY("f", ON_MENU_ESC)
POPUP_BACKGROUND_BASE
POPUP_TITLE(MENU_TITLE)
itemDef
{
name "friendsList"
rect 0 22 POPMENU_WIDTH 326
type ITEM_TYPE_LISTBOX
style WINDOW_STYLE_FILLED
elementWidth 120
elementHeight 16
textFont UI_FONT_NORMAL
foreColor CHOICE_TEXTCOLOR
backColor 0 0 0 0.5
outlineColor 0 0 0 0.6
textScale .25
feeder 61
visible 1
// numcols xpos xwidth textlen alignment
columns 3 8 16 4 0
42 178 51 0
226 263 52 0
doubleClick
{
uiScript "JoinFriend";
}
}
POPUP_BUTTON_FOOTER(350, "@MENU_CLOSE", close self;)
}
+453
View File
@@ -0,0 +1,453 @@
{ menuDef
{
name "popup_gamesetup"
rect 0 0 280 0 1 1
style 1
popup
forecolor 1 1 1 1
backcolor 1 1 1 1
background "white"
focuscolor 1 1 1 1
fadeCycle 1
fadeClamp 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 1
forecolor 1 1 1 1
backcolor 0 0 0 0.35
background "white"
textscale 0.55
visible when ( !localvarint( "ui_centerPopup" ) )
}
itemDef
{
rect -918 -480 1708 960 1 1
style 1
decoration
visible 1
forecolor 1 1 1 1
backcolor 1 1 1 1
background "xpbar_stencilbase"
textscale 0.55
}
itemDef
{
rect -64 0 280 0 1 1
style 1
decoration
visible 1
forecolor 1 1 1 1
backcolor 0.5 0.5 0.5 1
background "white"
textscale 0.55
exp rect h ( 24 + ( 4 ) * 20 )
}
itemDef
{
rect -64 0 1708 480 1 1
style 3
decoration
visible 1
forecolor 1 1 1 0.75
background "mw2_popup_bg_fogstencil"
textscale 0.55
exp rect x ( 0 - ( ( float( milliseconds( ) % 60000 ) / 60000 ) * ( 854 ) ) )
}
itemDef
{
rect -64 0 -1708 -480 1 1
style 3
decoration
visible 1
forecolor 0.85 0.85 0.85 1
background "mw2_popup_bg_fogscroll"
textscale 0.55
exp rect x ( 0 - ( ( float( milliseconds( ) % 60000 ) / 60000 ) * ( 854 ) ) )
}
itemDef
{
rect -64 0 280 0 1 1
style 3
decoration
visible 1
forecolor 1 1 1 1
background "mockup_popup_bg_stencilfill"
textscale 0.55
exp rect h ( ( 24 + ( 4 ) * 20 ) )
}
itemDef
{
rect -64 0 -1708 -480 1 1
style 3
decoration
visible 1
forecolor 1 1 1 0.75
background "mw2_popup_bg_fogstencil"
textscale 0.55
exp rect x ( ( - 854 ) + ( ( float( milliseconds( ) % 50000 ) / 50000 ) * ( 854 ) ) )
}
itemDef
{
rect -64 0 -1708 -480 1 1
style 3
decoration
visible 1
forecolor 0.85 0.85 0.85 1
background "mw2_popup_bg_fogscroll"
textscale 0.55
exp rect x ( ( - 854 ) + ( ( float( milliseconds( ) % 50000 ) / 50000 ) * ( 854 ) ) )
}
itemDef
{
rect -64 0 280 0 1 1
style 3
decoration
visible 1
forecolor 1 1 1 0
background "small_box_lightfx"
textscale 0.55
exp rect h ( ( 24 + ( 4 ) * 20 ) )
}
itemDef
{
rect -96 -32 32 32 1 1
style 3
decoration
visible 1
forecolor 0 0 0 1
background "drop_shadow_tl"
textscale 0.55
visible when ( !localvarint( "ui_centerPopup" ) )
}
itemDef
{
rect -64 -32 280 32 1 1
style 3
decoration
visible 1
forecolor 0 0 0 1
background "drop_shadow_t"
textscale 0.55
visible when ( !localvarint( "ui_centerPopup" ) )
}
itemDef
{
rect 216 -32 32 32 1 1
style 3
decoration
visible 1
forecolor 0 0 0 1
background "drop_shadow_tr"
textscale 0.55
visible when ( !localvarint( "ui_centerPopup" ) )
}
itemDef
{
rect 216 0 32 0 1 1
style 3
decoration
visible 1
forecolor 0 0 0 1
background "drop_shadow_r"
textscale 0.55
exp rect h ( ( 24 + ( 4 ) * 20 ) )
visible when ( !localvarint( "ui_centerPopup" ) )
}
itemDef
{
rect 216 0 32 32 1 1
style 3
decoration
visible 1
forecolor 0 0 0 1
background "drop_shadow_br"
textscale 0.55
exp rect y ( ( 0 - 0 ) + ( ( 24 + ( 4 ) * 20 ) ) )
visible when ( !localvarint( "ui_centerPopup" ) )
}
itemDef
{
rect -64 0 280 32 1 1
style 3
decoration
visible 1
forecolor 0 0 0 1
background "drop_shadow_b"
textscale 0.55
exp rect y ( ( 0 - 0 ) + ( ( 24 + ( 4 ) * 20 ) ) )
visible when ( !localvarint( "ui_centerPopup" ) )
}
itemDef
{
rect -96 0 32 32 1 1
style 3
decoration
visible 1
forecolor 0 0 0 1
background "drop_shadow_bl"
textscale 0.55
exp rect y ( ( 0 - 0 ) + ( ( 24 + ( 4 ) * 20 ) ) )
visible when ( !localvarint( "ui_centerPopup" ) )
}
itemDef
{
rect -96 0 32 0 1 1
style 3
decoration
visible 1
forecolor 0 0 0 1
background "drop_shadow_l"
textscale 0.55
exp rect h ( ( 24 + ( 4 ) * 20 ) )
visible when ( !localvarint( "ui_centerPopup" ) )
}
itemDef
{
rect 216 0 -256 0 1 1
style 1
decoration
visible 1
forecolor 1 1 1 1
backcolor 0.35 0.35 0.35 1
background "gradient_slow_fadein"
textscale 0.55
exp rect h ( 24 + ( 4 ) * 20 )
}
itemDef
{
rect -64 0 280 22 1 1
style 1
decoration
visible 1
forecolor 1 1 1 1
backcolor 1 1 1 0.25
background "gradient_fadein"
textfont 9
textalign 6
textalignx -4
textscale 0.375
text "@MENU_GAME_SETUP_CAPS"
}
itemDef
{
name "settings_change_map"
rect -64 24 336 20 1 1
group "mw2_popup_button"
style 1
visible 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_CHANGE_MAP_CAPS"
action
{
play "mouse_click";
open "settings_map";
}
onFocus
{
play "mouse_over";
if ( dvarstring( "gameMode" ) != "mp" )
{
setItemColor "mw2_popup_button" backcolor 0 0 0 0;
}
setItemColor self backcolor 0 0 0 1;
//setLocalVarBool "ui_popupAButton" ( 1 );
}
leaveFocus
{
setItemColor self backcolor 1 1 1 0;
//setLocalVarBool "ui_popupAButton" ( 0 );
}
}
itemDef
{
name "settings_change_gamemode"
rect -64 44 336 20 1 1
group "mw2_popup_button"
style 1
visible 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_CHANGE_GAME_MODE_CAPS"
action
{
play "mouse_click";
open "settings_gametype";
}
onFocus
{
play "mouse_over";
if ( dvarstring( "gameMode" ) != "mp" )
{
setItemColor "mw2_popup_button" backcolor 0 0 0 0;
}
setItemColor self backcolor 0 0 0 1;
//setLocalVarBool "ui_popupAButton" ( 1 );
}
leaveFocus
{
setItemColor self backcolor 1 1 1 0;
//setLocalVarBool "ui_popupAButton" ( 0 );
}
}
itemDef
{
name "settings_change_gamerules"
rect -64 64 336 20 1 1
group "mw2_popup_button"
style 1
visible 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_CHANGE_GAME_RULES_CAPS"
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";
}
}
onFocus
{
play "mouse_over";
if ( dvarstring( "gameMode" ) != "mp" )
{
setItemColor "mw2_popup_button" backcolor 0 0 0 0;
}
setItemColor self backcolor 0 0 0 1;
//setLocalVarBool "ui_popupAButton" ( 1 );
}
leaveFocus
{
setItemColor self backcolor 1 1 1 0;
//setLocalVarBool "ui_popupAButton" ( 0 );
}
}
itemDef
{
name "settings_offlineoptions"
rect -64 84 336 20 1 1
group "mw2_popup_button"
style 1
visible 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
visible when ( ( dvarbool( "systemlink" ) || dvarbool( "splitscreen" ) ) && dvarbool( "iwnet_allclientsauthed" ) )
exp text ( dvarstring( "ui_useonlinestats_button_name" ) )
action
{
play "mouse_click";
if ( dvarbool( "useonlinestats" ) )
{
exec "set useonlinestats 0";
exec "set ui_useonlinestats_button_name @PLATFORM_USEONLINESTATS_FALSE";
}
else
{
open "popup_statswarning";
}
}
onFocus
{
play "mouse_over";
if ( dvarstring( "gameMode" ) != "mp" )
{
setItemColor "mw2_popup_button" backcolor 0 0 0 0;
}
setItemColor self backcolor 0 0 0 1;
//setLocalVarBool "ui_popupAButton" ( 1 );
}
leaveFocus
{
setItemColor self backcolor 1 1 1 0;
//setLocalVarBool "ui_popupAButton" ( 0 );
}
}
}
}
@@ -0,0 +1,71 @@
#include "ui/menudef.h"
#include "ui_mp/main.inc"
#include "ui_mp/popup.inc"
#define MENU_NAME "popup_joinpassword"
#define MENU_TITLE "@MENU_PASSWORD"
#define POPMENU_POS_X -150
#define POPMENU_POS_Y -84
#define POPMENU_WIDTH 300
#define POPMENU_HEIGHT 84
#define POPMENU_RECT POPMENU_POS_X POPMENU_POS_Y POPMENU_WIDTH POPMENU_HEIGHT HORIZONTAL_ALIGN_CENTER VERTICAL_ALIGN_CENTER
#define ITEM_PASSWORDENTRY \
itemDef \
{ \
name "passwordEntry" \
rect 10 32 (POPMENU_WIDTH - 20) 20 HORIZONTAL_ALIGN_CENTER VERTICAL_ALIGN_CENTER \
style WINDOW_STYLE_FILLED \
foreColor CHOICE_TEXTCOLOR \
backColor 0 0 0 0.3 \
type ITEM_TYPE_EDITFIELD \
textFont UI_FONT_SMALL \
textAlignX 5 \
textAlignY 18 \
textScale CHOICE_TEXTSIZE \
visible 1 \
text " " \
dvar "password" \
maxChars 32 \
maxPaintChars 32 \
accept \
{ \
close self; \
} \
}
#define ON_MENU_OPEN \
setLocalVarInt "ui_centerPopup" (1); \
setFocus "passwordEntry";
#define ON_MENU_CLOSE \
setLocalVarInt "ui_centerPopup" (0);
#define ON_MENU_ESC \
close self;
menuDef
{
name MENU_NAME
rect POPMENU_RECT
popup
legacySplitScreenScale
style WINDOW_STYLE_FILLED
foreColor CHOICE_TEXTCOLOR
focusColor CHOICE_TEXTCOLOR
backColor 1 1 1 1
background "white"
MENU_ON_OPEN(ON_MENU_OPEN)
MENU_ON_CLOSE(ON_MENU_CLOSE)
MENU_ON_ESC(ON_MENU_ESC)
POPUP_BACKGROUND_BASE
POPUP_TITLE2(MENU_TITLE)
ITEM_PASSWORDENTRY
POPUP_BUTTON_FOOTER(64, "@MENU_OK", close self;)
}
+73
View File
@@ -0,0 +1,73 @@
#include "ui/menudef.h"
#include "ui_mp/main.inc"
#include "ui_mp/popup.inc"
#define MENU_NAME "popup_playername"
#define MENU_TITLE "@MENU_PLAYER_NAME"
#define POPMENU_POS_X -150
#define POPMENU_POS_Y -84
#define POPMENU_WIDTH 300
#define POPMENU_HEIGHT 84
#define POPMENU_RECT POPMENU_POS_X POPMENU_POS_Y POPMENU_WIDTH POPMENU_HEIGHT HORIZONTAL_ALIGN_CENTER VERTICAL_ALIGN_CENTER
#define ITEM_NAMEENTRY \
itemDef \
{ \
name "nameEntry" \
rect 10 32 (POPMENU_WIDTH - 20) 20 HORIZONTAL_ALIGN_CENTER VERTICAL_ALIGN_CENTER \
style WINDOW_STYLE_FILLED \
foreColor CHOICE_TEXTCOLOR \
backColor 0 0 0 0.3 \
type ITEM_TYPE_EDITFIELD \
textFont UI_FONT_SMALL \
textAlignX 5 \
textAlignY 18 \
textScale CHOICE_TEXTSIZE \
visible 1 \
text " " \
dvar "ui_name" \
maxChars 15 \
maxPaintChars 15 \
accept \
{ \
exec "setfromdvar name ui_name"; \
close self; \
} \
}
#define ON_MENU_OPEN \
setLocalVarInt "ui_centerPopup" (1); \
exec "setfromdvar ui_name name"; \
setFocus "nameEntry";
#define ON_MENU_CLOSE \
setLocalVarInt "ui_centerPopup" (0);
#define ON_MENU_ESC \
close self;
menuDef
{
name MENU_NAME
rect POPMENU_RECT
popup
legacySplitScreenScale
style WINDOW_STYLE_FILLED
foreColor CHOICE_TEXTCOLOR
focusColor CHOICE_TEXTCOLOR
backColor 1 1 1 1
background "white"
MENU_ON_OPEN(ON_MENU_OPEN)
MENU_ON_CLOSE(ON_MENU_CLOSE)
MENU_ON_ESC(ON_MENU_ESC)
POPUP_BACKGROUND_BASE
POPUP_TITLE2(MENU_TITLE)
ITEM_NAMEENTRY
POPUP_BUTTON_FOOTER(64, "@MENU_CLOSE", exec "setfromdvar name ui_name"; close self;)
}
+393
View File
@@ -0,0 +1,393 @@
#include "ui_mp/emz_macros.inc"
{
menuDef
{
name "popup_ready"
rect 0 0 854 184 1 1
style 1
popup
forecolor 1 1 1 1
backcolor 1 1 1 1
background "white"
focuscolor 1 1 1 1
fadeCycle 1
fadeClamp 1
fadeAmount 0.1
popup
outOfBoundsClick
visible when ( localvarint( "ui_tabDepth" ) == localvarint( "ui_popup_cac_sniper_primary_tabDepth" ) )
exp rect y ( localvarfloat( "ui_popupYPos" ) + localvarint( "ui_tabDepth" ) * 20 )
onOpen
{
setLocalVarInt "ui_tabDepth" ( localvarint( "ui_tabDepth" ) + 1 );
setLocalVarInt "ui_popup_cac_sniper_primary_tabDepth" ( localvarint( "ui_tabDepth" ) );
CLASS_FOCUS("mosin")
}
onClose
{
setLocalVarInt "ui_tabDepth" ( localvarint( "ui_tabDepth" ) - 1 );
}
onEsc
{
close self;
}
#define ITEMNUM 9
#include "ui_mp/popup_cac_background.inc"
CAC_PRIMARY_WEAPON(0,"mosin")
itemDef
{
rect -56 0 200 184 2 1
style 3
decoration
visible 1
forecolor 1 1 1 0.5
background "small_box_lightfx"
textscale 0.55
}
itemDef
{
rect -56 0 200 184 2 1
decoration
visible 1
forecolor 1 1 1 1
textfont 9
textalign 4
textalignx 4
textscale 0.375
exp text ( "@" + tablelookup( "mp/statsTable.csv" , 4 , localvarstring( "ui_selected_ref" ) , 3 ) )
}
itemDef
{
rect -56 10 200 100 2 1
style 3
decoration
visible 1
forecolor 1 1 1 1
textscale 0.55
exp material ( tablelookup( "mp/statsTable.csv" , 4 , localvarstring( "ui_selected_ref" ) , 6 ) )
}
itemDef
{
rect -56 0 200 184 2 1
decoration
autowrapped
visible 1
forecolor 1 1 1 0.65
textfont 3
textalign 4
textalignx 4
textaligny 104
textscale 0.375
visible when ( isitemunlocked( localvarstring( "ui_selected_ref" ) ) )
exp text ( "@" + tablelookup( "mp/statstable.csv" , 4 , localvarstring( "ui_selected_ref" ) , 7 ) )
}
itemDef
{
rect -56 0 200 184 2 1
decoration
autowrapped
visible 1
forecolor 1 1 1 0.65
textfont 3
textalign 4
textalignx 4
textaligny 104
textscale 0.375
visible when ( !isitemunlocked( localvarstring( "ui_selected_ref" ) ) )
exp text ( "@" + tablelookup( "mp/rankTable.csv" , 0 , tablelookup( "mp/unlockTable.csv" , 0 , localvarstring( "ui_selected_ref" ) , 2 ) , 17 ) )
}
itemDef
{
rect -56 0 200 184 2 1
decoration
autowrapped
visible 1
forecolor 1 1 1 0.65
textfont 3
textalign 4
textalignx 4
textaligny 144
textscale 0.375
text "@PLATFORM_VIEW_CHALLENGES"
visible when ( isitemunlocked( localvarstring( "ui_selected_ref" ) ) && ( tablelookup( "mp/challengeTable.csv" , 6 , localvarstring( "ui_selected_ref" ) , 4 ) ) != "" )
}
itemDef
{
rect -128 22 120 4 3 1
style 1
decoration
visible 1
forecolor 1 1 1 0.65
backcolor 0 0 0 1
background "gradient_fadein"
textfont 3
textalign 6
textaligny -20
textscale 0.375
text "@MPUI_ACCURACY"
visible when ( tablelookup( "mp/statsTable.csv" , 4 , localvarstring( "ui_selected_ref" ) , 22 ) && 1 )
}
itemDef
{
rect -128 22 120 2 3 1
style 3
decoration
visible 1
forecolor 0.75 1 0.7 0.85
background "white"
textscale 0.55
exp rect w ( ( tablelookup( "mp/statsTable.csv" , 4 , localvarstring( "ui_selected_ref" ) , 22 ) / 100 ) * 120 )
visible when ( tablelookup( "mp/statsTable.csv" , 4 , localvarstring( "ui_selected_ref" ) , 22 ) && 1 )
}
itemDef
{
rect -128 22 120 2 3 1
style 3
decoration
visible 1
forecolor 0.85 0.85 0.85 1
background "gradient_fadein"
textscale 0.55
exp rect w ( ( tablelookup( "mp/statsTable.csv" , 4 , localvarstring( "ui_selected_ref" ) , 22 ) / 100 ) * 120 )
visible when ( tablelookup( "mp/statsTable.csv" , 4 , localvarstring( "ui_selected_ref" ) , 22 ) && 1 )
}
itemDef
{
rect -128 22 120 2 3 1
style 3
decoration
visible 1
forecolor 1 1 0.25 0.65
background "white"
textscale 0.55
exp rect x ( - 64 + ( 0 - 120 * ( tablelookup( "mp/statsTable.csv" , 4 , localvarstring( "ui_selected_ref" ) , 22 ) / 100 ) ) + ( ( 0 - 120 * ( 0 / 100 ) ) * ( 0 < 0 ) ) )
exp rect w ( min( 120 * ( 0 / 100 ) , ( 1 - ( tablelookup( "mp/statsTable.csv" , 4 , localvarstring( "ui_selected_ref" ) , 22 ) / 100 ) ) * 120 ) )
exp forecolor r ( ( 0 < 0 ) * 0.45 + 0.25 )
exp forecolor g ( ( 0 > 0 ) * 0.45 + 0.25 )
visible when ( tablelookup( "mp/statsTable.csv" , 4 , localvarstring( "ui_selected_ref" ) , 22 ) && 1 )
}
itemDef
{
rect -128 48 120 4 3 1
style 1
decoration
visible 1
forecolor 1 1 1 0.65
backcolor 0 0 0 1
background "gradient_fadein"
textfont 3
textalign 6
textaligny -20
textscale 0.375
text "@MPUI_DAMAGE"
visible when ( tablelookup( "mp/statsTable.csv" , 4 , localvarstring( "ui_selected_ref" ) , 23 ) && 1 )
}
itemDef
{
rect -128 48 120 2 3 1
style 3
decoration
visible 1
forecolor 0.75 1 0.7 0.85
background "white"
textscale 0.55
exp rect w ( ( tablelookup( "mp/statsTable.csv" , 4 , localvarstring( "ui_selected_ref" ) , 23 ) / 100 ) * 120 )
visible when ( tablelookup( "mp/statsTable.csv" , 4 , localvarstring( "ui_selected_ref" ) , 23 ) && 1 )
}
itemDef
{
rect -128 48 120 2 3 1
style 3
decoration
visible 1
forecolor 0.85 0.85 0.85 1
background "gradient_fadein"
textscale 0.55
exp rect w ( ( tablelookup( "mp/statsTable.csv" , 4 , localvarstring( "ui_selected_ref" ) , 23 ) / 100 ) * 120 )
visible when ( tablelookup( "mp/statsTable.csv" , 4 , localvarstring( "ui_selected_ref" ) , 23 ) && 1 )
}
itemDef
{
rect -128 48 120 2 3 1
style 3
decoration
visible 1
forecolor 1 1 0.25 0.65
background "white"
textscale 0.55
exp rect x ( - 64 + ( 0 - 120 * ( tablelookup( "mp/statsTable.csv" , 4 , localvarstring( "ui_selected_ref" ) , 23 ) / 100 ) ) + ( ( 0 - 120 * ( 0 / 100 ) ) * ( 0 < 0 ) ) )
exp rect w ( min( 120 * ( 0 / 100 ) , ( 1 - ( tablelookup( "mp/statsTable.csv" , 4 , localvarstring( "ui_selected_ref" ) , 23 ) / 100 ) ) * 120 ) )
exp forecolor r ( ( 0 < 0 ) * 0.45 + 0.25 )
exp forecolor g ( ( 0 > 0 ) * 0.45 + 0.25 )
visible when ( tablelookup( "mp/statsTable.csv" , 4 , localvarstring( "ui_selected_ref" ) , 23 ) && 1 )
}
itemDef
{
rect -128 74 120 4 3 1
style 1
decoration
visible 1
forecolor 1 1 1 0.65
backcolor 0 0 0 1
background "gradient_fadein"
textfont 3
textalign 6
textaligny -20
textscale 0.375
text "@MPUI_RANGE"
visible when ( tablelookup( "mp/statsTable.csv" , 4 , localvarstring( "ui_selected_ref" ) , 24 ) && 1 )
}
itemDef
{
rect -128 74 120 2 3 1
style 3
decoration
visible 1
forecolor 0.75 1 0.7 0.85
background "white"
textscale 0.55
exp rect w ( ( tablelookup( "mp/statsTable.csv" , 4 , localvarstring( "ui_selected_ref" ) , 24 ) / 100 ) * 120 )
visible when ( tablelookup( "mp/statsTable.csv" , 4 , localvarstring( "ui_selected_ref" ) , 24 ) && 1 )
}
itemDef
{
rect -128 74 120 2 3 1
style 3
decoration
visible 1
forecolor 0.85 0.85 0.85 1
background "gradient_fadein"
textscale 0.55
exp rect w ( ( tablelookup( "mp/statsTable.csv" , 4 , localvarstring( "ui_selected_ref" ) , 24 ) / 100 ) * 120 )
visible when ( tablelookup( "mp/statsTable.csv" , 4 , localvarstring( "ui_selected_ref" ) , 24 ) && 1 )
}
itemDef
{
rect -128 74 120 2 3 1
style 3
decoration
visible 1
forecolor 1 1 0.25 0.65
background "white"
textscale 0.55
exp rect x ( - 64 + ( 0 - 120 * ( tablelookup( "mp/statsTable.csv" , 4 , localvarstring( "ui_selected_ref" ) , 24 ) / 100 ) ) + ( ( 0 - 120 * ( 0 / 100 ) ) * ( 0 < 0 ) ) )
exp rect w ( min( 120 * ( 0 / 100 ) , ( 1 - ( tablelookup( "mp/statsTable.csv" , 4 , localvarstring( "ui_selected_ref" ) , 24 ) / 100 ) ) * 120 ) )
exp forecolor r ( ( 0 < 0 ) * 0.45 + 0.25 )
exp forecolor g ( ( 0 > 0 ) * 0.45 + 0.25 )
visible when ( tablelookup( "mp/statsTable.csv" , 4 , localvarstring( "ui_selected_ref" ) , 24 ) && 1 )
}
itemDef
{
rect -128 100 120 4 3 1
style 1
decoration
visible 1
forecolor 1 1 1 0.65
backcolor 0 0 0 1
background "gradient_fadein"
textfont 3
textalign 6
textaligny -20
textscale 0.375
text "@MPUI_FIRE_RATE"
visible when ( tablelookup( "mp/statsTable.csv" , 4 , localvarstring( "ui_selected_ref" ) , 25 ) && 1 )
}
itemDef
{
rect -128 100 120 2 3 1
style 3
decoration
visible 1
forecolor 0.75 1 0.7 0.85
background "white"
textscale 0.55
exp rect w ( ( tablelookup( "mp/statsTable.csv" , 4 , localvarstring( "ui_selected_ref" ) , 25 ) / 100 ) * 120 )
visible when ( tablelookup( "mp/statsTable.csv" , 4 , localvarstring( "ui_selected_ref" ) , 25 ) && 1 )
}
itemDef
{
rect -128 100 120 2 3 1
style 3
decoration
visible 1
forecolor 0.85 0.85 0.85 1
background "gradient_fadein"
textscale 0.55
exp rect w ( ( tablelookup( "mp/statsTable.csv" , 4 , localvarstring( "ui_selected_ref" ) , 25 ) / 100 ) * 120 )
visible when ( tablelookup( "mp/statsTable.csv" , 4 , localvarstring( "ui_selected_ref" ) , 25 ) && 1 )
}
itemDef
{
rect -128 100 120 2 3 1
style 3
decoration
visible 1
forecolor 1 1 0.25 0.65
background "white"
textscale 0.55
exp rect x ( - 64 + ( 0 - 120 * ( tablelookup( "mp/statsTable.csv" , 4 , localvarstring( "ui_selected_ref" ) , 25 ) / 100 ) ) + ( ( 0 - 120 * ( 0 / 100 ) ) * ( 0 < 0 ) ) )
exp rect w ( min( 120 * ( 0 / 100 ) , ( 1 - ( tablelookup( "mp/statsTable.csv" , 4 , localvarstring( "ui_selected_ref" ) , 25 ) / 100 ) ) * 120 ) )
exp forecolor r ( ( 0 < 0 ) * 0.45 + 0.25 )
exp forecolor g ( ( 0 > 0 ) * 0.45 + 0.25 )
visible when ( tablelookup( "mp/statsTable.csv" , 4 , localvarstring( "ui_selected_ref" ) , 25 ) && 1 )
}
itemDef
{
rect -128 126 120 4 3 1
style 1
decoration
visible 1
forecolor 1 1 1 0.65
backcolor 0 0 0 1
background "gradient_fadein"
textfont 3
textalign 6
textaligny -20
textscale 0.375
text "@MPUI_MOBILITY"
visible when ( tablelookup( "mp/statsTable.csv" , 4 , localvarstring( "ui_selected_ref" ) , 26 ) && 1 )
}
itemDef
{
rect -128 126 120 2 3 1
style 3
decoration
visible 1
forecolor 0.75 1 0.7 0.85
background "white"
textscale 0.55
exp rect w ( ( tablelookup( "mp/statsTable.csv" , 4 , localvarstring( "ui_selected_ref" ) , 26 ) / 100 ) * 120 )
visible when ( tablelookup( "mp/statsTable.csv" , 4 , localvarstring( "ui_selected_ref" ) , 26 ) && 1 )
}
itemDef
{
rect -128 126 120 2 3 1
style 3
decoration
visible 1
forecolor 0.85 0.85 0.85 1
background "gradient_fadein"
textscale 0.55
exp rect w ( ( tablelookup( "mp/statsTable.csv" , 4 , localvarstring( "ui_selected_ref" ) , 26 ) / 100 ) * 120 )
visible when ( tablelookup( "mp/statsTable.csv" , 4 , localvarstring( "ui_selected_ref" ) , 26 ) && 1 )
}
itemDef
{
rect -128 126 120 2 3 1
style 3
decoration
visible 1
forecolor 1 1 0.25 0.65
background "white"
textscale 0.55
exp rect x ( - 64 + ( 0 - 120 * ( tablelookup( "mp/statsTable.csv" , 4 , localvarstring( "ui_selected_ref" ) , 26 ) / 100 ) ) + ( ( 0 - 120 * ( 0 / 100 ) ) * ( 0 < 0 ) ) )
exp rect w ( min( 120 * ( 0 / 100 ) , ( 1 - ( tablelookup( "mp/statsTable.csv" , 4 , localvarstring( "ui_selected_ref" ) , 26 ) / 100 ) ) * 120 ) )
exp forecolor r ( ( 0 < 0 ) * 0.45 + 0.25 )
exp forecolor g ( ( 0 > 0 ) * 0.45 + 0.25 )
visible when ( tablelookup( "mp/statsTable.csv" , 4 , localvarstring( "ui_selected_ref" ) , 26 ) && 1 )
}
}
}
@@ -0,0 +1,73 @@
#include "ui/menudef.h"
#include "ui_mp/main.inc"
#include "ui_mp/popup.inc"
#define MENU_NAME "popup_serverpassword"
#define MENU_TITLE "@MENU_PASSWORD"
#define POPMENU_POS_X -150
#define POPMENU_POS_Y -84
#define POPMENU_WIDTH 300
#define POPMENU_HEIGHT 84
#define POPMENU_RECT POPMENU_POS_X POPMENU_POS_Y POPMENU_WIDTH POPMENU_HEIGHT HORIZONTAL_ALIGN_CENTER VERTICAL_ALIGN_CENTER
#define ITEM_PASSWORDENTRY \
itemDef \
{ \
name "passwordEntry" \
rect 10 32 (POPMENU_WIDTH - 20) 20 HORIZONTAL_ALIGN_CENTER VERTICAL_ALIGN_CENTER \
style WINDOW_STYLE_FILLED \
foreColor CHOICE_TEXTCOLOR \
backColor 0 0 0 0.3 \
type ITEM_TYPE_EDITFIELD \
textFont UI_FONT_SMALL \
textAlignX 5 \
textAlignY 18 \
textScale CHOICE_TEXTSIZE \
visible 1 \
text " " \
dvar "ui_password" \
maxChars 32 \
maxPaintChars 32 \
accept \
{ \
exec "setfromdvar g_password ui_password"; \
close self; \
} \
}
#define ON_MENU_OPEN \
setLocalVarInt "ui_centerPopup" (1); \
exec "setfromdvar ui_password g_password"; \
setFocus "passwordEntry";
#define ON_MENU_CLOSE \
setLocalVarInt "ui_centerPopup" (0);
#define ON_MENU_ESC \
close self;
menuDef
{
name MENU_NAME
rect POPMENU_RECT
popup
legacySplitScreenScale
style WINDOW_STYLE_FILLED
foreColor CHOICE_TEXTCOLOR
focusColor CHOICE_TEXTCOLOR
backColor 1 1 1 1
background "white"
MENU_ON_OPEN(ON_MENU_OPEN)
MENU_ON_CLOSE(ON_MENU_CLOSE)
MENU_ON_ESC(ON_MENU_ESC)
POPUP_BACKGROUND_BASE
POPUP_TITLE2(MENU_TITLE)
ITEM_PASSWORDENTRY
POPUP_BUTTON_FOOTER(64, "@MENU_OK", close self;)
}
+69
View File
@@ -0,0 +1,69 @@
#ifdef PC
#undef CHOICE_X_START
#define CHOICE_X_START ((CHOICE_POPUP_WIDTH - CHOICE_SIZE_X) / 2)
#undef CHOICE_Y_START
#define CHOICE_Y_START (CHOICE_POPUP_TITLE_HEIGHT + CHOICE_POPUP_BORDER_Y )
#undef CHOICE_SEP_TOTAL_SPACING
#define CHOICE_SEP_TOTAL_SPACING( itemIndex ) 0
#undef CHOICE_GROUP
#define CHOICE_GROUP "popmenu"
#undef CHOICE_SIZE_X
#define CHOICE_SIZE_X 180
#undef POPUP_NOPOS
#endif
#ifdef POPUP_NOPOS
#undef CHOICE_X_START
#define CHOICE_X_START ((CHOICE_POPUP_WIDTH - CHOICE_SIZE_X) / 2 - 2)
#undef CHOICE_Y_START
#define CHOICE_Y_START (CHOICE_POPUP_TITLE_HEIGHT + CHOICE_POPUP_BORDER_Y - 3)
#undef CHOICE_SEP_TOTAL_SPACING
#define CHOICE_SEP_TOTAL_SPACING( itemIndex ) 0
#undef CHOICE_GROUP
#define CHOICE_GROUP "popmenu"
#endif
#ifdef POPUP_HAS_TITLE
#undef CHOICE_POPUP_TITLE_HEIGHT
#define CHOICE_POPUP_TITLE_HEIGHT (24)
#endif
// -------------------------------------------
#undef CHOICE_SIZE_Y
#define CHOICE_SIZE_Y 18
#undef CHOICE_TEXTSIZE
#define CHOICE_TEXTSIZE TEXTSIZE_SMALL
#undef HIGHLIGHT_COLOR
#define HIGHLIGHT_COLOR 0.9 0.95 1 0.25
#undef CHOICE_POPUP_BORDER_X
#define CHOICE_POPUP_BORDER_X 4
#undef CHOICE_POPUP_BORDER_Y
#define CHOICE_POPUP_BORDER_Y 4
#undef CHOICE_POPUP_BACKCOLOR
#define CHOICE_POPUP_BACKCOLOR 0.2 0.2 0.22 1 //0.85
#undef CHOICE_POPUP_BORDER_COLOR
#define CHOICE_POPUP_BORDER_COLOR 0.4 0.4 0.42 1
#undef A_BUTTON_SIZE
#define A_BUTTON_SIZE 0.3
#undef A_BUTTON_OFFSET_X
#define A_BUTTON_OFFSET_X -2
#ifdef PC
#undef CHOICE_TEXTSIZE
#define CHOICE_TEXTSIZE 0.4
#endif
+123
View File
@@ -0,0 +1,123 @@
#include "ui/menudef.h"
#include "ui_mp/common_macro.inc"
#define CHOICE_GROUP "quickmessage"
#include "ui_mp/menustyle.inc"
#include "ui/choices_setup_common.menu"
#include "ui_mp/popupstyle.inc"
#include "ui/choices_setup_popmenu.menu"
#undef CHOICE_SIZE_X
#define CHOICE_SIZE_X 186
#undef CHOICE_POPUP_BACKCOLOR
#define CHOICE_POPUP_BACKCOLOR 0.2 0.2 0.22 0.65
#define ORIGIN_QUICKMESSAGEWINDOW 0 16
#undef CHOICE_POPUP_BACKCOLOR
#define CHOICE_POPUP_BACKCOLOR 0.2 0.2 0.22 0.65
#define ITEM_COUNT 6
{
menuDef
{
name quickmessage
visible 0
fullscreen 0
rect -52 314 CHOICE_POPUP_WIDTH CHOICE_POPUP_HEIGHT( ITEM_COUNT ) CHOICE_HORIZONTAL_ALIGN CHOICE_VERTICAL_ALIGN
border 1
borderSize 2
borderColor 0 0 0 0
focusColor 1 1 1 1
style 1
popup
onOpen
{
close "quickcommands";
close "quickstatements";
close "quickresponses";
setDvar cl_bypassMouseInput 1;
}
onClose
{
setDvar cl_bypassMouseInput 0;
}
onEsc
{
play "mouse_click";
close self;
}
PREPROC_SHADER_DRAW( -4 -4 CHOICE_POPUP_WIDTH CHOICE_POPUP_HEIGHT( ITEM_COUNT ), 0 0, "white", CHOICE_POPUP_BACKCOLOR, 1, CHOICE_POPUP_BORDER_WIDTH, CHOICE_POPUP_BORDER_COLOR )
PREPROC_SHADER_DRAW( -4 -4 CHOICE_POPUP_WIDTH CHOICE_POPUP_HEIGHT( ITEM_COUNT ), 0 0, "gradient_bottom", 1 1 1 0.7, 1, CHOICE_POPUP_BORDER_WIDTH, CHOICE_POPUP_BORDER_COLOR )
CHOICE_POPMENU_TITLE( "@QUICKMESSAGE_QUICK_MESSAGE" )
itemDef
{
name "window"
visible 1
rect 16 20 0 0
origin ORIGIN_QUICKMESSAGEWINDOW
forecolor 1 1 1 1
textfont UI_FONT_NORMAL
textstyle ITEM_TEXTSTYLE_SHADOWED
textscale TEXTSIZE_SMALL
textaligny 8
text "@QUICKMESSAGE_1_COMMANDS"
decoration
}
execKey "1" { close self; open quickcommands }
itemDef
{
name "window"
visible 1
rect 16 36 0 0
origin ORIGIN_QUICKMESSAGEWINDOW
forecolor 1 1 1 1
textfont UI_FONT_NORMAL
textstyle ITEM_TEXTSTYLE_SHADOWED
textscale TEXTSIZE_SMALL
textaligny 8
text "@QUICKMESSAGE_2_STATEMENTS"
decoration
}
execKey "2" { close self; open quickstatements }
itemDef
{
name "window"
visible 1
rect 16 52 0 0
origin ORIGIN_QUICKMESSAGEWINDOW
forecolor 1 1 1 1
textfont UI_FONT_NORMAL
textstyle ITEM_TEXTSTYLE_SHADOWED
textscale TEXTSIZE_SMALL
textaligny 8
text "@QUICKMESSAGE_3_RESPONSES"
decoration
}
execKey "3" { close self; open quickresponses }
itemDef
{
name "window"
visible 1
rect 16 84 0 0
origin ORIGIN_QUICKMESSAGEWINDOW
forecolor 1 1 1 1
textfont UI_FONT_NORMAL
textstyle ITEM_TEXTSTYLE_SHADOWED
textscale TEXTSIZE_SMALL
textaligny 8
text "@QUICKMESSAGE_ESC_EXIT"
decoration
}
}
}
+161
View File
@@ -0,0 +1,161 @@
{
menuDef
{
name "resetclass"
rect 0 0 0 0 0 0
decoration
forecolor 1 1 1 1
fadeCycle 1
fadeClamp 1
fadeAmount 0.1
onOpen
{
setLocalVarInt "classIndex" ( dvarInt("ui_checkclass") )
if ( !isitemunlocked( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "weapon" ) ) || getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "weapon" ) == "none" )
{
setLocalVarString "temp" ( debugprint( "Stats" , "Weapon " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "weapon" ) + " locked for class " + localvarint( "classIndex" ) + "; resetting" ) );
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadout" + "Primary" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 0 , "weapon" , "localVarString" ( "dataValue" ) );
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadout" + "Primary" + "Attachment" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 0 , "attachment" , 0 , "localVarString" ( "dataValue" ) );
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadout" + "Primary" + "Attachment2" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 0 , "attachment" , 1 , "localVarString" ( "dataValue" ) );
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadout" + "Primary" + "Camo" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 0 , "camo" , "localVarString" ( "dataValue" ) );
}
if ( !isitemunlocked( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "weapon" ) + " " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "attachment" , 0 ) ) )
{
setLocalVarString "temp" ( debugprint( "Stats" , "Attachment " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "weapon" ) + " " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "attachment" , 0 ) + " locked for class " + localvarint( "classIndex" ) + "; resetting" ) );
setLocalVarString "dataValue" ( "none" );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 0 , "attachment" , 0 , "localVarString" ( "dataValue" ) );
}
if ( !isitemunlocked( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "weapon" ) + " " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "attachment" , 1 ) ) )
{
setLocalVarString "temp" ( debugprint( "Stats" , "Attachment2 " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "weapon" ) + " " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "attachment" , 1 ) + " locked for class " + localvarint( "classIndex" ) + "; resetting" ) );
setLocalVarString "dataValue" ( "none" );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 0 , "attachment" , 1 , "localVarString" ( "dataValue" ) );
}
if ( !isitemunlocked( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "weapon" ) + " " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "camo" ) ) )
{
setLocalVarString "temp" ( debugprint( "Stats" , "Camo " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "weapon" ) + " " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "camo" ) + " locked for class " + localvarint( "classIndex" ) + "; resetting" ) );
setLocalVarString "dataValue" ( "none" );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 0 , "camo" , "localVarString" ( "dataValue" ) );
}
if ( !isitemunlocked( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "weapon" ) ) || getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "weapon" ) == "none" )
{
setLocalVarString "temp" ( debugprint( "Stats" , "Weapon " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "weapon" ) + " locked for class " + localvarint( "classIndex" ) + "; resetting" ) );
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadout" + "Secondary" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "weapon" , "localVarString" ( "dataValue" ) );
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadout" + "Secondary" + "Attachment" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 0 , "localVarString" ( "dataValue" ) );
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadout" + "Secondary" + "Attachment2" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 1 , "localVarString" ( "dataValue" ) );
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadout" + "Secondary" + "Camo" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "camo" , "localVarString" ( "dataValue" ) );
}
if ( !isitemunlocked( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "weapon" ) + " " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 0 ) ) )
{
setLocalVarString "temp" ( debugprint( "Stats" , "Attachment " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "weapon" ) + " " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 0 ) + " locked for class " + localvarint( "classIndex" ) + "; resetting" ) );
setLocalVarString "dataValue" ( "none" );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 0 , "localVarString" ( "dataValue" ) );
}
if ( !isitemunlocked( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "weapon" ) + " " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 1 ) ) )
{
setLocalVarString "temp" ( debugprint( "Stats" , "Attachment2 " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "weapon" ) + " " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 1 ) + " locked for class " + localvarint( "classIndex" ) + "; resetting" ) );
setLocalVarString "dataValue" ( "none" );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 1 , "localVarString" ( "dataValue" ) );
}
if ( !isitemunlocked( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "weapon" ) + " " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "camo" ) ) )
{
setLocalVarString "temp" ( debugprint( "Stats" , "Camo " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "weapon" ) + " " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "camo" ) + " locked for class " + localvarint( "classIndex" ) + "; resetting" ) );
setLocalVarString "dataValue" ( "none" );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "camo" , "localVarString" ( "dataValue" ) );
}
if ( !isitemunlocked( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 0 ) ) || getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 0 ) == "specialty_null" )
{
setLocalVarString "temp" ( debugprint( "Stats" , "Equipment " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 0 ) + " locked for class " + localvarint( "classIndex" ) + "; resetting" ) );
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadoutEquipment" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "perks" , 0 , "localVarString" ( "dataValue" ) );
}
if ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "specialGrenade" ) == "none" )
{
setLocalVarString "temp" ( debugprint( "Stats" , "Secondary offhand " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "specialGrenade" ) + " locked for class " + localvarint( "classIndex" ) + "; resetting" ) );
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadoutOffhand" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "specialGrenade" , "localVarString" ( "dataValue" ) );
}
if ( !isitemunlocked( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 1 ) ) || tablelookup( "mp/perkTable.csv" , 1 , getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 1 ) , 5 ) != ( "perk1" ) || getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 1 ) == "specialty_null" )
{
setLocalVarString "temp" ( debugprint( "Stats" , "Perk " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 1 ) + " locked for class " + localvarint( "classIndex" ) + "; resetting" ) );
if ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 1 ) == "specialty_bling" )
{
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 0 , "attachment" , 1 , "none" ) setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 1 , "none" );
}
if ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 1 ) == "specialty_onemanarmy" )
{
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadout" + "Secondary" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "weapon" , "localVarString" ( "dataValue" ) );
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadout" + "Secondary" + "Attachment" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 0 , "localVarString" ( "dataValue" ) );
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadout" + "Secondary" + "Attachment2" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 1 , "localVarString" ( "dataValue" ) );
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadout" + "Secondary" + "Camo" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "camo" , "localVarString" ( "dataValue" ) );
}
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadoutPerk" + 1 , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "perks" , 1 , "localVarString" ( "dataValue" ) );
}
if ( !isitemunlocked( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 2 ) ) || tablelookup( "mp/perkTable.csv" , 1 , getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 2 ) , 5 ) != ( "perk2" ) || getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 2 ) == "specialty_null" )
{
setLocalVarString "temp" ( debugprint( "Stats" , "Perk " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 2 ) + " locked for class " + localvarint( "classIndex" ) + "; resetting" ) );
if ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 2 ) == "specialty_bling" )
{
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 0 , "attachment" , 1 , "none" ) setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 1 , "none" );
}
if ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 2 ) == "specialty_onemanarmy" )
{
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadout" + "Secondary" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "weapon" , "localVarString" ( "dataValue" ) );
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadout" + "Secondary" + "Attachment" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 0 , "localVarString" ( "dataValue" ) );
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadout" + "Secondary" + "Attachment2" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 1 , "localVarString" ( "dataValue" ) );
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadout" + "Secondary" + "Camo" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "camo" , "localVarString" ( "dataValue" ) );
}
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadoutPerk" + 2 , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "perks" , 2 , "localVarString" ( "dataValue" ) );
}
if ( !isitemunlocked( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 3 ) ) || tablelookup( "mp/perkTable.csv" , 1 , getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 3 ) , 5 ) != ( "perk3" ) || getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 3 ) == "specialty_null" )
{
setLocalVarString "temp" ( debugprint( "Stats" , "Perk " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 3 ) + " locked for class " + localvarint( "classIndex" ) + "; resetting" ) );
if ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 3 ) == "specialty_bling" )
{
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 0 , "attachment" , 1 , "none" ) setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 1 , "none" );
}
if ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 3 ) == "specialty_onemanarmy" )
{
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadout" + "Secondary" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "weapon" , "localVarString" ( "dataValue" ) );
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadout" + "Secondary" + "Attachment" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 0 , "localVarString" ( "dataValue" ) );
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadout" + "Secondary" + "Attachment2" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 1 , "localVarString" ( "dataValue" ) );
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadout" + "Secondary" + "Camo" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "weaponSetups" , 1 , "camo" , "localVarString" ( "dataValue" ) );
}
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadoutPerk" + 3 , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "perks" , 3 , "localVarString" ( "dataValue" ) );
}
if ( !isitemunlocked( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 4 ) ) || tablelookup( "mp/perkTable.csv" , 1 , getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 4 ) , 5 ) != "perk4" || getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 4 ) == "specialty_null" )
{
setLocalVarString "temp" ( debugprint( "Stats" , "Deathstreak " + getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 4 ) + " locked for class " + localvarint( "classIndex" ) + "; resetting" ) );
setLocalVarString "dataValue" ( tablelookup( "mp/classTable.csv" , 0 , "loadoutDeathStreak" , ( localvarint( "classIndex" ) % 5 ) + 6 ) );
setPlayerData( "customClasses" , "localVarInt" ( "classIndex" ) , "perks" , 4 , "localVarString" ( "dataValue" ) );
}
close self;
}
}
}
File diff suppressed because it is too large. Load diff
+761
View File
@@ -0,0 +1,761 @@
{
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 "@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 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 "@MPUI_MUTE_PLAYERS"
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_endgame"
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
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 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
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 );
}
}
}
}
File diff suppressed because it is too large. Load diff
@@ -0,0 +1,208 @@
#include "ui/menudef.h"
#include "ui_mp/common_macro.inc"
#define CHOICE_GROUP "quickcommands"
#include "ui_mp/menustyle.inc"
#include "ui/choices_setup_common.menu"
#include "ui_mp/popupstyle.inc"
#include "ui/choices_setup_popmenu.menu"
#undef CHOICE_SIZE_X
#define CHOICE_SIZE_X 186
#undef CHOICE_POPUP_BACKCOLOR
#define CHOICE_POPUP_BACKCOLOR 0.2 0.2 0.22 0.65
#define ORIGIN_QUICKMESSAGEWINDOW 0 16
#undef CHOICE_POPUP_BACKCOLOR
#define CHOICE_POPUP_BACKCOLOR 0.2 0.2 0.22 0.65
#define ITEM_COUNT 10
{
menuDef
{
name quickcommands
visible 0
fullscreen 0
rect -52 234 CHOICE_POPUP_WIDTH CHOICE_POPUP_HEIGHT( ITEM_COUNT ) CHOICE_HORIZONTAL_ALIGN CHOICE_VERTICAL_ALIGN
border 1
borderSize 2
borderColor 0 0 0 0
focusColor 1 1 1 1
style 1
popup
onOpen
{
setDvar cl_bypassMouseInput 1;
}
onClose
{
setDvar cl_bypassMouseInput 0;
}
onEsc
{
play "mouse_click";
close self;
}
PREPROC_SHADER_DRAW( -4 -4 CHOICE_POPUP_WIDTH CHOICE_POPUP_HEIGHT( ITEM_COUNT ), 0 0, "white", CHOICE_POPUP_BACKCOLOR, 1, CHOICE_POPUP_BORDER_WIDTH, CHOICE_POPUP_BORDER_COLOR )
PREPROC_SHADER_DRAW( -4 -4 CHOICE_POPUP_WIDTH CHOICE_POPUP_HEIGHT( ITEM_COUNT ), 0 0, "gradient_bottom", 1 1 1 0.7, 1, CHOICE_POPUP_BORDER_WIDTH, CHOICE_POPUP_BORDER_COLOR )
CHOICE_POPMENU_TITLE( "@QUICKMESSAGE_QUICK_MESSAGE" )
itemDef
{
name "window"
group ingamebox
visible 1
rect 16 20 0 0
origin ORIGIN_QUICKMESSAGEWINDOW
forecolor 1 1 1 1
textfont UI_FONT_NORMAL
textstyle ITEM_TEXTSTYLE_SHADOWED
textscale TEXTSIZE_SMALL
textaligny 8
text "@QUICKMESSAGE_1_FOLLOW_ME"
decoration
}
execKey "1" { scriptMenuResponse "1"; close self; }
itemDef
{
name "window"
group ingamebox
visible 1
rect 16 36 0 0
origin ORIGIN_QUICKMESSAGEWINDOW
forecolor 1 1 1 1
textfont UI_FONT_NORMAL
textstyle ITEM_TEXTSTYLE_SHADOWED
textscale TEXTSIZE_SMALL
textaligny 8
text "@QUICKMESSAGE_2_MOVE_IN"
decoration
}
execKey "2" { scriptMenuResponse "2"; close self }
itemDef
{
name "window"
group ingamebox
visible 1
rect 16 52 0 0
origin ORIGIN_QUICKMESSAGEWINDOW
forecolor 1 1 1 1
textfont UI_FONT_NORMAL
textstyle ITEM_TEXTSTYLE_SHADOWED
textscale TEXTSIZE_SMALL
textaligny 8
text "@QUICKMESSAGE_3_FALL_BACK"
decoration
}
execKey "3" { scriptMenuResponse "3"; close self }
itemDef
{
name "window"
group ingamebox
visible 1
rect 16 68 0 0
origin ORIGIN_QUICKMESSAGEWINDOW
forecolor 1 1 1 1
textfont UI_FONT_NORMAL
textstyle ITEM_TEXTSTYLE_SHADOWED
textscale TEXTSIZE_SMALL
textaligny 8
text "@QUICKMESSAGE_4_SUPPRESSING_FIRE"
decoration
}
execKey "4" { scriptMenuResponse "4"; close self }
itemDef
{
name "window"
group ingamebox
visible 1
rect 16 84 0 0
origin ORIGIN_QUICKMESSAGEWINDOW
forecolor 1 1 1 1
textfont UI_FONT_NORMAL
textstyle ITEM_TEXTSTYLE_SHADOWED
textscale TEXTSIZE_SMALL
textaligny 8
text "@QUICKMESSAGE_5_ATTACK_LEFT_FLANK"
decoration
}
execKey "5" { scriptMenuResponse "5"; close self }
itemDef
{
name "window"
group ingamebox
visible 1
rect 16 100 0 0
origin ORIGIN_QUICKMESSAGEWINDOW
forecolor 1 1 1 1
textfont UI_FONT_NORMAL
textstyle ITEM_TEXTSTYLE_SHADOWED
textscale TEXTSIZE_SMALL
textaligny 8
text "@QUICKMESSAGE_6_ATTACK_RIGHT_FLANK"
decoration
}
execKey "6" { scriptMenuResponse "6"; close self }
itemDef
{
name "window"
group ingamebox
visible 1
rect 16 116 0 0
origin ORIGIN_QUICKMESSAGEWINDOW
forecolor 1 1 1 1
textfont UI_FONT_NORMAL
textstyle ITEM_TEXTSTYLE_SHADOWED
textscale TEXTSIZE_SMALL
textaligny 8
text "@QUICKMESSAGE_7_HOLD_THIS_POSITION"
decoration
}
execKey "7" { scriptMenuResponse "7"; close self }
itemDef
{
name "window"
group ingamebox
visible 1
rect 16 132 0 0
origin ORIGIN_QUICKMESSAGEWINDOW
forecolor 1 1 1 1
textfont UI_FONT_NORMAL
textstyle ITEM_TEXTSTYLE_SHADOWED
textscale TEXTSIZE_SMALL
textaligny 8
text "@QUICKMESSAGE_8_REGROUP"
decoration
}
execKey "8" { scriptMenuResponse "8"; close self }
itemDef
{
name "window"
visible 1
rect 16 164 0 0
origin ORIGIN_QUICKMESSAGEWINDOW
forecolor 1 1 1 1
textfont UI_FONT_NORMAL
textstyle ITEM_TEXTSTYLE_SHADOWED
textscale TEXTSIZE_SMALL
textaligny 8
text "@QUICKMESSAGE_ESC_EXIT"
decoration
}
}
}
@@ -0,0 +1,174 @@
#include "ui/menudef.h"
#include "ui_mp/common_macro.inc"
#define CHOICE_GROUP "quickresponses"
#include "ui_mp/menustyle.inc"
#include "ui/choices_setup_common.menu"
#include "ui_mp/popupstyle.inc"
#include "ui/choices_setup_popmenu.menu"
#undef CHOICE_SIZE_X
#define CHOICE_SIZE_X 186
#undef CHOICE_POPUP_BACKCOLOR
#define CHOICE_POPUP_BACKCOLOR 0.2 0.2 0.22 0.65
#define ORIGIN_QUICKMESSAGEWINDOW 0 16
#undef CHOICE_POPUP_BACKCOLOR
#define CHOICE_POPUP_BACKCOLOR 0.2 0.2 0.22 0.65
#define ITEM_COUNT 10
{
menuDef
{
name quickresponses
visible 0
fullscreen 0
rect -52 234 CHOICE_POPUP_WIDTH CHOICE_POPUP_HEIGHT( ITEM_COUNT ) CHOICE_HORIZONTAL_ALIGN CHOICE_VERTICAL_ALIGN
border 1
borderSize 2
borderColor 0 0 0 0
focusColor 1 1 1 1
style 1
popup
onOpen
{
setDvar cl_bypassMouseInput 1;
}
onClose
{
setDvar cl_bypassMouseInput 0;
}
onEsc
{
play "mouse_click";
close self;
}
PREPROC_SHADER_DRAW( -4 -4 CHOICE_POPUP_WIDTH CHOICE_POPUP_HEIGHT( ITEM_COUNT ), 0 0, "white", CHOICE_POPUP_BACKCOLOR, 1, CHOICE_POPUP_BORDER_WIDTH, CHOICE_POPUP_BORDER_COLOR )
PREPROC_SHADER_DRAW( -4 -4 CHOICE_POPUP_WIDTH CHOICE_POPUP_HEIGHT( ITEM_COUNT ), 0 0, "gradient_bottom", 1 1 1 0.7, 1, CHOICE_POPUP_BORDER_WIDTH, CHOICE_POPUP_BORDER_COLOR )
CHOICE_POPMENU_TITLE( "@QUICKMESSAGE_QUICK_MESSAGE" )
itemDef
{
name "window"
group ingamebox
visible 1
rect 16 20 0 0
origin ORIGIN_QUICKMESSAGEWINDOW
forecolor 1 1 1 1
textfont UI_FONT_NORMAL
textstyle ITEM_TEXTSTYLE_SHADOWED
textscale TEXTSIZE_SMALL
textaligny 8
text "@QUICKMESSAGE_1_YES_SIR"
decoration
}
execKey "1" { scriptMenuResponse "1"; close quickresponses }
itemDef
{
name "window"
group ingamebox
visible 1
rect 16 36 0 0
origin ORIGIN_QUICKMESSAGEWINDOW
forecolor 1 1 1 1
textfont UI_FONT_NORMAL
textstyle ITEM_TEXTSTYLE_SHADOWED
textscale TEXTSIZE_SMALL
textaligny 8
text "@QUICKMESSAGE_2_NO_SIR"
decoration
}
execKey "2" { scriptMenuResponse "2"; close quickresponses }
itemDef
{
name "window"
group ingamebox
visible 1
rect 16 52 0 0
origin ORIGIN_QUICKMESSAGEWINDOW
forecolor 1 1 1 1
textfont UI_FONT_NORMAL
textstyle ITEM_TEXTSTYLE_SHADOWED
textscale TEXTSIZE_SMALL
textaligny 8
text "@QUICKMESSAGE_3_IM_ON_MY_WAY"
decoration
}
execKey "3" { scriptMenuResponse "3"; close quickresponses }
itemDef
{
name "window"
group ingamebox
visible 1
rect 16 68 0 0
origin ORIGIN_QUICKMESSAGEWINDOW
forecolor 1 1 1 1
textfont UI_FONT_NORMAL
textstyle ITEM_TEXTSTYLE_SHADOWED
textscale TEXTSIZE_SMALL
textaligny 8
text "@QUICKMESSAGE_4_SORRY"
decoration
}
execKey "4" { scriptMenuResponse "4"; close quickresponses }
itemDef
{
name "window"
group ingamebox
visible 1
rect 16 84 0 0
origin ORIGIN_QUICKMESSAGEWINDOW
forecolor 1 1 1 1
textfont UI_FONT_NORMAL
textstyle ITEM_TEXTSTYLE_SHADOWED
textscale TEXTSIZE_SMALL
textaligny 8
text "@QUICKMESSAGE_5_GREAT_SHOT"
decoration
}
execKey "5" { scriptMenuResponse "5"; close quickresponses }
itemDef
{
name "window"
group ingamebox
visible 1
rect 16 100 0 0
origin ORIGIN_QUICKMESSAGEWINDOW
forecolor 1 1 1 1
textfont UI_FONT_NORMAL
textstyle ITEM_TEXTSTYLE_SHADOWED
textscale TEXTSIZE_SMALL
textaligny 8
text "@QUICKMESSAGE_6_TOOK_LONG_ENOUGH"
decoration
}
execKey "6" { scriptMenuResponse "6"; close quickresponses }
itemDef
{
name "window"
visible 1
rect 16 132 0 0
origin ORIGIN_QUICKMESSAGEWINDOW
forecolor 1 1 1 1
textfont UI_FONT_NORMAL
textstyle ITEM_TEXTSTYLE_SHADOWED
textscale TEXTSIZE_SMALL
textaligny 8
text "@QUICKMESSAGE_ESC_EXIT"
decoration
}
}
}
@@ -0,0 +1,192 @@
#include "ui/menudef.h"
#include "ui_mp/common_macro.inc"
#define CHOICE_GROUP "quickstatements"
#include "ui_mp/menustyle.inc"
#include "ui/choices_setup_common.menu"
#include "ui_mp/popupstyle.inc"
#include "ui/choices_setup_popmenu.menu"
#undef CHOICE_SIZE_X
#define CHOICE_SIZE_X 186
#undef CHOICE_POPUP_BACKCOLOR
#define CHOICE_POPUP_BACKCOLOR 0.2 0.2 0.22 0.65
#define ORIGIN_QUICKMESSAGEWINDOW 0 16
#undef CHOICE_POPUP_BACKCOLOR
#define CHOICE_POPUP_BACKCOLOR 0.2 0.2 0.22 0.65
#define ITEM_COUNT 10
{
menuDef
{
name quickstatements
visible 0
fullscreen 0
rect -52 234 CHOICE_POPUP_WIDTH CHOICE_POPUP_HEIGHT( ITEM_COUNT ) CHOICE_HORIZONTAL_ALIGN CHOICE_VERTICAL_ALIGN
border 1
borderSize 2
borderColor 0 0 0 0
focusColor 1 1 1 1
style 1
popup
onOpen
{
setDvar cl_bypassMouseInput 1;
}
onClose
{
setDvar cl_bypassMouseInput 0;
}
onEsc
{
play "mouse_click";
close self;
}
PREPROC_SHADER_DRAW( -4 -4 CHOICE_POPUP_WIDTH CHOICE_POPUP_HEIGHT( ITEM_COUNT ), 0 0, "white", CHOICE_POPUP_BACKCOLOR, 1, CHOICE_POPUP_BORDER_WIDTH, CHOICE_POPUP_BORDER_COLOR )
PREPROC_SHADER_DRAW( -4 -4 CHOICE_POPUP_WIDTH CHOICE_POPUP_HEIGHT( ITEM_COUNT ), 0 0, "gradient_bottom", 1 1 1 0.7, 1, CHOICE_POPUP_BORDER_WIDTH, CHOICE_POPUP_BORDER_COLOR )
CHOICE_POPMENU_TITLE( "@QUICKMESSAGE_QUICK_MESSAGE" )
itemDef
{
name "window"
group ingamebox
visible 1
rect 16 20 0 0
origin ORIGIN_QUICKMESSAGEWINDOW
forecolor 1 1 1 1
textfont UI_FONT_NORMAL
textstyle ITEM_TEXTSTYLE_SHADOWED
textscale TEXTSIZE_SMALL
textaligny 8
text "@QUICKMESSAGE_1_ENEMY_SPOTTED"
decoration
}
execKey "1" { scriptMenuResponse "1"; close quickstatements }
itemDef
{
name "window"
group ingamebox
visible 1
rect 16 36 0 0
origin ORIGIN_QUICKMESSAGEWINDOW
forecolor 1 1 1 1
textfont UI_FONT_NORMAL
textstyle ITEM_TEXTSTYLE_SHADOWED
textscale TEXTSIZE_SMALL
textaligny 8
text "@QUICKMESSAGE_2_MULTIPLE_CONTACTS"
decoration
}
execKey "2" { scriptMenuResponse "2"; close quickstatements }
itemDef
{
name "window"
group ingamebox
visible 1
rect 16 52 0 0
origin ORIGIN_QUICKMESSAGEWINDOW
forecolor 1 1 1 1
textfont UI_FONT_NORMAL
textstyle ITEM_TEXTSTYLE_SHADOWED
textscale TEXTSIZE_SMALL
textaligny 8
text "@QUICKMESSAGE_3_IM_IN_POSITION"
decoration
}
execKey "3" { scriptMenuResponse "3"; close quickstatements }
itemDef
{
name "window"
group ingamebox
visible 1
rect 16 68 0 0
origin ORIGIN_QUICKMESSAGEWINDOW
forecolor 1 1 1 1
textfont UI_FONT_NORMAL
textstyle ITEM_TEXTSTYLE_SHADOWED
textscale TEXTSIZE_SMALL
textaligny 8
text "@QUICKMESSAGE_4_AREA_SECURE"
decoration
}
execKey "4" { scriptMenuResponse "4"; close quickstatements }
itemDef
{
name "window"
group ingamebox
visible 1
rect 16 84 0 0
origin ORIGIN_QUICKMESSAGEWINDOW
forecolor 1 1 1 1
textfont UI_FONT_NORMAL
textstyle ITEM_TEXTSTYLE_SHADOWED
textscale TEXTSIZE_SMALL
textaligny 8
text "@QUICKMESSAGE_5_WATCH_SIX"
decoration
}
execKey "5" { scriptMenuResponse "5"; close quickstatements }
itemDef
{
name "window"
group ingamebox
visible 1
rect 16 100 0 0
origin ORIGIN_QUICKMESSAGEWINDOW
forecolor 1 1 1 1
textfont UI_FONT_NORMAL
textstyle ITEM_TEXTSTYLE_SHADOWED
textscale TEXTSIZE_SMALL
textaligny 8
text "@QUICKMESSAGE_6_SNIPER"
decoration
}
execKey "6" { scriptMenuResponse "6"; close quickstatements }
itemDef
{
name "window"
group ingamebox
visible 1
rect 16 116 0 0
origin ORIGIN_QUICKMESSAGEWINDOW
forecolor 1 1 1 1
textfont UI_FONT_NORMAL
textstyle ITEM_TEXTSTYLE_SHADOWED
textscale TEXTSIZE_SMALL
textaligny 8
text "@QUICKMESSAGE_7_NEED_REINFORCEMENTS"
decoration
}
execKey "7" { scriptMenuResponse "7"; close quickstatements }
itemDef
{
name "window"
visible 1
rect 16 148 0 0
origin ORIGIN_QUICKMESSAGEWINDOW
forecolor 1 1 1 1
textfont UI_FONT_NORMAL
textstyle ITEM_TEXTSTYLE_SHADOWED
textscale TEXTSIZE_SMALL
textaligny 8
text "@QUICKMESSAGE_ESC_EXIT"
decoration
}
}
}
@@ -0,0 +1,738 @@
{
menuDef
{
name "team_marinesopfor"
rect 0 0 640 480 0 0
legacySplitScreenScale
forecolor 1 1 1 1
focuscolor 1 1 1 1
blurWorld 7
onOpen
{
setfocus "team_choose_auto";
}
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( ) / 1500 ) + 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 "@MPUI_CHOOSE_TEAM"
}
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 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
textstyle 6
textalign 1
textaligny 10
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
textstyle 6
textalign 1
textaligny 10
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
textstyle 6
textalign 1
textaligny 10
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
textstyle 6
textalign 1
textaligny 10
visible when ( team( "name" ) == "TEAM_FREE" && localvarstring( "ui_team" ) == "opfor" )
exp text ( "@" + dvarstring( "g_TeamName_Axis" ) )
}
itemDef
{
name "team_choose_spectator"
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_SPECTATOR"
visible when ( team( "name" ) != "TEAM_SPECTATOR" )
disabled when ( team( "name" ) == "TEAM_SPECTATOR" || !dvarbool( "scr_game_spectatetype" ) )
action
{
play "mouse_click";
scriptmenuresponse "spectator";
}
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 "team_choose_axis"
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
disabled when ( team( "name" ) == "TEAM_AXIS" )
exp text ( "@" + dvarstring( "g_TeamName_Axis" ) )
action
{
play "mouse_click";
scriptmenuresponse "axis";
}
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 "team_choose_allies"
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
disabled when ( team( "name" ) == "TEAM_ALLIES" )
exp text ( "@" + dvarstring( "g_TeamName_Allies" ) )
action
{
play "mouse_click";
scriptmenuresponse "allies";
}
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 "team_choose_auto"
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 "@MPUI_AUTOASSIGN"
action
{
play "mouse_click";
scriptmenuresponse "autoassign";
}
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 108 216 1 1 1
decoration
visible 1
style 3
forecolor 1 1 1 0.65
background "gradient_fadein"
textscale 0.55
visible when ( team( "name" ) == "TEAM_SPECTATOR" )
}
itemDef
{
name "team_choose_endgame"
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
text "@MPUI_END_GAME"
visible when ( team( "name" ) == "TEAM_SPECTATOR" && ( dvarbool( "onlineunrankedgameandhost" ) || 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 "team_choose_leavegame"
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
text "@MPUI_LEAVE_GAME"
visible when ( team( "name" ) == "TEAM_SPECTATOR" && ( !dvarbool( "onlineunrankedgameandhost" ) && !dvarbool( "sv_running" ) ) )
action
{
play "mouse_click";
if ( ( inprivateparty( ) && !privatepartyhost( ) && privatepartyhostinlobby( ) ) )
{
open "popup_leavegameandparty";
}
else
{
open "popup_leavegame";
}
}
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";
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";
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 );
}
}
}
}
@@ -0,0 +1,342 @@
{
menuDef
{
name "security_increase_popmenu"
rect -150 -84 300 116 2 2
popup
legacySplitScreenScale
style 1
forecolor 1 1 1 1
backcolor 1 1 1 1
background "white"
focuscolor 1 1 1 1
onOpen
{
setLocalVarInt "ui_centerPopup" ( 1 );
}
onClose
{
setLocalVarInt "ui_centerPopup" ( 0 );
uiScript "security_increase_cancel";
}
onEsc
{
close self;
}
itemDef
{
rect -1004 -564 1708 992 2 2
decoration
visible 1
style 1
forecolor 1 1 1 1
backcolor 0 0 0 0.35
background "white"
textscale 0.55
}
itemDef
{
rect -1004 -564 1708 992 2 2
decoration
visible 1
style 1
forecolor 1 1 1 1
backcolor 1 1 1 1
background "xpbar_stencilbase"
textscale 0.55
}
itemDef
{
rect 0 0 300 116 2 2
decoration
visible 1
style 1
forecolor 1 1 1 1
backcolor 0.5 0.5 0.5 1
background "white"
textscale 0.55
}
itemDef
{
rect -150 -44 1708 512 2 2
decoration
visible 1
style 3
forecolor 1 1 1 0.75
background "mw2_popup_bg_fogstencil"
textscale 0.55
exp rect x ( 0 - ( ( float( milliseconds( ) % 60000 ) / 60000 ) * ( 854 ) ) )
}
itemDef
{
rect -150 -44 -1708 -512 2 2
decoration
visible 1
style 3
forecolor 0.85 0.85 0.85 1
background "mw2_popup_bg_fogscroll"
textscale 0.55
exp rect x ( 0 - ( ( float( milliseconds( ) % 60000 ) / 60000 ) * ( 854 ) ) )
}
itemDef
{
rect 0 0 300 32 2 2
decoration
visible 1
style 3
forecolor 1 1 1 1
background "mockup_popup_bg_stencilfill"
textscale 0.55
exp rect h ( ( 56 + 3 * 20 ) )
}
itemDef
{
rect -150 -44 -1708 -512 2 2
decoration
visible 1
style 3
forecolor 1 1 1 0.75
background "mw2_popup_bg_fogstencil"
textscale 0.55
exp rect x ( ( 0 - 854 ) + ( ( float( milliseconds( ) % 50000 ) / 50000 ) * ( 854 ) ) )
}
itemDef
{
rect -150 -44 -1708 -512 2 2
decoration
visible 1
style 3
forecolor 0.85 0.85 0.85 1
background "mw2_popup_bg_fogscroll"
textscale 0.55
exp rect x ( ( 0 - 854 ) + ( ( float( milliseconds( ) % 50000 ) / 50000 ) * ( 854 ) ) )
}
itemDef
{
rect -150 -44 300 0 1 1
decoration
visible 1
style 3
forecolor 1 1 1 0
background "small_box_lightfx"
textscale 0.55
exp rect h ( ( 56 + 3 * 20 ) )
}
itemDef
{
rect -64 -64 64 64 2 2
decoration
visible 1
style 3
forecolor 0 0 0 1
background "drop_shadow_tl"
textscale 0.55
visible when ( 1 )
}
itemDef
{
rect 0 -64 300 64 2 2
decoration
visible 1
style 3
forecolor 0 0 0 1
background "drop_shadow_t"
textscale 0.55
visible when ( 1 )
}
itemDef
{
rect 300 -64 64 64 2 2
decoration
visible 1
style 3
forecolor 0 0 0 1
background "drop_shadow_tr"
textscale 0.55
visible when ( 1 )
}
itemDef
{
rect 300 0 64 0 2 2
decoration
visible 1
style 3
forecolor 0 0 0 1
background "drop_shadow_r"
textscale 0.55
//exp rect h ( ( 24 + 3 * 20 ) )
exp rect h ( ( 56 + 3 * 20 ) )
visible when ( 1 )
}
itemDef
{
rect 300 0 64 64 2 2
decoration
visible 1
style 3
forecolor 0 0 0 1
background "drop_shadow_br"
textscale 0.55
exp rect y ( ( 32 - 0 ) + ( ( 24 + 3 * 20 ) ) )
visible when ( 1 )
}
itemDef
{
rect 0 0 300 64 2 2
decoration
visible 1
style 3
forecolor 0 0 0 1
background "drop_shadow_b"
textscale 0.55
exp rect y ( ( 32 - 0 ) + ( ( 24 + 3 * 20 ) ) )
visible when ( 1 )
}
itemDef
{
rect -64 0 64 64 2 2
decoration
visible 1
style 3
forecolor 0 0 0 1
background "drop_shadow_bl"
textscale 0.55
exp rect y ( ( 32 - 0 ) + ( ( 24 + 3 * 20 ) ) )
visible when ( 1 )
}
itemDef
{
rect -63 0 64 0 2 2
decoration
visible 1
style 3
forecolor 0 0 0 1
background "drop_shadow_l"
textscale 0.55
exp rect h ( ( 56 + 3 * 20 ) )
visible when ( 1 )
}
itemDef
{
rect 0 15 300 40 2 2
decoration
visible 1
forecolor 1 1 1 1
type 1
textalign 5
textaligny 10
textscale 0.4
autowrapped
text "@MPUI_SECURITY_INCREASE_MESSAGE"
}
itemDef
{
rect 0 60 300 40 2 2
decoration
visible 1
forecolor 1 1 1 1
type 1
textalign 6
textalignX -120
textaligny 10
textscale 0.4
text "@MPUI_PLEASE_WAIT"
}
itemDef
{
rect 0 60 300 40 2 2
decoration
visible 1
forecolor 1 1 1 1
type 1
textalign 5
textalignX 38
textaligny 10
textscale 0.4
visible when ( ( sin( milliseconds( ) * 0.005 ) + 1 ) * 0.5 > 0.25 && ( sin( milliseconds( ) * 0.005 ) + 1 ) * 0.5 <= 0.5 )
exp text ( "." )
}
itemDef
{
rect 0 60 300 40 2 2
decoration
visible 1
forecolor 1 1 1 1
type 1
textalign 5
textalignX 38
textaligny 10
textscale 0.4
visible when ( ( sin( milliseconds( ) * 0.005 ) + 1 ) * 0.5 > 0.5 && ( sin( milliseconds( ) * 0.005 ) + 1 ) * 0.5 <= 0.75 )
exp text ( ".." )
}
itemDef
{
rect 0 60 300 40 2 2
decoration
visible 1
forecolor 1 1 1 1
type 1
textalign 5
textalignX 38
textaligny 10
textscale 0.4
visible when ( ( sin( milliseconds( ) * 0.005 ) + 1 ) * 0.5 > 0.75 )
exp text ( "..." )
}
itemDef
{
rect 0 0 300 24 2 2
decoration
visible 1
style 1
forecolor 1 1 1 1
background "gradient_fadein"
textfont 9
textalign 5
textalignx -4
textscale 0.375
text "@MENU_SECURITY_INCREASE"
}
itemDef
{
name "cancel"
rect 6 96 292 20 2 2
visible 1
group "mw2_popup_button"
style 1
forecolor 1 1 1 1
disablecolor 0.6 0.55 0.55 1
background "popup_button_selection_bar"
type 1
textfont 3
textalign 6
textalignx -24
textscale 0.375
text "@MENU_CANCEL"
visible when ( 1 )
action
{
play "mouse_click";
close self;
}
onFocus
{
play "mouse_over";
if ( dvarstring( "gameMode" ) != "mp" )
{
setItemColor "mw2_popup_button" backcolor 0 0 0 0;
}
setItemColor self backcolor 0 0 0 1;
setLocalVarBool "ui_popupAButton" ( 1 );
}
leaveFocus
{
setItemColor self backcolor 1 1 1 0;
setLocalVarBool "ui_popupAButton" ( 0 );
}
}
}
}
+246
View File
@@ -0,0 +1,246 @@
#include "ui/menudef.h"
#include "ui_mp/main.inc"
#include "ui_mp/popup.inc"
#define SV_INFO_FIELD_Y(i) (0 + (i * 20))
#define SV_INFO_FIELD_ORIGIN(i) 12 SV_INFO_FIELD_Y(i)
#define SV_INFO_FIELD_RECT(i) SV_INFO_FIELD_ORIGIN(i) 310 20 HORIZONTAL_ALIGN_SUBLEFT VERTICAL_ALIGN_SUBTOP
#define SV_INFO_FIELD(itemIndex, textArg, dvarArg) \
SV_INFO_FIELD_VIS(itemIndex, textArg, dvarArg, 1)
#define SV_INFO_FIELD_VIS(itemIndex, textArg, dvarArg, visArg) \
itemDef \
{ \
rect SV_INFO_FIELD_RECT(itemIndex) \
style WINDOW_STYLE_FILLED \
foreColor CHOICE_TEXTCOLOR \
backColor 0 0 0 0.8 \
background "menu_setting_selection_bar" \
textFont UI_FONT_NORMAL \
textScale 0.35 \
textAlignY 18 \
decoration \
visible visArg \
exp text(textArg) \
} \
itemDef \
{ \
rect SV_INFO_FIELD_RECT(itemIndex) \
foreColor CHOICE_TEXTCOLOR \
textFont UI_FONT_NORMAL \
textScale 0.35 \
textAlign ITEM_ALIGN_LEGACY_RIGHT \
textAlignX -40 \
textAlignY 18 \
decoration \
visible visArg \
exp text(dvarArg) \
}
#define SV_INFO_MAP_PREVIEW_VIS(materialArg, visArg) \
itemDef \
{ \
name "mappreview" \
rect 332 22 176 100 HORIZONTAL_ALIGN_SUBLEFT VERTICAL_ALIGN_SUBTOP \
style WINDOW_STYLE_SHADER \
visible visArg \
exp material(materialArg) \
} \
itemDef \
{ \
rect 332 22 176 14 HORIZONTAL_ALIGN_SUBLEFT VERTICAL_ALIGN_SUBTOP \
style WINDOW_STYLE_FILLED \
backColor 0 0 0 0.4 \
textScale 0.3 \
textAlign ITEM_ALIGN_LEGACY_RIGHT \
textAlignX -4 \
textAlignY 13 \
decoration \
visible visArg \
exp text(dvarString("uiSi_MapNameLoc")) \
} \
itemDef \
{ \
rect 332 108 176 14 HORIZONTAL_ALIGN_SUBLEFT VERTICAL_ALIGN_SUBTOP \
style WINDOW_STYLE_FILLED \
backColor 0 0 0 0.4 \
textScale 0.3 \
textAlign ITEM_ALIGN_LEGACY_RIGHT \
textAlignX -4 \
textAlignY 14 \
decoration \
visible visArg \
exp text(dvarString("uiSi_GameType")) \
}
#define SV_INFO_SECURITY_LEVEL_VIS(itemIndex, visArg) \
itemDef \
{ \
rect 332 121 176 20 HORIZONTAL_ALIGN_SUBLEFT VERTICAL_ALIGN_SUBTOP \
style WINDOW_STYLE_FILLED \
foreColor CHOICE_TEXTCOLOR \
backColor 0 0 0 0.8 \
background "menu_setting_selection_bar" \
textFont UI_FONT_NORMAL \
textScale 0.35 \
textAlignY 18 \
decoration \
visible visArg \
exp text("@MPUI_SECURITY_LEVEL") \
} \
itemDef \
{ \
rect 332 121 176 20 HORIZONTAL_ALIGN_SUBLEFT VERTICAL_ALIGN_SUBTOP \
foreColor CHOICE_TEXTCOLOR \
textFont UI_FONT_NORMAL \
textScale 0.35 \
textAlign ITEM_ALIGN_LEGACY_RIGHT \
textAlignX -20 \
textAlignY 18 \
decoration \
visible visArg \
exp text(dvarString("uiSi_SecurityLevel")) \
}
#define SV_INFO_TABLE_POS_X 12
#define SV_INFO_TABLE_POS_Y 164
#define SV_INFO_TABLE_WIDTH 496
#define SV_INFO_TABLE_HEIGHT 160
#define SV_INFO_TABLE_HEADER \
itemDef \
{ \
name "num" \
rect (SV_INFO_TABLE_POS_X + 4) (SV_INFO_TABLE_POS_Y - 2) 30 18 0 0 \
foreColor CHOICE_TEXTCOLOR \
textFont UI_FONT_NORMAL \
textScale 0.3 \
textAlignX 4 \
decoration \
visible 1 \
text "#" \
} \
itemDef \
{ \
name "name" \
rect 88 (SV_INFO_TABLE_POS_Y - 2) 30 18 0 0 \
foreColor CHOICE_TEXTCOLOR \
textFont UI_FONT_NORMAL \
textScale 0.3 \
textAlignX 4 \
decoration \
visible 1 \
text "@MENU_NAME" \
} \
itemDef \
{ \
name "score" \
rect 353 (SV_INFO_TABLE_POS_Y - 2) 30 18 0 0 \
foreColor CHOICE_TEXTCOLOR \
textFont UI_FONT_NORMAL \
textScale 0.3 \
textAlignX 4 \
decoration \
visible 1 \
text "@MPUI_SCORE" \
} \
itemDef \
{ \
name "ping" \
rect 455 (SV_INFO_TABLE_POS_Y - 2) 30 18 0 0 \
foreColor CHOICE_TEXTCOLOR \
textFont UI_FONT_NORMAL \
textScale 0.3 \
textAlignX 4 \
decoration \
visible 1 \
text "@MENU_PING" \
}
#define MENU_NAME "serverinfo_popmenu"
#define KEYINT_F5 171
#define POPMENU_POS_X -250
#define POPMENU_POS_Y -204
#define POPMENU_WIDTH 520
#define POPMENU_HEIGHT 370
#define POPMENU_RECT POPMENU_POS_X POPMENU_POS_Y POPMENU_WIDTH POPMENU_HEIGHT HORIZONTAL_ALIGN_CENTER VERTICAL_ALIGN_CENTER
#define ON_MENU_OPEN \
uiScript "ServerStatus"; \
setLocalVarInt "ui_centerPopup" (1);
#define ON_MENU_CLOSE \
setLocalVarInt "ui_centerPopup" (0);
#define ON_MENU_ESC \
close self;
#define ON_KEY_PRESS_F5 \
uiScript "ServerStatus";
menuDef
{
name MENU_NAME
rect POPMENU_RECT
popup
legacySplitScreenScale
style WINDOW_STYLE_FILLED
foreColor CHOICE_TEXTCOLOR
focusColor CHOICE_TEXTCOLOR
backColor 1 1 1 1
background "white"
MENU_ON_OPEN(ON_MENU_OPEN)
MENU_ON_CLOSE(ON_MENU_CLOSE)
MENU_ON_ESC(ON_MENU_ESC)
MENU_EXEC_KEYINT(KEYINT_F5, ON_KEY_PRESS_F5)
POPUP_BACKGROUND_BASE
POPUP_TITLE(dvarString("uiSi_ServerName"))
SV_INFO_FIELD(1, "@MPUI_MAX_CLIENTS", dvarString("uiSi_MaxClients"))
SV_INFO_FIELD(2, "@MPUI_IS_PRIVATE", dvarString("uiSi_isPrivate"))
SV_INFO_FIELD(3, "@MPUI_RULES_HARDCORE", dvarString("uiSi_Hardcore"))
SV_INFO_FIELD(4, "@MPUI_RULES_KILLCAM", dvarString("uiSi_KillCam"))
SV_INFO_FIELD(5, "@MPUI_RULES_FRIENDLY_FIRE", dvarString("uiSi_ffType"))
SV_INFO_FIELD(6, "@MPUI_MOD", dvarString("uiSi_ModName"))
SV_INFO_MAP_PREVIEW_VIS(("loadscreen_mp_bonusmaps"), when(dvarString("uiSi_MapName") == ""))
SV_INFO_MAP_PREVIEW_VIS(("preview_" + dvarString("uiSi_MapName")), when(dvarString("uiSi_MapName") != ""))
SV_INFO_SECURITY_LEVEL_VIS(6, 1)
SV_INFO_TABLE_HEADER
itemDef
{
rect SV_INFO_TABLE_POS_X SV_INFO_TABLE_POS_Y SV_INFO_TABLE_WIDTH SV_INFO_TABLE_HEIGHT
type ITEM_TYPE_LISTBOX
style WINDOW_STYLE_FILLED
foreColor CHOICE_TEXTCOLOR
backColor 0 0 0 0.5
textFont UI_FONT_NORMAL
textScale .25
border 1
borderSize 1
borderColor 1 1 1 0.1
feeder FEEDER_SERVERSTATUS
elementWidth 120
elementHeight 16
notselectable
visible 1
// numcols xpos xwidth textlen alignment
columns 4 8 2 2 0
80 16 16 0
345 4 4 0
447 4 4 0
}
POPUP_BUTTON_FOOTER(330, "@PLATFORM_REFRESH", uiScript "ServerStatus";)
POPUP_BUTTON_FOOTER(350, "@MENU_CLOSE", close self;)
}
+714
View File
@@ -0,0 +1,714 @@
{
menuDef
{
name settings_gametype
fullscreen 1
rect 0 0 640 480
style 1
border 0
ownerdraw 0
ownerdrawFlag 0
borderSize 0
foreColor 1 1 1 1
backColor 0 0 0 0
borderColor 0 0 0 0
outlineColor 0 0 0 0
soundLoop music_mainmenu_mp
fadeCycle 1
fadeClamp 1
fadeAmount 0.1
fadeInAmount 0
blurWorld 0
onOpen
{
focusfirst;
setfocusbydvar ui_gametype;
setLocalVarBool "ui_more_gametypes" ( 0 );
}
onClose
{
execNow xupdatepartystate;
}
onESC
{
close settings_gametype;
}
focusColor 1 1 1 1
itemDef
{
rect 0 0 640 480 4 4
style 3
border 0
ownerdraw 0
ownerdrawFlag 0
borderSize 0
foreColor 1 1 1 1
backColor 0 0 0 0
borderColor 0 0 0 0
outlineColor 0 0 0 0
background mw2_main_background
decoration
type 0
align 0
textAlign 0
textAlignX 0
textAlignY 0
textScale 0.55
textStyle 0
textFont 0
feeder 0
visible 1
}
itemDef
{
rect 0 0 1708 480
style 3
border 0
ownerdraw 0
ownerdrawFlag 0
borderSize 0
foreColor 1 1 1 0.5
backColor 0 0 0 0
borderColor 0 0 0 0
outlineColor 0 0 0 0
background mw2_main_cloud_overlay
decoration
type 0
align 0
textAlign 0
textAlignX 0
textAlignY 0
textScale 0.55
textStyle 0
textFont 0
feeder 0
visible 1
exp rect x ( ( 0 - 107 ) - ( ( float( milliseconds( ) % 60000 ) / 60000 ) * ( 854 ) ) )
}
itemDef
{
rect 0 0 -1708 -480
style 3
border 0
ownerdraw 0
ownerdrawFlag 0
borderSize 0
foreColor 1 1 1 0.5
backColor 0 0 0 0
borderColor 0 0 0 0
outlineColor 0 0 0 0
background mw2_main_cloud_overlay
decoration
type 0
align 0
textAlign 0
textAlignX 0
textAlignY 0
textScale 0.55
textStyle 0
textFont 0
feeder 0
visible 1
exp rect x ( ( - 107 + 854 ) + ( ( float( milliseconds( ) % 50000 ) / 50000 ) * ( 854 ) ) )
}
itemDef
{
rect 0 0 640 480 4 4
style 3
border 0
ownerdraw 0
ownerdrawFlag 0
borderSize 0
foreColor 1 1 1 0
backColor 0 0 0 0
borderColor 0 0 0 0
outlineColor 0 0 0 0
background mockup_bg_glow
decoration
type 0
align 0
textAlign 0
textAlignX 0
textAlignY 0
textScale 0.55
textStyle 0
textFont 0
feeder 0
visible 1
exp forecolor a ( ( ( ( sin milliseconds( ) / 1500 ) + 1 ) * 0.250000 ) + 0.250000 )
}
itemDef
{
rect 0 0 640 480 4 4
style 3
border 0
ownerdraw 0
ownerdrawFlag 0
borderSize 0
foreColor 1 1 1 0
backColor 0 0 0 0
borderColor 0 0 0 0
outlineColor 0 0 0 0
background mockup_bg_glow
decoration
type 0
align 0
textAlign 0
textAlignX 0
textAlignY 0
textScale 0.55
textStyle 0
textFont 0
feeder 0
visible 1
exp forecolor a ( ( ( ( sin milliseconds( ) / 480 ) + 1 ) * 0.250000 ) + 0.250000 )
}
itemDef
{
rect 0 0 272 28 1 1
style 0
border 0
ownerdraw 0
ownerdrawFlag 0
borderSize 0
foreColor 1 1 1 1
backColor 0 0 0 0
borderColor 0 0 0 0
outlineColor 0 0 0 0
decoration
type 0
align 0
textAlign 6
textAlignX -60
textAlignY 0
textScale 0.44
textStyle 0
textFont 9
feeder 0
text "@MENU_CHOOSE_GAME_MODE_CAP"
visible 1
}
itemDef
{
rect 0 28 640 356 4 1
style 3
border 0
ownerdraw 0
ownerdrawFlag 0
borderSize 0
foreColor 1 1 1 0.15
backColor 0 0 0 0
borderColor 0 0 0 0
outlineColor 0 0 0 0
background white
decoration
type 0
align 0
textAlign 0
textAlignX 0
textAlignY 0
textScale 0.55
textStyle 0
textFont 0
feeder 0
visible 1
}
itemDef
{
rect -32 -4 32 32 4 1
style 3
border 0
ownerdraw 0
ownerdrawFlag 0
borderSize 0
foreColor 0 0 0 1
backColor 0 0 0 0
borderColor 0 0 0 0
outlineColor 0 0 0 0
background drop_shadow_tl
decoration
type 0
align 0
textAlign 0
textAlignX 0
textAlignY 0
textScale 0.55
textStyle 0
textFont 0
feeder 0
visible 1
}
itemDef
{
rect 0 -4 640 32 4 1
style 3
border 0
ownerdraw 0
ownerdrawFlag 0
borderSize 0
foreColor 0 0 0 1
backColor 0 0 0 0
borderColor 0 0 0 0
outlineColor 0 0 0 0
background drop_shadow_t
decoration
type 0
align 0
textAlign 0
textAlignX 0
textAlignY 0
textScale 0.55
textStyle 0
textFont 0
feeder 0
visible 1
}
itemDef
{
rect 640 -4 32 32 4 1
style 3
border 0
ownerdraw 0
ownerdrawFlag 0
borderSize 0
foreColor 0 0 0 1
backColor 0 0 0 0
borderColor 0 0 0 0
outlineColor 0 0 0 0
background drop_shadow_tr
decoration
type 0
align 0
textAlign 0
textAlignX 0
textAlignY 0
textScale 0.55
textStyle 0
textFont 0
feeder 0
visible 1
}
itemDef
{
rect 640 28 32 356 4 1
style 3
border 0
ownerdraw 0
ownerdrawFlag 0
borderSize 0
foreColor 0 0 0 1
backColor 0 0 0 0
borderColor 0 0 0 0
outlineColor 0 0 0 0
background drop_shadow_r
decoration
type 0
align 0
textAlign 0
textAlignX 0
textAlignY 0
textScale 0.55
textStyle 0
textFont 0
feeder 0
visible 1
}
itemDef
{
rect 640 384 32 32 4 1
style 3
border 0
ownerdraw 0
ownerdrawFlag 0
borderSize 0
foreColor 0 0 0 1
backColor 0 0 0 0
borderColor 0 0 0 0
outlineColor 0 0 0 0
background drop_shadow_br
decoration
type 0
align 0
textAlign 0
textAlignX 0
textAlignY 0
textScale 0.55
textStyle 0
textFont 0
feeder 0
visible 1
}
itemDef
{
rect 0 384 640 32 4 1
style 3
border 0
ownerdraw 0
ownerdrawFlag 0
borderSize 0
foreColor 0 0 0 1
backColor 0 0 0 0
borderColor 0 0 0 0
outlineColor 0 0 0 0
background drop_shadow_b
decoration
type 0
align 0
textAlign 0
textAlignX 0
textAlignY 0
textScale 0.55
textStyle 0
textFont 0
feeder 0
visible 1
}
itemDef
{
rect -32 384 32 32 4 1
style 3
border 0
ownerdraw 0
ownerdrawFlag 0
borderSize 0
foreColor 0 0 0 1
backColor 0 0 0 0
borderColor 0 0 0 0
outlineColor 0 0 0 0
background drop_shadow_bl
decoration
type 0
align 0
textAlign 0
textAlignX 0
textAlignY 0
textScale 0.55
textStyle 0
textFont 0
feeder 0
visible 1
}
itemDef
{
rect -32 28 32 356 4 1
style 3
border 0
ownerdraw 0
ownerdrawFlag 0
borderSize 0
foreColor 0 0 0 1
backColor 0 0 0 0
borderColor 0 0 0 0
outlineColor 0 0 0 0
background drop_shadow_l
decoration
type 0
align 0
textAlign 0
textAlignX 0
textAlignY 0
textScale 0.55
textStyle 0
textFont 0
feeder 0
visible 1
}
#define CHOICE_Y(i) (8 + (i * 20))
//half pixels are GREAT - well, they seem to work here
#define HR_ORIGIN(i) 0 (CHOICE_Y(i) - 0.5)
#define CHOICE_ORIGIN(i) -64 CHOICE_Y(i)
#define CHOICE_RECT(i) CHOICE_ORIGIN(i) 316 20 1 1
#define HR_RECT(i) HR_ORIGIN(i) 216 1 1 1
#define CHOICE_ICON_Y(i) (28 + (i * 20.5))
#define GAMETYPE_BUTTON(itemIndex, visArg, textArg) \
itemDef \
{ \
rect CHOICE_RECT(itemIndex) \
style 1 \
border 0 \
ownerdraw 0 \
ownerdrawFlag 0 \
borderSize 0 \
foreColor 1 1 1 1 \
backColor 0 0 0 0 \
borderColor 0 0 0 0 \
outlineColor 0 0 0 0 \
background menu_button_selection_bar \
group mw2_button \
type 1 \
align 0 \
textAlign 6 \
textAlignX -60 \
textAlignY 0 \
textScale 0.375 \
textStyle 0 \
textFont 3 \
feeder 0 \
visible 1 \
visible visArg \
exp text ( "@" + tablelookup( "mp/gameTypesTable.csv" , 0 , textArg , 1 ) + "_CAPS" ) \
onFocus \
{ \
play "mouse_over"; \
setItemColor self backcolor 0 0 0 1; \
setLocalVarBool "ui_menuAButton" ( 1 ); \
setLocalVarString ui_info_name "@" + tablelookup( "mp/gameTypesTable.csv" , 0 , textArg , 1 ); \
setLocalVarString ui_info_desc "@" + tablelookup( "mp/gameTypesTable.csv" , 0 , textArg , 2 ); \
setLocalVarString ui_info_icon tablelookup( "mp/gameTypesTable.csv" , 0 , textArg , 3 ); \
} \
leaveFocus \
{ \
setItemColor self backcolor 0 0 0 0; \
setLocalVarBool "ui_menuAButton" ( 0 ); \
setLocalVarString ui_info_name ( "@NULL_EMPTY" ); \
setLocalVarString ui_info_desc ( "@NULL_EMPTY" ); \
setLocalVarString ui_info_icon tablelookup( "mp/gameTypesTable.csv" , 0 , textArg , 3 ); \
} \
action \
{ \
play "mouse_click"; \
setDvar ui_gametype textArg; \
setDvar g_gametype textArg; \
execOnDvarIntValue "splitscreen" 1 "exec default_splitscreen.cfg"; \
execOnDvarIntValue "systemlink" 1 "exec default_systemlink.cfg"; \
execOnDvarIntValue "xblive_privatematch" 1 "exec default_xboxlive.cfg"; \
close "self"; \
} \
}
#define GAMETYPE_BUTTON_SCROLLER(itemIndex, visArg, textArg, scrollArg) \
itemDef \
{ \
rect CHOICE_RECT(itemIndex) \
style 1 \
border 0 \
ownerdraw 0 \
ownerdrawFlag 0 \
borderSize 0 \
foreColor 1 1 1 1 \
backColor 0 0 0 0 \
borderColor 0 0 0 0 \
outlineColor 0 0 0 0 \
background menu_button_selection_bar \
group mw2_button \
type 1 \
align 0 \
textAlign 6 \
textAlignX -60 \
textAlignY 0 \
textScale 0.375 \
textStyle 0 \
textFont 3 \
text textArg \
feeder 0 \
visible 1 \
visible visArg \
onFocus \
{ \
play "mouse_over"; \
setItemColor self backcolor 0 0 0 1; \
setLocalVarBool "ui_menuBButton" ( 1 ); \
} \
leaveFocus \
{ \
setItemColor self backcolor 0 0 0 0; \
setLocalVarBool "ui_menuBButton" ( 0 ); \
} \
action \
{ \
play "mouse_click"; \
setLocalVarBool "ui_more_gametypes" ( scrollArg ); \
} \
}
/*GAMETYPE_BUTTON(1, when( localVarBool("ui_more_gametypes") == 0), arena)
GAMETYPE_BUTTON(2, when( localVarBool("ui_more_gametypes") == 0), ctf)
GAMETYPE_BUTTON(3, when( localVarBool("ui_more_gametypes") == 0), cranked)
GAMETYPE_BUTTON(4, when( localVarBool("ui_more_gametypes") == 0), dd)
GAMETYPE_BUTTON(1, when( localVarBool("ui_more_gametypes") == 1), dd)
GAMETYPE_BUTTON(5, when( localVarBool("ui_more_gametypes") == 0), dom)
GAMETYPE_BUTTON(2, when( localVarBool("ui_more_gametypes") == 1), dom)
GAMETYPE_BUTTON(6, when( localVarBool("ui_more_gametypes") == 0), dm)
GAMETYPE_BUTTON(3, when( localVarBool("ui_more_gametypes") == 1), dm)
GAMETYPE_BUTTON(7, when( localVarBool("ui_more_gametypes") == 0), gtnw)
GAMETYPE_BUTTON(4, when( localVarBool("ui_more_gametypes") == 1), gtnw)
GAMETYPE_BUTTON(8, when( localVarBool("ui_more_gametypes") == 0), gg)
GAMETYPE_BUTTON(5, when( localVarBool("ui_more_gametypes") == 1), gg)
GAMETYPE_BUTTON(9, when( localVarBool("ui_more_gametypes") == 0), infected)
GAMETYPE_BUTTON(6, when( localVarBool("ui_more_gametypes") == 1), infected)
GAMETYPE_BUTTON(10, when( localVarBool("ui_more_gametypes") == 0), koth)
GAMETYPE_BUTTON(7, when( localVarBool("ui_more_gametypes") == 1), koth)
GAMETYPE_BUTTON(11, when( localVarBool("ui_more_gametypes") == 0), conf)
GAMETYPE_BUTTON(8, when( localVarBool("ui_more_gametypes") == 1), conf)
GAMETYPE_BUTTON(12, when( localVarBool("ui_more_gametypes") == 0), oneflag)
GAMETYPE_BUTTON(9, when( localVarBool("ui_more_gametypes") == 1), oneflag)
GAMETYPE_BUTTON(13, when( localVarBool("ui_more_gametypes") == 0), oitc)
GAMETYPE_BUTTON(10, when( localVarBool("ui_more_gametypes") == 1), oitc)
GAMETYPE_BUTTON(14, when( localVarBool("ui_more_gametypes") == 0), sab)
GAMETYPE_BUTTON(11, when( localVarBool("ui_more_gametypes") == 1), sab)
GAMETYPE_BUTTON(15, when( localVarBool("ui_more_gametypes") == 0), sd)
GAMETYPE_BUTTON(12, when( localVarBool("ui_more_gametypes") == 1), sd)
GAMETYPE_BUTTON(16, when( localVarBool("ui_more_gametypes") == 0), ss)
GAMETYPE_BUTTON(13, when( localVarBool("ui_more_gametypes") == 1), ss)
GAMETYPE_BUTTON(14, when( localVarBool("ui_more_gametypes") == 1), war)
GAMETYPE_BUTTON(15, when( localVarBool("ui_more_gametypes") == 1), tdef)
GAMETYPE_BUTTON(16, when( localVarBool("ui_more_gametypes") == 1), vip)
GAMETYPE_BUTTON_SCROLLER(17, when( localVarBool("ui_more_gametypes") == 1), "@MENU_SCROLL_UP", 0)
GAMETYPE_BUTTON_SCROLLER(17, when( localVarBool("ui_more_gametypes") == 0), "@MENU_SCROLL_DOWN", 1)*/
GAMETYPE_BUTTON(1, 1, dm)
GAMETYPE_BUTTON(2, 1, war)
GAMETYPE_BUTTON(3, 1, sd)
GAMETYPE_BUTTON(4, 1, sab)
GAMETYPE_BUTTON(5, 1, dom)
GAMETYPE_BUTTON(6, 1, koth)
GAMETYPE_BUTTON(7, 1, ctf)
GAMETYPE_BUTTON(8, 1, dd)
GAMETYPE_BUTTON(9, 1, vip)
GAMETYPE_BUTTON(10, 1, gtnw)
GAMETYPE_BUTTON(11, 1, oneflag)
GAMETYPE_BUTTON(12, 1, arena)
/*
GAMETYPE_BUTTON(1, dm)
GAMETYPE_BUTTON(2, war)
GAMETYPE_BUTTON(3, sd)
GAMETYPE_BUTTON(4, sab)
GAMETYPE_BUTTON(5, dom)
GAMETYPE_BUTTON(6, koth)
GAMETYPE_BUTTON(7, ctf)
GAMETYPE_BUTTON(8, dd)
GAMETYPE_BUTTON(9, vip)
GAMETYPE_BUTTON(10, gtnw)
GAMETYPE_BUTTON(11, oneflag)
GAMETYPE_BUTTON(12, arena)
GAMETYPE_BUTTON(13, ss)
GAMETYPE_BUTTON(14, gg)
GAMETYPE_BUTTON(15, oitc)
GAMETYPE_BUTTON(16, conf)
GAMETYPE_BUTTON(17, dzone)
*/
itemDef
{
rect -64 -20 336 20 1 3
style 1
border 0
ownerdraw 0
ownerdrawFlag 0
borderSize 0
foreColor 1 1 1 1
backColor 0 0 0 0
borderColor 0 0 0 0
outlineColor 0 0 0 0
origin 0 0
background menu_button_selection_bar
group mw2_button
type 1
align 0
textAlign 6
textAlignX -60
textAlignY 0
textScale 0.375
textStyle 0
textFont 3
feeder 0
text "@PLATFORM_BACK_CAPS"
visible 1
onFocus
{
play "mouse_over";
setItemColor self backcolor 0 0 0 1;
setLocalVarBool ui_menuAButton 1;
}
leaveFocus
{
setItemColor self backcolor 0 0 0 0.0;
setLocalVarBool ui_menuAButton 1;
}
action
{
play mouse_click;
close self;
}
}
itemDef
{
rect -272 28 272 356 3 1
style 3
border 0
ownerdraw 0
ownerdrawFlag 0
borderSize 0
foreColor 0 0 0 0.7
backColor 0 0 0 0
borderColor 0 0 0 0
outlineColor 0 0 0 0
background black
decoration
type 0
align 0
textAlign 0
textAlignX 0
textAlignY 0
textScale 0.55
textStyle 0
textFont 0
feeder 0
visible 1
}
itemDef
{
rect -272 28 264 200 3 1
style 0
border 0
ownerdraw 0
ownerdrawFlag 0
borderSize 0
foreColor 1 1 1 1
backColor 0 0 0 0
borderColor 0 0 0 0
outlineColor 0 0 0 0
decoration
type 0
align 0
textAlign 4
textAlignX 8
textAlignY 0
textScale 0.375
textStyle 0
textFont 9
feeder 0
visible 1
exp text ( localvarstring( "ui_info_name" ) )
}
itemDef
{
rect -272 28 264 200 3 1
style 0
border 0
ownerdraw 0
ownerdrawFlag 0
borderSize 0
foreColor 1 1 1 0.65
backColor 0 0 0 0
borderColor 0 0 0 0
outlineColor 0 0 0 0
decoration
autoWrapped
type 0
align 0
textAlign 4
textAlignX 8
textAlignY 20
textScale 0.375
textStyle 0
textFont 3
feeder 0
visible 1
exp text ( localvarstring( "ui_info_desc" ) )
}
}
}
+124
View File
@@ -0,0 +1,124 @@
#include "ui/menudef.h"
#include "ui_mp/main.inc"
#define MENU_NAME "settings_map"
#define MENU_MUSIC "music_mainmenu_mp"
#define MENU_TITLE "@MENU_CHOOSE_MAP_CAP"
#undef CHOICE_GROUP
#define CHOICE_GROUP MENU_NAME
#undef MENU_BACKGROUND_PANEL_RIGHT
#define MENU_BACKGROUND_PANEL_RIGHT \
itemDef \
{ \
rect (0 - MENU_BACKGROUND_PANEL_RIGHT_WIDTH) 28 MENU_BACKGROUND_PANEL_RIGHT_WIDTH MENU_BACKGROUND_PANEL_RIGHT_HEIGHT HORIZONTAL_ALIGN_RIGHT VERTICAL_ALIGN_TOP \
style WINDOW_STYLE_SHADER \
foreColor 0 0 0 0.7 \
background "black" \
decoration \
textScale 0.55 \
visible 1 \
} \
itemDef \
{ \
name "image" \
rect (0 - (MENU_BACKGROUND_PANEL_RIGHT_WIDTH - 10)) 50 (MENU_BACKGROUND_PANEL_RIGHT_WIDTH - 20) 127 HORIZONTAL_ALIGN_RIGHT VERTICAL_ALIGN_TOP \
style WINDOW_STYLE_SHADER \
foreColor 1 1 1 1 \
decoration \
textScale 0.55 \
visible 1 \
exp material ("preview_" + dvarString("ui_map_name")) \
} \
itemDef \
{ \
name "longname" \
rect (0 - (MENU_BACKGROUND_PANEL_RIGHT_WIDTH - 10)) 28 (MENU_BACKGROUND_PANEL_RIGHT_WIDTH - 20) 22 HORIZONTAL_ALIGN_RIGHT VERTICAL_ALIGN_TOP \
foreColor CHOICE_TEXTCOLOR \
decoration \
textAlign ITEM_ALIGN_TOP_LEFT \
textScale CHOICE_TEXTSIZE \
textFont 9 \
visible 1 \
exp text (dvarString("ui_map_long")) \
} \
itemDef \
{ \
name "description" \
rect (0 - (MENU_BACKGROUND_PANEL_RIGHT_WIDTH - 10)) 180 (MENU_BACKGROUND_PANEL_RIGHT_WIDTH - 20) 20 HORIZONTAL_ALIGN_RIGHT VERTICAL_ALIGN_TOP \
foreColor 1 1 1 0.65 \
decoration \
autoWrapped \
textAlign ITEM_ALIGN_TOP_LEFT \
textScale CHOICE_TEXTSIZE \
textFont UI_FONT_SMALL \
visible 1 \
exp text (dvarString("ui_map_desc")) \
}
#define ON_MENU_OPEN \
focusFirst; \
uiScript "ApplyInitialMap";
#define ON_MENU_CLOSE \
execNow "xupdatepartystate";
#define ON_MENU_ESC \
close self;
menuDef
{
name MENU_NAME
fullscreen 1
rect 0 0 640 480
foreColor CHOICE_TEXTCOLOR
focusColor CHOICE_TEXTCOLOR
soundLoop MENU_MUSIC
fadeCycle 1
fadeClamp 1
fadeAmount 0.1
MENU_ON_OPEN(ON_MENU_OPEN)
MENU_ON_CLOSE(ON_MENU_CLOSE)
MENU_ON_ESC(ON_MENU_ESC)
#define DISABLE_SIDEBAR
#include "ui_mp/bg.inc"
MENU_ITEM_TITLE(10)
MENU_BACKGROUND_FRAME
MENU_BACKGROUND_PANEL_RIGHT
itemDef
{
name "maplist"
rect 62 28 210 356 HORIZONTAL_ALIGN_LEFT VERTICAL_ALIGN_TOP
style WINDOW_STYLE_FILLED
foreColor CHOICE_TEXTCOLOR
outLineColor 0 0 0 0.6
type ITEM_TYPE_LISTBOX
textFont UI_FONT_NORMAL
textAlignX 6
textScale CHOICE_TEXTSIZE
visible 1
feeder 60
selectBorder 0.8 0.95 1 0
elementWidth 120
elementHeight 22
// numcols xpos xwidth textlen alignment
columns 1 8 120 25 0
doubleClick
{
uiScript "ApplyMap";
close self;
}
execkeyint 13
{
uiScript "ApplyMap";
close self;
}
}
ITEM_BUTTON_BACK(close self;)
}
+293
View File
@@ -0,0 +1,293 @@
{
menuDef
{
name "startup_messages"
rect -150 -124 300 124 2 2
popup
legacySplitScreenScale
visible 1
style 1
forecolor 1 1 1 1
backcolor 1 1 1 1
background "white"
focuscolor 1 1 1 1
onOpen
{
//setLocalVarInt "ui_centerPopup" (1);
focusfirst;
}
onClose
{
//setLocalVarInt "ui_centerPopup" (0);
}
onEsc
{
close self;
}
itemDef
{
rect -854 -480 1708 960 2 2
decoration
visible 1
style 1
forecolor 1 1 1 1
backcolor 0 0 0 0.35
background "white"
textscale 0.55
}
itemDef
{
rect -854 -480 1708 960 2 2
decoration
visible 1
style 1
forecolor 1 1 1 1
backcolor 1 1 1 1
background "xpbar_stencilbase"
textscale 0.55
}
itemDef
{
rect 0 0 300 124 2 2
decoration
visible 1
style 1
forecolor 1 1 1 1
backcolor 0.5 0.5 0.5 1
background "white"
textscale 0.55
}
itemDef
{
rect 0 0 1708 480 2 2
decoration
visible 1
style 3
forecolor 1 1 1 0.75
background "mw2_popup_bg_fogstencil"
textscale 0.55
exp rect x ( 0 - ( ( float( milliseconds( ) % 60000 ) / 60000 ) * ( 854 ) ) )
}
itemDef
{
rect 0 0 -1708 -480 2 2
decoration
visible 1
style 3
forecolor 0.85 0.85 0.85 1
background "mw2_popup_bg_fogscroll"
textscale 0.55
exp rect x ( 0 - ( ( float( milliseconds( ) % 60000 ) / 60000 ) * ( 854 ) ) )
}
itemDef
{
rect 0 0 300 0 2 2
decoration
visible 1
style 3
forecolor 1 1 1 1
background "mockup_popup_bg_stencilfill"
textscale 0.55
exp rect h ( ( 24 + 5 * 20 ) )
}
itemDef
{
rect 0 0 -1708 -480 2 2
decoration
visible 1
style 3
forecolor 1 1 1 0.75
background "mw2_popup_bg_fogstencil"
textscale 0.55
exp rect x ( ( - 854 ) + ( ( float( milliseconds( ) % 50000 ) / 50000 ) * ( 854 ) ) )
}
itemDef
{
rect 0 0 -1708 -480 2 2
decoration
visible 1
style 3
forecolor 0.85 0.85 0.85 1
background "mw2_popup_bg_fogscroll"
textscale 0.55
exp rect x ( ( - 854 ) + ( ( float( milliseconds( ) % 50000 ) / 50000 ) * ( 854 ) ) )
}
itemDef
{
rect 0 0 300 0 1 1
decoration
visible 1
style 3
forecolor 1 1 1 0
background "small_box_lightfx"
textscale 0.55
exp rect h ( ( 24 + 5 * 20 ) )
}
itemDef
{
rect -64 -64 64 64 2 2
decoration
visible 1
style 3
forecolor 0 0 0 1
background "drop_shadow_tl"
textscale 0.55
visible when ( 1 )
}
itemDef
{
rect 0 -64 300 64 2 2
decoration
visible 1
style 3
forecolor 0 0 0 1
background "drop_shadow_t"
textscale 0.55
visible when ( 1 )
}
itemDef
{
rect 300 -64 64 64 2 2
decoration
visible 1
style 3
forecolor 0 0 0 1
background "drop_shadow_tr"
textscale 0.55
visible when ( 1 )
}
itemDef
{
rect 300 0 64 0 2 2
decoration
visible 1
style 3
forecolor 0 0 0 1
background "drop_shadow_r"
textscale 0.55
exp rect h ( ( 24 + 5 * 20 ) )
visible when ( 1 )
}
itemDef
{
rect 300 0 64 64 2 2
decoration
visible 1
style 3
forecolor 0 0 0 1
background "drop_shadow_br"
textscale 0.55
exp rect y ( ( 0 - 0 ) + ( ( 24 + 5 * 20 ) ) )
visible when ( 1 )
}
itemDef
{
rect 0 0 300 64 2 2
decoration
visible 1
style 3
forecolor 0 0 0 1
background "drop_shadow_b"
textscale 0.55
exp rect y ( ( 0 - 0 ) + ( ( 24 + 5 * 20 ) ) )
visible when ( 1 )
}
itemDef
{
rect -64 0 64 64 2 2
decoration
visible 1
style 3
forecolor 0 0 0 1
background "drop_shadow_bl"
textscale 0.55
exp rect y ( ( 0 - 0 ) + ( ( 24 + 5 * 20 ) ) )
visible when ( 1 )
}
itemDef
{
rect -64 0 64 0 2 2
decoration
visible 1
style 3
forecolor 0 0 0 1
background "drop_shadow_l"
textscale 0.55
exp rect h ( ( 24 + 5 * 20 ) )
visible when ( 1 )
}
itemDef
{
rect 0 0 300 24 2 2
decoration
visible 1
style 1
forecolor 1 1 1 1
background "gradient_fadein"
textfont 9
textalign 5
textscale 0.375
exp text ( dvarstring( "ui_startupMessageTitle" ) )
}
itemDef
{
rect 4 24 292 20 2 2
decoration
autowrapped
visible 1
group "mw2_button"
style 1
forecolor 1 1 1 0.65
disablecolor 0.6 0.55 0.55 1
type 1
textfont 3
textalign 5
textscale 0.375
exp text ( dvarstring( "ui_startupMessage" ) )
action
{
play "mouse_click";
}
}
itemDef
{
rect 4 104 292 20 2 2
visible 1
group "mw2_popup_button"
style 1
forecolor 1 1 1 1
disablecolor 0.6 0.55 0.55 1
background "popup_button_selection_bar"
type 1
textfont 3
textalign 6
textalignx -24
textscale 0.375
exp text dvarstring ("ui_startupNextButtonText")
action
{
play "mouse_click";
uiScript "nextStartupMessage";
if (dvarstring("ui_startupNextButtonText") == "Close")
{
close self;
}
}
onFocus
{
play "mouse_over";
if ( dvarstring( "gameMode" ) != "mp" )
{
setItemColor "mw2_popup_button" backcolor 0 0 0 0;
}
setItemColor self backcolor 0 0 0 1;
setLocalVarBool "ui_popupAButton" ( 1 );
}
leaveFocus
{
setItemColor self backcolor 1 1 1 0;
setLocalVarBool "ui_popupAButton" ( 0 );
}
}
}
}
+297
View File
@@ -0,0 +1,297 @@
{
menuDef
{
name "stats_reset"
rect -430 -102 860 204 2 2
popup
legacySplitScreenScale
style 1
forecolor 1 1 1 1
backcolor 1 1 1 1
background "white"
focuscolor 1 1 1 1
onOpen
{
setLocalVarInt "ui_centerPopup" ( 1 );
setfocus "passwordEntry";
}
onClose
{
setLocalVarInt "ui_centerPopup" ( 0 );
}
onEsc
{
close self;
}
itemDef
{
rect -1004 -582 3416 1920 2 2
decoration
visible 1
style 1
forecolor 1 1 1 1
backcolor 1 1 1 1
background "xpbar_stencilbase"
textscale 0.55
}
itemDef
{
rect 0 0 860 204 2 2
decoration
visible 1
style 1
forecolor 1 1 1 1
backcolor 0.5 0.5 0.5 1
background "white"
textscale 0.55
}
itemDef
{
rect -150 -44 1708 480 2 9
decoration
visible 1
style 3
forecolor 1 1 1 0.75
background "mw2_popup_bg_fogstencil"
textscale 0.55
exp rect x ( 0 - ( ( float( milliseconds( ) % 60000 ) / 60000 ) * ( 854 ) ) )
}
itemDef
{
rect -150 -44 -1708 -480 2 2
decoration
visible 1
style 3
forecolor 0.85 0.85 0.85 1
background "mw2_popup_bg_fogscroll"
textscale 0.55
exp rect x ( 0 - ( ( float( milliseconds( ) % 60000 ) / 60000 ) * ( 854 ) ) )
}
itemDef
{
rect 0 0 860 0 2 9
decoration
visible 1
style 3
forecolor 1 1 1 1
background "mockup_popup_bg_stencilfill"
textscale 0.55
exp rect h ( ( 84 + 2 * 60 ) )
}
itemDef
{
rect -150 -44 -1708 -480 2 9
decoration
visible 1
style 3
forecolor 1 1 1 0.75
background "mw2_popup_bg_fogstencil"
textscale 0.55
exp rect x ( ( 0 - 854 ) + ( ( float( milliseconds( ) % 50000 ) / 50000 ) * ( 854 ) ) )
}
itemDef
{
rect -150 -44 -1708 -480 2 9
decoration
visible 1
style 3
forecolor 0.85 0.85 0.85 1
background "mw2_popup_bg_fogscroll"
textscale 0.55
exp rect x ( ( 0 - 854 ) + ( ( float( milliseconds( ) % 50000 ) / 50000 ) * ( 854 ) ) )
}
itemDef
{
rect -64 -64 64 64 2 2
decoration
visible 1
style 3
forecolor 0 0 0 1
background "drop_shadow_tl"
textscale 0.55
visible when ( 1 )
}
itemDef
{
rect 0 -64 860 64 2 2
decoration
visible 1
style 3
forecolor 0 0 0 1
background "drop_shadow_t"
textscale 0.55
visible when ( 1 )
}
itemDef
{
rect 860 -64 64 64 2 2
decoration
visible 1
style 3
forecolor 0 0 0 1
background "drop_shadow_tr"
textscale 0.55
visible when ( 1 )
}
itemDef
{
rect 860 0 64 64 2 2
decoration
visible 1
style 3
forecolor 0 0 0 1
background "drop_shadow_br"
textscale 0.55
exp rect y ( ( 0 - 0 ) + ( ( 84 + 2 * 60 ) ) )
visible when ( 1 )
}
itemDef
{
rect 0 0 860 64 2 2
decoration
visible 1
style 3
forecolor 0 0 0 1
background "drop_shadow_b"
textscale 0.55
exp rect y ( ( 0 - 0 ) + ( ( 84 + 2 * 60 ) ) )
visible when ( 1 )
}
itemDef
{
rect -64 0 64 64 2 2
decoration
visible 1
style 3
forecolor 0 0 0 1
background "drop_shadow_bl"
textscale 0.55
exp rect y ( ( 0 - 0 ) + ( ( 84 + 2 * 60 ) ) )
visible when ( 1 )
}
itemDef
{
rect 0 0 860 24 2 2
decoration
visible 1
style 1
forecolor 1 1 1 1
background "gradient_fadein"
textfont 9
textalign 5
textalignx -4
textscale 0.375
text "@MENU_RESET_STATS"
}
itemDef
{
rect 286 22 292 20 2 2
decoration
autowrapped
visible 1
group "mw2_button"
forecolor 1 1 1 0.65
disablecolor 0.6 0.55 0.55 1
background "menu_button_selection_bar"
type 1
textFont 3
textAlign 4
textScale 0.375
exp text("@MPUI_RESET_STATS_WARNING")
action
{
play "mouse_click";
}
onFocus
{
play "mouse_over";
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 "reset_button"
rect 286 164 292 20 2 2
visible 1
group "mw2_popup_button"
style 1
forecolor 1 1 1 1
disablecolor 0.6 0.55 0.55 1
background "popup_button_selection_bar_flipped"
type 1
textfont 3
textalign 4
textalignx 4
textscale 0.375
text "@MENU_RESET"
visible when ( 1 )
action
{
play "mouse_click";
exec "resetStats";
close self;
}
onFocus
{
play "mouse_over";
if ( dvarstring( "gameMode" ) != "mp" )
{
setItemColor "mw2_popup_button" backcolor 0 0 0 0;
}
setItemColor self backcolor 0 0 0 1;
setLocalVarBool "ui_popupAButton" ( 1 );
}
leaveFocus
{
setItemColor self backcolor 1 1 1 0;
setLocalVarBool "ui_popupAButton" ( 0 );
}
}
itemDef
{
name "cancel_button"
rect 286 184 292 20 2 2
visible 1
group "mw2_popup_button"
style 1
forecolor 1 1 1 1
disablecolor 0.6 0.55 0.55 1
background "popup_button_selection_bar_flipped"
type 1
textfont 3
textalign 4
textalignx 4
textscale 0.375
text "@MENU_CANCEL"
visible when ( 1 )
action
{
play "mouse_click";
close self;
}
onFocus
{
play "mouse_over";
if ( dvarstring( "gameMode" ) != "mp" )
{
setItemColor "mw2_popup_button" backcolor 0 0 0 0;
}
setItemColor self backcolor 0 0 0 1;
setLocalVarBool "ui_popupAButton" ( 1 );
}
leaveFocus
{
setItemColor self backcolor 1 1 1 0;
setLocalVarBool "ui_popupAButton" ( 0 );
}
}
}
}
+297
View File
@@ -0,0 +1,297 @@
{
menuDef
{
name "stats_unlock"
rect -430 -102 860 204 2 2
popup
legacySplitScreenScale
style 1
forecolor 1 1 1 1
backcolor 1 1 1 1
background "white"
focuscolor 1 1 1 1
onOpen
{
setLocalVarInt "ui_centerPopup" ( 1 );
setfocus "passwordEntry";
}
onClose
{
setLocalVarInt "ui_centerPopup" ( 0 );
}
onEsc
{
close self;
}
itemDef
{
rect -1004 -582 3416 1920 2 2
decoration
visible 1
style 1
forecolor 1 1 1 1
backcolor 1 1 1 1
background "xpbar_stencilbase"
textscale 0.55
}
itemDef
{
rect 0 0 860 204 2 2
decoration
visible 1
style 1
forecolor 1 1 1 1
backcolor 0.5 0.5 0.5 1
background "white"
textscale 0.55
}
itemDef
{
rect -150 -44 1708 480 2 9
decoration
visible 1
style 3
forecolor 1 1 1 0.75
background "mw2_popup_bg_fogstencil"
textscale 0.55
exp rect x ( 0 - ( ( float( milliseconds( ) % 60000 ) / 60000 ) * ( 854 ) ) )
}
itemDef
{
rect -150 -44 -1708 -480 2 2
decoration
visible 1
style 3
forecolor 0.85 0.85 0.85 1
background "mw2_popup_bg_fogscroll"
textscale 0.55
exp rect x ( 0 - ( ( float( milliseconds( ) % 60000 ) / 60000 ) * ( 854 ) ) )
}
itemDef
{
rect 0 0 860 0 2 9
decoration
visible 1
style 3
forecolor 1 1 1 1
background "mockup_popup_bg_stencilfill"
textscale 0.55
exp rect h ( ( 84 + 2 * 60 ) )
}
itemDef
{
rect -150 -44 -1708 -480 2 9
decoration
visible 1
style 3
forecolor 1 1 1 0.75
background "mw2_popup_bg_fogstencil"
textscale 0.55
exp rect x ( ( 0 - 854 ) + ( ( float( milliseconds( ) % 50000 ) / 50000 ) * ( 854 ) ) )
}
itemDef
{
rect -150 -44 -1708 -480 2 9
decoration
visible 1
style 3
forecolor 0.85 0.85 0.85 1
background "mw2_popup_bg_fogscroll"
textscale 0.55
exp rect x ( ( 0 - 854 ) + ( ( float( milliseconds( ) % 50000 ) / 50000 ) * ( 854 ) ) )
}
itemDef
{
rect -64 -64 64 64 2 2
decoration
visible 1
style 3
forecolor 0 0 0 1
background "drop_shadow_tl"
textscale 0.55
visible when ( 1 )
}
itemDef
{
rect 0 -64 860 64 2 2
decoration
visible 1
style 3
forecolor 0 0 0 1
background "drop_shadow_t"
textscale 0.55
visible when ( 1 )
}
itemDef
{
rect 860 -64 64 64 2 2
decoration
visible 1
style 3
forecolor 0 0 0 1
background "drop_shadow_tr"
textscale 0.55
visible when ( 1 )
}
itemDef
{
rect 860 0 64 64 2 2
decoration
visible 1
style 3
forecolor 0 0 0 1
background "drop_shadow_br"
textscale 0.55
exp rect y ( ( 0 - 0 ) + ( ( 84 + 2 * 60 ) ) )
visible when ( 1 )
}
itemDef
{
rect 0 0 860 64 2 2
decoration
visible 1
style 3
forecolor 0 0 0 1
background "drop_shadow_b"
textscale 0.55
exp rect y ( ( 0 - 0 ) + ( ( 84 + 2 * 60 ) ) )
visible when ( 1 )
}
itemDef
{
rect -64 0 64 64 2 2
decoration
visible 1
style 3
forecolor 0 0 0 1
background "drop_shadow_bl"
textscale 0.55
exp rect y ( ( 0 - 0 ) + ( ( 84 + 2 * 60 ) ) )
visible when ( 1 )
}
itemDef
{
rect 0 0 860 24 2 2
decoration
visible 1
style 1
forecolor 1 1 1 1
background "gradient_fadein"
textfont 9
textalign 5
textalignx -4
textscale 0.375
text "@MENU_UNLOCK_STATS"
}
itemDef
{
rect 286 22 292 20 2 2
decoration
autowrapped
visible 1
group "mw2_button"
forecolor 1 1 1 0.65
disablecolor 0.6 0.55 0.55 1
background "menu_button_selection_bar"
type 1
textFont 3
textAlign 4
textScale 0.375
exp text("@MPUI_UNLOCK_STATS_WARNING")
action
{
play "mouse_click";
}
onFocus
{
play "mouse_over";
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 "reset_button"
rect 286 164 292 20 2 2
visible 1
group "mw2_popup_button"
style 1
forecolor 1 1 1 1
disablecolor 0.6 0.55 0.55 1
background "popup_button_selection_bar_flipped"
type 1
textfont 3
textalign 4
textalignx 4
textscale 0.375
text "@MENU_UNLOCK"
visible when ( 1 )
action
{
play "mouse_click";
exec "unlockStats";
close self;
}
onFocus
{
play "mouse_over";
if ( dvarstring( "gameMode" ) != "mp" )
{
setItemColor "mw2_popup_button" backcolor 0 0 0 0;
}
setItemColor self backcolor 0 0 0 1;
setLocalVarBool "ui_popupAButton" ( 1 );
}
leaveFocus
{
setItemColor self backcolor 1 1 1 0;
setLocalVarBool "ui_popupAButton" ( 0 );
}
}
itemDef
{
name "cancel_button"
rect 286 184 292 20 2 2
visible 1
group "mw2_popup_button"
style 1
forecolor 1 1 1 1
disablecolor 0.6 0.55 0.55 1
background "popup_button_selection_bar_flipped"
type 1
textfont 3
textalign 4
textalignx 4
textscale 0.375
text "@MENU_CANCEL"
visible when ( 1 )
action
{
play "mouse_click";
close self;
}
onFocus
{
play "mouse_over";
if ( dvarstring( "gameMode" ) != "mp" )
{
setItemColor "mw2_popup_button" backcolor 0 0 0 0;
}
setItemColor self backcolor 0 0 0 1;
setLocalVarBool "ui_popupAButton" ( 1 );
}
leaveFocus
{
setItemColor self backcolor 1 1 1 0;
setLocalVarBool "ui_popupAButton" ( 0 );
}
}
}
}
+265
View File
@@ -0,0 +1,265 @@
#include "ui/menudef.h"
#include "ui_mp/main.inc"
#define MENU_NAME "pc_theater_menu"
#define MENU_MUSIC "music_mainmenu_mp"
#define MENU_TITLE "@MENU_THEATER_CAPS"
#undef CHOICE_GROUP
#define CHOICE_GROUP MENU_NAME
#undef MENU_BACKGROUND_PANEL_RIGHT_WIDTH
#define MENU_BACKGROUND_PANEL_RIGHT_WIDTH 242
#define MENU_BACKGROUND_PANEL_BUTTON(nameArg, yPos, textArg, actionArg) \
MENU_BACKGROUND_PANEL_BUTTON_VIS(nameArg, yPos, textArg, actionArg, 1)
#define MENU_BACKGROUND_PANEL_BUTTON_VIS(nameArg, yPos, textArg, actionArg, visArg) \
itemDef \
{ \
name nameArg \
rect (0 - MENU_BACKGROUND_PANEL_RIGHT_WIDTH) yPos MENU_BACKGROUND_PANEL_RIGHT_WIDTH 20 HORIZONTAL_ALIGN_RIGHT VERTICAL_ALIGN_BOTTOM \
style WINDOW_STYLE_FILLED \
backColor 0.6 0.55 0.55 0.2 \
foreColor CHOICE_TEXTCOLOR \
textFont CHOICE_TEXTFONT \
textAlign ITEM_ALIGN_TOP_RIGHT \
textAlignX -30 \
textScale CHOICE_TEXTSIZE \
background "menu_setting_selection_bar" \
group "mw2_button" \
type ITEM_TYPE_BUTTON \
text textArg \
visible visArg \
onFocus \
{ \
play CHOICE_FOCUS_SOUND; \
setItemColor self backColor 0 0 0 1; \
} \
leaveFocus \
{ \
setItemColor self backColor 0.6 0.55 0.55 0.2; \
} \
action \
{ \
play CHOICE_CLICK_SOUND; \
actionArg \
} \
}
#undef MENU_BACKGROUND_PANEL_RIGHT
#define MENU_BACKGROUND_PANEL_RIGHT \
itemDef \
{ \
rect (0 - MENU_BACKGROUND_PANEL_RIGHT_WIDTH) 28 MENU_BACKGROUND_PANEL_RIGHT_WIDTH MENU_BACKGROUND_PANEL_RIGHT_HEIGHT HORIZONTAL_ALIGN_RIGHT VERTICAL_ALIGN_TOP \
style WINDOW_STYLE_SHADER \
foreColor 0 0 0 0.7 \
background "black" \
decoration \
textScale 0.55 \
visible 1 \
} \
itemDef \
{ \
name "image" \
rect (0 - (MENU_BACKGROUND_PANEL_RIGHT_WIDTH - 10)) 50 (MENU_BACKGROUND_PANEL_RIGHT_WIDTH - 20) 127 HORIZONTAL_ALIGN_RIGHT VERTICAL_ALIGN_TOP \
style WINDOW_STYLE_SHADER \
foreColor 1 1 1 1 \
decoration \
textScale 0.55 \
visible when(dvarString("ui_demo_mapname") != "") \
exp material ("preview_" + dvarString("ui_demo_mapname")) \
} \
itemDef \
{ \
name "image" \
rect (0 - (MENU_BACKGROUND_PANEL_RIGHT_WIDTH - 10)) 50 (MENU_BACKGROUND_PANEL_RIGHT_WIDTH - 20) 127 HORIZONTAL_ALIGN_RIGHT VERTICAL_ALIGN_TOP \
style WINDOW_STYLE_SHADER \
foreColor 1 1 1 1 \
decoration \
textScale 0.55 \
visible when(dvarString("ui_demo_mapname") == "") \
exp material ("loadscreen_mp_bonusmaps") \
} \
itemDef \
{ \
name "mapname" \
rect (0 - (MENU_BACKGROUND_PANEL_RIGHT_WIDTH - 10)) 28 (MENU_BACKGROUND_PANEL_RIGHT_WIDTH - 20) 22 HORIZONTAL_ALIGN_RIGHT VERTICAL_ALIGN_TOP \
foreColor CHOICE_TEXTCOLOR \
decoration \
textAlign ITEM_ALIGN_TOP_LEFT \
textScale CHOICE_TEXTSIZE \
textFont 9 \
visible 1 \
exp text (dvarString("ui_demo_mapname_localized")) \
} \
itemDef \
{ \
name "gametype" \
rect (0 - (MENU_BACKGROUND_PANEL_RIGHT_WIDTH - 10)) 180 (MENU_BACKGROUND_PANEL_RIGHT_WIDTH - 20) 20 HORIZONTAL_ALIGN_RIGHT VERTICAL_ALIGN_TOP \
foreColor 1 1 1 0.65 \
decoration \
autoWrapped \
textAlign ITEM_ALIGN_TOP_LEFT \
textScale CHOICE_TEXTSIZE \
textFont UI_FONT_SMALL \
visible 1 \
exp text (dvarString("ui_demo_gametype")) \
} \
itemDef \
{ \
name "author_label" \
rect (0 - (MENU_BACKGROUND_PANEL_RIGHT_WIDTH - 10)) 200 (MENU_BACKGROUND_PANEL_RIGHT_WIDTH - 20) 20 HORIZONTAL_ALIGN_RIGHT VERTICAL_ALIGN_TOP \
foreColor 1 1 1 0.65 \
decoration \
autoWrapped \
textAlign ITEM_ALIGN_TOP_LEFT \
textScale CHOICE_TEXTSIZE \
textFont UI_FONT_SMALL \
text "@MPUI_DEMO_AUTHOR" \
visible 1 \
} \
itemDef \
{ \
name "author" \
rect (0 - (MENU_BACKGROUND_PANEL_RIGHT_WIDTH - 10)) 200 (MENU_BACKGROUND_PANEL_RIGHT_WIDTH - 20) 20 HORIZONTAL_ALIGN_RIGHT VERTICAL_ALIGN_TOP \
foreColor 1 1 1 0.65 \
decoration \
autoWrapped \
textAlign ITEM_ALIGN_TOP_RIGHT \
textScale CHOICE_TEXTSIZE \
textFont UI_FONT_SMALL \
visible 1 \
exp text (" " + dvarString("ui_demo_author")) \
} \
itemDef \
{ \
name "length_label" \
rect (0 - (MENU_BACKGROUND_PANEL_RIGHT_WIDTH - 10)) 220 (MENU_BACKGROUND_PANEL_RIGHT_WIDTH - 20) 20 HORIZONTAL_ALIGN_RIGHT VERTICAL_ALIGN_TOP \
foreColor 1 1 1 0.65 \
decoration \
autoWrapped \
textAlign ITEM_ALIGN_TOP_LEFT \
textScale CHOICE_TEXTSIZE \
textFont UI_FONT_SMALL \
text "@MPUI_DEMO_LENGTH" \
visible 1 \
} \
itemDef \
{ \
name "length" \
rect (0 - (MENU_BACKGROUND_PANEL_RIGHT_WIDTH - 10)) 220 (MENU_BACKGROUND_PANEL_RIGHT_WIDTH - 20) 20 HORIZONTAL_ALIGN_RIGHT VERTICAL_ALIGN_TOP \
foreColor 1 1 1 0.65 \
decoration \
autoWrapped \
textAlign ITEM_ALIGN_TOP_RIGHT \
textScale CHOICE_TEXTSIZE \
textFont UI_FONT_SMALL \
visible 1 \
exp text (" " + dvarString("ui_demo_length")) \
} \
itemDef \
{ \
name "date_label" \
rect (0 - (MENU_BACKGROUND_PANEL_RIGHT_WIDTH - 10)) 240 (MENU_BACKGROUND_PANEL_RIGHT_WIDTH - 20) 20 HORIZONTAL_ALIGN_RIGHT VERTICAL_ALIGN_TOP \
foreColor 1 1 1 0.65 \
decoration \
autoWrapped \
textAlign ITEM_ALIGN_TOP_LEFT \
textScale CHOICE_TEXTSIZE \
textFont UI_FONT_SMALL \
text "@MPUI_DEMO_DATE" \
visible 1 \
} \
itemDef \
{ \
name "date" \
rect (0 - (MENU_BACKGROUND_PANEL_RIGHT_WIDTH - 10)) 240 (MENU_BACKGROUND_PANEL_RIGHT_WIDTH - 20) 20 HORIZONTAL_ALIGN_RIGHT VERTICAL_ALIGN_TOP \
foreColor 1 1 1 0.65 \
decoration \
autoWrapped \
textAlign ITEM_ALIGN_TOP_RIGHT \
textScale CHOICE_TEXTSIZE \
textFont UI_FONT_SMALL \
visible 1 \
exp text (" " + dvarString("ui_demo_date")) \
} \
MENU_BACKGROUND_PANEL_BUTTON("play", -68, "@MENU_PLAY", uiScript "launchDemo") \
MENU_BACKGROUND_PANEL_BUTTON("delete", -48, "@MENU_DELETE", uiScript "deleteDemo")
#undef MENU_ITEM_TITLE
#define MENU_ITEM_TITLE(posX) \
itemDef \
{ \
rect 0 4 260 28 HORIZONTAL_ALIGN_LEFT VERTICAL_ALIGN_TOP \
foreColor CHOICE_TEXTCOLOR \
decoration \
textAlign ITEM_ALIGN_TOP_RIGHT \
textAlignX -60 \
textScale 0.5 \
textFont 9 \
text MENU_TITLE \
visible 1 \
exp rect x (posX) \
}
#define ON_MENU_OPEN \
uiScript "LoadArenas"; \
uiScript "loadDemos"; \
setFoucs "demoList";
#define ON_MENU_ESC \
close self;
menuDef
{
name MENU_NAME
fullscreen 1
rect 0 0 640 480
foreColor CHOICE_TEXTCOLOR
focusColor CHOICE_TEXTCOLOR
soundLoop MENU_MUSIC
fadeCycle 1
fadeClamp 1
fadeAmount 0.1
MENU_ON_OPEN(ON_MENU_OPEN)
MENU_ON_ESC(ON_MENU_ESC)
#define DISABLE_SIDEBAR
#include "ui_mp/bg.inc"
MENU_ITEM_TITLE(-90)
MENU_BACKGROUND_FRAME
MENU_BACKGROUND_PANEL_RIGHT
itemDef
{
name "demoList"
rect 0 28 260 356 HORIZONTAL_ALIGN_LEFT VERTICAL_ALIGN_TOP
style WINDOW_STYLE_FILLED
foreColor CHOICE_TEXTCOLOR
backColor 0 0 0 0.5
outLineColor 0 0 0 0.6
type ITEM_TYPE_LISTBOX
textFont UI_FONT_NORMAL
textAlignX 6
textScale 0.3
visible 1
feeder FEEDER_DEMOS
elementWidth 260
elementHeight 16
// numcols xpos xwidth textlen alignment
columns 1 8 260 80 0
doubleClick
{
uiScript "launchDemo";
}
execKeyInt 13
{
uiScript "launchDemo";
}
}
ITEM_BUTTON_BACK(close self;)
}