cod5-sdk/raw/ui_mp/vid_restart.menu
2008-11-20 00:00:00 +00:00

349 lines
No EOL
6.5 KiB
Text

//====================================
// Vid restart for multiplayer only
//====================================
#include "ui/menudef.h"
#include "ui_mp/common_macro.inc"
#define CHOICE_X_START 0
#define CHOICE_Y_START 150
#define CHOICE_GROUP "vid_restart"
#include "ui_mp/menustyle.inc"
#include "ui/choices_setup_common.menu"
#include "ui_mp/popupstyle.inc"
#include "ui/choices_setup_popmenu.menu"
{
menuDef
{
CENTER_POPUP_SETUP( vid_restart_popmenu, 3, ;, 1 )
CHOICE_POPMENU_TITLE( "@MENU_APPLY_SETTINGS" )
CHOICE_BUTTON( 2, "@MENU_YES", exec "exec options_graphics_set.cfg"; close self; exec "vid_restart"; )
CHOICE_BUTTON( 3, "@MENU_NO", close self )
}
#undef CHOICE_Y_START
#define CHOICE_Y_START 235
menuDef
{
CENTER_POPUP_SETUP( vid_restart_popmenu_listen, 3, ;, 1 )
CHOICE_POPMENU_SUBTITLE( "Unable to apply settings while connected to a server." )
CHOICE_BUTTON( 1, "@MENU_OK", play "mouse_click"; close self; )
}
}
/*
{
// VID_RESTART POPUP MENU \\
menuDef
{
name vid_restart_popmenu
visible 0
fullscreen 0
//rect 217 200 210 85
rect 204 140 235 135
focusColor COLOR_FOCUSED
style 1
border 1
popup
onESC { close vid_restart_popmenu; }
onOpen { setfocus yes; }
onClose { show graphicsapply; }
itemDef
{
name window
group grpControlbutton
rect 0 2 235 135
style WINDOW_STYLE_FILLED
border 1
bordercolor .5 .5 .5 .5
forecolor 1 1 1 1
backcolor 0 0 0 .5
visible 0
decoration
}
itemDef
{
name backimage2fade
style WINDOW_STYLE_SHADER
rect -332 -162 896 484
background "white"
forecolor 0 0 0 0.3
backcolor 0 0 0 0.3
visible 1
decoration
}
itemDef
{
name window2
group grpControlbutton
rect 2 3 231 20
style WINDOW_STYLE_FILLED
border 1
bordercolor .1 .1 .1 .2
forecolor 1 1 1 1
backcolor 1 1 .3 .3
visible 0
decoration
}
itemDef
{
name backimage2fade
style WINDOW_STYLE_SHADER
rect -150 2 535 150
background "popmenu_bg"
// forecolor 0 0 0 0.4
// backcolor 0 0 0 0.4
visible 1
decoration
}
itemDef
{
name backimage2fade
style WINDOW_STYLE_SHADER
rect -50 20 335 24
background "popmenu_goldline"
// forecolor 0 0 0 0.4
// backcolor 0 0 0 0.4
visible 1
decoration
}
itemDef
{
name confirm
text "@MENU_APPLY_SETTINGS"
style 0
textscale TEXTSIZE_TITLE
textstyle ITEM_TEXTSTYLE_SHADOWED
rect 126 25 110 20
textalign ITEM_ALIGN_CENTER
textalignx -62
textaligny 5
decoration
forecolor COLOR_TITLE
visible 1
}
itemDef
{
name yes
text "@MENU_YES"
type 1
textscale .45
style WINDOW_STYLE_FILLED
textfont UI_FONT_NORMAL
textstyle ITEM_TEXTSTYLE_SHADOWED
rect 90 45 60 30
textalign ITEM_ALIGN_CENTER
textaligny 21
forecolor .9 .9 .95 1
visible 1
action {
play "mouse_click";
exec "exec options_graphics_set.cfg";
close vid_restart_popmenu ;
exec "vid_restart"
}
mouseEnter { play "mouse_over"; }
}
itemDef
{
name no
text "@MENU_NO"
type 1
textscale .45
style WINDOW_STYLE_FILLED
textfont UI_FONT_NORMAL
textstyle ITEM_TEXTSTYLE_SHADOWED
rect 91 85 60 30
textalign ITEM_ALIGN_CENTER
textaligny 21
forecolor .9 .9 .95 1
visible 1
action {
play "mouse_click";
close vid_restart_popmenu ;
show graphicsapply;
}
mouseEnter { play "mouse_over"; }
}
}
menuDef
{
name "vid_restart_popmenu_listen"
visible 0
fullscreen 0
//rect 217 200 210 85
rect 204 140 235 135
focusColor COLOR_FOCUSED
style 1
border 1
popup
onESC
{
close vid_restart_popmenu_listen ;
// close options_menu;
// open options_menu;
// open options_graphics;
// hide graphicsapply
}
// onClose { show graphicsapply; }
// VID_RESTART //
itemDef
{
name window
group grpControlbutton
rect 0 2 235 135
style WINDOW_STYLE_FILLED
border 1
bordercolor .5 .5 .5 .5
forecolor 1 1 1 1
backcolor 0 0 0 .5
visible 0
decoration
}
itemDef
{
name backimage2fade
style WINDOW_STYLE_SHADER
rect -332 -162 896 484
background "white"
forecolor 0 0 0 0.3
backcolor 0 0 0 0.3
visible 1
decoration
}
itemDef
{
name window2
group grpControlbutton
rect 2 3 231 20
style WINDOW_STYLE_FILLED
border 1
bordercolor .1 .1 .1 .2
forecolor 1 1 1 1
backcolor 1 1 .3 .3
visible 0
decoration
}
itemDef
{
name backimage2fade
style WINDOW_STYLE_SHADER
rect -150 2 535 150
background "popmenu_bg"
// forecolor 0 0 0 0.4
// backcolor 0 0 0 0.4
visible 1
decoration
}
itemDef
{
name backimage2fade
style WINDOW_STYLE_SHADER
rect -50 20 335 24
background "popmenu_goldline"
// forecolor 0 0 0 0.4
// backcolor 0 0 0 0.4
visible 1
decoration
}
itemDef
{
name confirm
text "@MENU_APPLY_SETTINGS"
style 0
textscale TEXTSIZE_TITLE
textstyle ITEM_TEXTSTYLE_SHADOWED
rect 126 25 110 20
textalign ITEM_ALIGN_CENTER
textalignx -62
textaligny 5
decoration
forecolor COLOR_TITLE
visible 1
}
itemDef
{
name confirm
text "@MENU_CAN_NOT_CHANGE_SETTINGS"
style 0
textscale .3
textstyle 3
rect 120 35 110 20
textalign ITEM_ALIGN_CENTER
textalignx -55
textaligny 15
decoration
forecolor 1 1 1 1
visible 1
}
itemDef
{
name confirm
text "@MENU_WHILE_RUNNING_A_SERVER"
style 0
textscale .3
textstyle 3
rect 120 50 110 20
textalign ITEM_ALIGN_CENTER
textalignx -55
textaligny 15
decoration
forecolor 1 1 1 1
visible 1
}
itemDef
{
name ok
text "@MENU_OK"
type 1
textfont UI_FONT_NORMAL
textscale .4
style WINDOW_STYLE_FILLED
textstyle ITEM_TEXTSTYLE_SHADOWED
rect 86 80 70 26
textalign ITEM_ALIGN_CENTER
textaligny 22
forecolor .9 .9 .95 1
visible 1
action {
play "mouse_click";
close vid_restart_popmenu_listen ;
// close options_graphics;
// close options_menu;
// open options_menu;
// open options_graphics;
hide graphicsapply;
hide grpapplySystem;
}
mouseEnter { play "mouse_over"; }
}
}
}
*/