[Mod FF]: Updated the menu files.
This commit is contained in:
@ -2,126 +2,130 @@
|
||||
#define ALT_PANEL 0
|
||||
#endif
|
||||
|
||||
#ifdef SPLITSCREEN_ENABLED
|
||||
itemDef {
|
||||
style WINDOW_STYLE_SHADER
|
||||
rect -320 0 500 64 0 0
|
||||
background "white"
|
||||
forecolor 0.9 0.9 0.95 0.175
|
||||
visible 1 decoration }
|
||||
itemDef {
|
||||
style WINDOW_STYLE_SHADER
|
||||
rect 180 0 16 -64 0 0
|
||||
origin 0 0
|
||||
background HIGHLIGHT_SHADER_ART
|
||||
forecolor 0.9 0.9 0.95 0.175
|
||||
visible 1 decoration }
|
||||
#endif
|
||||
|
||||
#ifdef PC
|
||||
itemDef {
|
||||
itemDef
|
||||
{
|
||||
style WINDOW_STYLE_SHADER
|
||||
rect -120 -32 378 64 0 0
|
||||
background "white"
|
||||
forecolor 0.9 0.9 0.95 0.175
|
||||
visible 1
|
||||
decoration }
|
||||
itemDef {
|
||||
visible when(dvarBool( console_menu_style ) == 0)
|
||||
decoration
|
||||
}
|
||||
itemDef
|
||||
{
|
||||
style WINDOW_STYLE_SHADER
|
||||
rect 258 -32 16 -64 0 0
|
||||
origin 0 0
|
||||
background HIGHLIGHT_SHADER_ART
|
||||
forecolor 0.9 0.9 0.95 0.175
|
||||
visible 1
|
||||
decoration }
|
||||
visible when(dvarBool( console_menu_style ) == 0)
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
style WINDOW_STYLE_SHADER
|
||||
rect 56 448 528 40 0 0
|
||||
background "white"
|
||||
forecolor 0.9 0.9 0.95 0.175
|
||||
visible 1
|
||||
decoration }
|
||||
itemDef {
|
||||
visible when(dvarBool( console_menu_style ) == 0)
|
||||
decoration
|
||||
}
|
||||
itemDef
|
||||
{
|
||||
style WINDOW_STYLE_SHADER
|
||||
rect 584 448 16 64 0 0
|
||||
origin 0 0
|
||||
background HIGHLIGHT_SHADER_ART
|
||||
forecolor 0.9 0.9 0.95 0.175
|
||||
visible 1
|
||||
decoration }
|
||||
itemDef {
|
||||
visible when(dvarBool( console_menu_style ) == 0)
|
||||
decoration
|
||||
}
|
||||
itemDef
|
||||
{
|
||||
style WINDOW_STYLE_SHADER
|
||||
rect 40 448 -16 64 0 0
|
||||
origin 0 0
|
||||
background HIGHLIGHT_SHADER_ART
|
||||
forecolor 0.9 0.9 0.95 0.175
|
||||
visible 1
|
||||
decoration }
|
||||
itemDef {
|
||||
visible when(dvarBool( console_menu_style ) == 0)
|
||||
decoration
|
||||
}
|
||||
itemDef
|
||||
{
|
||||
style WINDOW_STYLE_SHADER
|
||||
rect -120 464 160 32 0 0
|
||||
background "white"
|
||||
forecolor 0.9 0.9 0.95 0.175
|
||||
visible 1
|
||||
decoration }
|
||||
itemDef {
|
||||
visible when(dvarBool( console_menu_style ) == 0)
|
||||
decoration
|
||||
}
|
||||
itemDef
|
||||
{
|
||||
style WINDOW_STYLE_SHADER
|
||||
rect 600 464 160 32 0 0
|
||||
background "white"
|
||||
forecolor 0.9 0.9 0.95 0.175
|
||||
visible 1
|
||||
decoration }
|
||||
#endif
|
||||
visible when(dvarBool( console_menu_style ) == 0)
|
||||
decoration
|
||||
}
|
||||
|
||||
#ifndef SPLITSCREEN_ENABLED
|
||||
#ifndef PC
|
||||
itemDef {
|
||||
itemDef
|
||||
{
|
||||
style WINDOW_STYLE_SHADER
|
||||
rect -120 0 420 68 0 0
|
||||
background "white"
|
||||
forecolor 0.9 0.9 0.95 0.175
|
||||
visible when( ENABLE_TITLE_BG );
|
||||
decoration }
|
||||
itemDef {
|
||||
visible when( ENABLE_TITLE_BG && dvarBool( console_menu_style ) == 1 );
|
||||
decoration
|
||||
}
|
||||
itemDef
|
||||
{
|
||||
style WINDOW_STYLE_SHADER
|
||||
rect 300 0 16 -68 0 0
|
||||
origin 0 0
|
||||
background HIGHLIGHT_SHADER_ART
|
||||
forecolor 0.9 0.9 0.95 0.175
|
||||
visible when( ENABLE_TITLE_BG );
|
||||
decoration }
|
||||
itemDef {
|
||||
visible when( ENABLE_TITLE_BG && dvarBool( console_menu_style ) == 1 );
|
||||
decoration
|
||||
}
|
||||
itemDef
|
||||
{
|
||||
style WINDOW_STYLE_SHADER
|
||||
rect -120 414 1200 64 0 0
|
||||
background "white"
|
||||
forecolor 0.9 0.9 0.95 0.175
|
||||
visible when( ENABLE_TITLE_BG && ALT_PANEL );
|
||||
decoration }
|
||||
itemDef {
|
||||
visible when( ENABLE_TITLE_BG && ALT_PANEL && dvarBool( console_menu_style ) == 1 );
|
||||
decoration
|
||||
}
|
||||
itemDef
|
||||
{
|
||||
style WINDOW_STYLE_SHADER
|
||||
rect -120 416 420 64 0 0
|
||||
background "white"
|
||||
forecolor 0.9 0.9 0.95 0.175
|
||||
visible when( ENABLE_TITLE_BG && (ALT_PANEL == 0) );
|
||||
decoration }
|
||||
itemDef {
|
||||
visible when( ENABLE_TITLE_BG && (ALT_PANEL == 0) && dvarBool( console_menu_style ) == 1 );
|
||||
decoration
|
||||
}
|
||||
itemDef
|
||||
{
|
||||
style WINDOW_STYLE_SHADER
|
||||
rect 300 416 16 64 0 0
|
||||
origin 0 0
|
||||
background HIGHLIGHT_SHADER_ART
|
||||
forecolor 0.9 0.9 0.95 0.175
|
||||
visible when( ENABLE_TITLE_BG && (ALT_PANEL == 0) );
|
||||
decoration }
|
||||
itemDef {
|
||||
visible when( ENABLE_TITLE_BG && (ALT_PANEL == 0) && dvarBool( console_menu_style ) == 1 );
|
||||
decoration
|
||||
}
|
||||
itemDef
|
||||
{
|
||||
style WINDOW_STYLE_SHADER
|
||||
rect 316 432 440 64 0 0
|
||||
background "white"
|
||||
forecolor 0.9 0.9 0.95 0.175
|
||||
visible when( ENABLE_TITLE_BG && (ALT_PANEL == 0) );
|
||||
decoration }
|
||||
#endif
|
||||
#endif
|
||||
visible when( ENABLE_TITLE_BG && (ALT_PANEL == 0) && dvarBool( console_menu_style ) == 1 );
|
||||
decoration
|
||||
}
|
||||
|
||||
#ifdef CONSOLE
|
||||
#define LOCAL_NOT_IN_CAC ( !menuisopen("menu_cac_assault") && !menuisopen("menu_cac_heavygunner") && !menuisopen("menu_cac_sniper") && !menuisopen("menu_cac_specops") && !menuisopen("menu_cac_demolitions") )
|
||||
@ -152,8 +156,8 @@
|
||||
{
|
||||
play "mouse_click";
|
||||
execNow "toggle lb_filter 0 1";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#ifndef BUTTON_X_GOTOTOP
|
||||
#define BUTTON_X_GOTOTOP 0
|
||||
@ -170,7 +174,7 @@
|
||||
rect 0 -4 0 0 HORIZONTAL_ALIGN_CENTER VERTICAL_ALIGN_BOTTOM
|
||||
visible when( BUTTON_X_GOTOTOP );
|
||||
decoration
|
||||
}
|
||||
}
|
||||
|
||||
#ifndef BUTTON_PGUP
|
||||
#define BUTTON_PGUP 0
|
||||
@ -194,7 +198,7 @@
|
||||
rect -20 -4 0 0 HORIZONTAL_ALIGN_CENTER VERTICAL_ALIGN_BOTTOM
|
||||
visible when( BUTTON_REFRESH );
|
||||
decoration
|
||||
}
|
||||
}
|
||||
|
||||
// page up and down
|
||||
itemDef
|
||||
@ -207,7 +211,7 @@
|
||||
rect -190 -4 0 0 HORIZONTAL_ALIGN_RIGHT VERTICAL_ALIGN_BOTTOM
|
||||
visible when( BUTTON_PGUP );
|
||||
decoration
|
||||
}
|
||||
}
|
||||
itemDef
|
||||
{
|
||||
name pgdown
|
||||
@ -218,7 +222,7 @@
|
||||
rect -90 -4 0 0 HORIZONTAL_ALIGN_RIGHT VERTICAL_ALIGN_BOTTOM
|
||||
visible when( BUTTON_PGDOWN );
|
||||
decoration
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
itemDef {
|
||||
@ -229,7 +233,7 @@
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
}
|
||||
itemDef
|
||||
{
|
||||
rect 18 -4 0 0 HORIZONTAL_ALIGN_LEFT VERTICAL_ALIGN_BOTTOM
|
||||
@ -240,7 +244,7 @@
|
||||
textalign ITEM_ALIGN_BOTTOM_LEFT
|
||||
visible WHEN( LOCAL_NOT_IN_CAC );
|
||||
decoration
|
||||
}
|
||||
}
|
||||
itemDef
|
||||
{
|
||||
rect 18 -4 0 0 HORIZONTAL_ALIGN_LEFT VERTICAL_ALIGN_BOTTOM
|
||||
@ -251,7 +255,7 @@
|
||||
textalign ITEM_ALIGN_BOTTOM_LEFT
|
||||
visible when( LOCAL_IN_CAC );
|
||||
decoration
|
||||
}
|
||||
}
|
||||
|
||||
#endif // #ifdef CONSOLE
|
||||
|
||||
@ -264,12 +268,65 @@
|
||||
#ifndef BACK_OPEN
|
||||
#define BACK_OPEN open main_text;
|
||||
#endif
|
||||
|
||||
itemDef
|
||||
{
|
||||
style WINDOW_STYLE_SHADER
|
||||
rect 0 -20 16 16 HORIZONTAL_ALIGN_LEFT VERTICAL_ALIGN_BOTTOM
|
||||
origin 0 0
|
||||
background "ui_arrow_left"
|
||||
forecolor 1 1 1 1
|
||||
visible when (dvarBool(console_menu_style) == 1 );
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef
|
||||
{
|
||||
type ITEM_TYPE_BUTTON
|
||||
rect 18 -24 40 20 HORIZONTAL_ALIGN_LEFT VERTICAL_ALIGN_BOTTOM
|
||||
origin 0 0
|
||||
text "@MENU_BACK"
|
||||
textfont UI_FONT_NORMAL
|
||||
textscale TEXTSIZE_SMALL
|
||||
textalign ITEM_ALIGN_BOTTOM_LEFT
|
||||
visible when( BACK_ENABLE && dvarBool(console_menu_style) == 1 && dvarBool(gpad_in_use) == 0 );
|
||||
mouseEnter { play "mouse_over"; }
|
||||
action
|
||||
{
|
||||
play "mouse_click";
|
||||
close self;
|
||||
BACK_OPEN
|
||||
}
|
||||
}
|
||||
|
||||
itemDef
|
||||
{
|
||||
rect 18 -4 0 0 HORIZONTAL_ALIGN_LEFT VERTICAL_ALIGN_BOTTOM
|
||||
origin 0 0
|
||||
textfont UI_FONT_NORMAL
|
||||
textscale TEXTSIZE_SMALL
|
||||
textalign ITEM_ALIGN_BOTTOM_LEFT
|
||||
exp text( locString( "@IW3SP_MOD_LOC_PLATFORM_BACK_GAMEPAD_XBOX" ) + " " + locString( "@MENU_BACK" ) )
|
||||
visible when( BACK_ENABLE && dvarBool(console_menu_style) == 1 && dvarBool(gpad_in_use) == 1 && dvarBool(gpad_style) == 0 );
|
||||
decoration
|
||||
}
|
||||
itemDef
|
||||
{
|
||||
rect 18 -4 0 0 HORIZONTAL_ALIGN_LEFT VERTICAL_ALIGN_BOTTOM
|
||||
origin 0 0
|
||||
textfont UI_FONT_NORMAL
|
||||
textscale TEXTSIZE_SMALL
|
||||
textalign ITEM_ALIGN_BOTTOM_LEFT
|
||||
exp text( locString( "@IW3SP_MOD_LOC_PLATFORM_BACK_GAMEPAD_SONY" ) + " " + locString( "@MENU_BACK" ) )
|
||||
visible when( BACK_ENABLE && dvarBool(console_menu_style) == 1 && dvarBool(gpad_in_use) == 1 && dvarBool(gpad_style) == 1 );
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef
|
||||
{
|
||||
name back
|
||||
text "@MENU_BACK"
|
||||
type 1
|
||||
type ITEM_TYPE_BUTTON
|
||||
style WINDOW_STYLE_FILLED
|
||||
textstyle ITEM_TEXTSTYLE_SHADOWED
|
||||
rect -250 -26 40 20 HORIZONTAL_ALIGN_CENTER VERTICAL_ALIGN_BOTTOM
|
||||
@ -277,14 +334,14 @@
|
||||
textalign ITEM_ALIGN_LEFT
|
||||
textscale TEXTSIZE_SMALL
|
||||
textaligny 18
|
||||
visible when(BACK_ENABLE);
|
||||
visible when( BACK_ENABLE && dvarBool(console_menu_style) == 0 );
|
||||
mouseEnter { play "mouse_over"; }
|
||||
action
|
||||
{
|
||||
play "mouse_click";
|
||||
close self;
|
||||
BACK_OPEN
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#endif // #ifdef PC
|
Reference in New Issue
Block a user