cod4-sdk/raw/ui_mp/game_info.inc
2008-01-19 00:00:00 +00:00

123 lines
No EOL
6.8 KiB
PHP

#ifndef GAMEINFO_ORIENTATION
#define GAMEINFO_ORIGIN (CHOICE_X_START+CHOICE_SIZE_X-GAMEINFO_WIDTH) 226 //(CHOICE_X_START + 32) 226
#define GAMEINFO_WIDTH 200
#define GAMEINFO_WIDTH2 205
#define GAMEINFO_HEIGHT 150
#endif
#define GAME_INFO( mapImageExp, mapNameExp, gameTypeExp, visArg )\
PREPROC_SHADER_DRAW_ALIGNED( GAMEINFO_ORIGIN GAMEINFO_WIDTH2 (GAMEINFO_HEIGHT-4) CHOICE_HORIZONTAL_ALIGN VERTICAL_ALIGN_TOP, 0 4, "white", 0 0 0 0.3, 0, 0, 0 0 0 0 ) \
PREPROC_SHADER_DRAW_ALIGNED( GAMEINFO_ORIGIN GAMEINFO_WIDTH2 (GAMEINFO_HEIGHT-4) CHOICE_HORIZONTAL_ALIGN VERTICAL_ALIGN_TOP, 0 4, mapImageExp, 1 1 1 1, 0, 0, 0 0 0 0 visible when( visArg ); ) \
PREPROC_SHADER_DRAW_ALIGNED( GAMEINFO_ORIGIN GAMEINFO_WIDTH 20 CHOICE_HORIZONTAL_ALIGN VERTICAL_ALIGN_TOP, 0 0, "white", 0.1 0.1 0.1 1, 0, 0, 0 0 0 0 )\
UI_EDGE( GAMEINFO_ORIGIN,CHOICE_HORIZONTAL_ALIGN VERTICAL_ALIGN_TOP, GAMEINFO_WIDTH, 0, 0.1 0.1 0.1 1 ) \
UI_EDGE( GAMEINFO_ORIGIN,CHOICE_HORIZONTAL_ALIGN VERTICAL_ALIGN_TOP, GAMEINFO_WIDTH, 0, 0.9 0.95 1 0.4 ) \
PREPROC_SHADER_DRAW_ALIGNED( GAMEINFO_ORIGIN GAMEINFO_WIDTH2 20 CHOICE_HORIZONTAL_ALIGN VERTICAL_ALIGN_TOP, 0 130, "white", 0.1 0.1 0.1 1, 0, 0, 0 0 0 0 )\
PREPROC_SHADER_DRAW_ALIGNED( GAMEINFO_ORIGIN GAMEINFO_WIDTH 20 CHOICE_HORIZONTAL_ALIGN VERTICAL_ALIGN_TOP, 0 0, "gradient_fadein", 0.9 0.95 1 0.4, 0, 0, 0 0 0 0 )\
PREPROC_SHADER_DRAW_ALIGNED( GAMEINFO_ORIGIN GAMEINFO_WIDTH2 20 CHOICE_HORIZONTAL_ALIGN VERTICAL_ALIGN_TOP, 0 130, "gradient_fadein",0.9 0.95 1 0.35, 0, 0, 0 0 0 0 )\
PREPROC_SHADER_DRAW_ALIGNED( GAMEINFO_ORIGIN GAMEINFO_WIDTH2 16 CHOICE_HORIZONTAL_ALIGN VERTICAL_ALIGN_TOP, 0 20, "gradient_top", 0 0 0 .75, 0, 0, 0 0 0 0 ) \
PREPROC_SHADER_DRAW_ALIGNED( GAMEINFO_ORIGIN GAMEINFO_WIDTH2 16 CHOICE_HORIZONTAL_ALIGN VERTICAL_ALIGN_TOP, 0 114, "gradient_bottom", 0 0 0 .75, 0, 0, 0 0 0 0 ) \
PREPROC_SHADER_DRAW_ALIGNED( GAMEINFO_ORIGIN 80 20 CHOICE_HORIZONTAL_ALIGN VERTICAL_ALIGN_TOP, 0 0, "ui_perforation", 1 1 1 1, 0, 0, 0 0 0 0 )\
/*PREPROC_SHADER_DRAW_ALIGNED( GAMEINFO_ORIGIN 80 20 CHOICE_HORIZONTAL_ALIGN VERTICAL_ALIGN_TOP, 0 130, "ui_perforation", 1 1 1 1, 0, 0, 0 0 0 0 )*/\
PREPROC_TEXT_DRAW_ALIGNED_EXP( GAMEINFO_ORIGIN (GAMEINFO_WIDTH-20) 16 CHOICE_HORIZONTAL_ALIGN VERTICAL_ALIGN_TOP, 16 18, mapNameExp, TEXTSIZE_SMALL, 0, 0, ITEM_ALIGN_RIGHT, CHOICE_TEXTCOLOR visible when( visArg ); )\
PREPROC_TEXT_DRAW_ALIGNED_EXP( GAMEINFO_ORIGIN GAMEINFO_WIDTH 16 CHOICE_HORIZONTAL_ALIGN VERTICAL_ALIGN_TOP, -4 148, gameTypeExp, TEXTSIZE_SMALL, 0, 0, ITEM_ALIGN_RIGHT, CHOICE_TEXTCOLOR visible when( visArg ); ) \
PREPROC_TEXT_DRAW_ALIGNED_EXP( GAMEINFO_ORIGIN GAMEINFO_WIDTH 16 CHOICE_HORIZONTAL_ALIGN VERTICAL_ALIGN_TOP, -4 128, ( dvarstring( party_vetoStatus ) ), TEXTSIZE_SMALL, 0, 0, ITEM_ALIGN_RIGHT, 1 .4 .4 1 visible when( inlobby() ); )
/*
PREPROC_SHADER_DRAW_ALIGNED( GAMEINFO_ORIGIN GAMEINFO_WIDTH GAMEINFO_HEIGHT CHOICE_HORIZONTAL_ALIGN VERTICAL_ALIGN_TOP, 0 0, mapImageExp, 1 1 1 1, 0, 0, 0 0 0 0 ) \
PREPROC_SHADER_DRAW_ALIGNED( GAMEINFO_ORIGIN GAMEINFO_WIDTH 16 CHOICE_HORIZONTAL_ALIGN VERTICAL_ALIGN_TOP, 0 0, "white", 0.2 0.2 0.225 0.9, 0, 0, 0 0 0 0 ) \
PREPROC_SHADER_DRAW_ALIGNED( GAMEINFO_ORIGIN GAMEINFO_WIDTH 16 CHOICE_HORIZONTAL_ALIGN VERTICAL_ALIGN_TOP, 0 16, "gradient_top", 0 0 0 .75, 0, 0, 0 0 0 0 ) \
PREPROC_SHADER_DRAW_ALIGNED( GAMEINFO_ORIGIN GAMEINFO_WIDTH 16 CHOICE_HORIZONTAL_ALIGN VERTICAL_ALIGN_TOP, 0 134, "white", 0.2 0.2 0.225 0.9, 0, 0, 0 0 0 0 ) \
PREPROC_SHADER_DRAW_ALIGNED( GAMEINFO_ORIGIN GAMEINFO_WIDTH 16 CHOICE_HORIZONTAL_ALIGN VERTICAL_ALIGN_TOP, 0 118, "gradient_bottom", 0 0 0 .75, 0, 0, 0 0 0 0 ) \
PREPROC_SHADER_DRAW_ALIGNED( 0 226 256 16 CHOICE_HORIZONTAL_ALIGN VERTICAL_ALIGN_TOP, 0 0, "gradient_fadein", 1 1 1 0.4, 0, 0, 0 0 0 0 ) \
PREPROC_SHADER_DRAW_ALIGNED( 0 226 256 16 CHOICE_HORIZONTAL_ALIGN VERTICAL_ALIGN_TOP, 0 134, "gradient_fadein", 1 1 1 0.4, 0, 0, 0 0 0 0 ) \
PREPROC_TEXT_DRAW_ALIGNED_EXP( GAMEINFO_ORIGIN (GAMEINFO_WIDTH-20) 16 CHOICE_HORIZONTAL_ALIGN VERTICAL_ALIGN_TOP, 20 16, mapNameExp, TEXTSIZE_SMALL, 0, 0, ITEM_ALIGN_CENTER, CHOICE_TEXTCOLOR ) \
PREPROC_TEXT_DRAW_ALIGNED_EXP( GAMEINFO_ORIGIN GAMEINFO_WIDTH 16 CHOICE_HORIZONTAL_ALIGN VERTICAL_ALIGN_TOP, 0 150, gameTypeExp, TEXTSIZE_SMALL, 0, 0, ITEM_ALIGN_CENTER, CHOICE_TEXTCOLOR ) \
PREPROC_TEXT_DRAW_ALIGNED_EXP( GAMEINFO_ORIGIN GAMEINFO_WIDTH 16 CHOICE_HORIZONTAL_ALIGN VERTICAL_ALIGN_TOP, 4 16, "Map:", TEXTSIZE_SMALL, 0, 0, ITEM_ALIGN_LEFT, CHOICE_TEXTCOLOR )
*/
/*
#define GAME_INFO( mapImageExp, mapNameExp, gameTypeExp, visArg ) \
itemDef \
{ \
style WINDOW_STYLE_SHADER \
rect 0 0 GAMEINFO_WIDTH GAMEINFO_HEIGHT CHOICE_HORIZONTAL_ALIGN VERTICAL_ALIGN_TOP \
origin GAMEINFO_ORIGIN \
exp material( mapImageExp ); \
forecolor 1 1 1 1 \
visible when ( visArg ); \
decoration \
} \
itemDef \
{ \
style WINDOW_STYLE_SHADER \
rect 0 0 GAMEINFO_WIDTH 20 CHOICE_HORIZONTAL_ALIGN VERTICAL_ALIGN_TOP \
origin GAMEINFO_ORIGIN \
background "white" \
forecolor 0 0 0 0.75 \
visible when ( visArg ); \
decoration \
} \
itemDef \
{ \
style WINDOW_STYLE_SHADER \
rect 0 (GAMEINFO_HEIGHT - 20) GAMEINFO_WIDTH 20 CHOICE_HORIZONTAL_ALIGN VERTICAL_ALIGN_TOP \
origin GAMEINFO_ORIGIN \
background "white" \
forecolor 0 0 0 0.75 \
visible when ( visArg ); \
decoration \
} \
itemDef \
{ \
rect 0 0 GAMEINFO_WIDTH GAMEINFO_HEIGHT CHOICE_HORIZONTAL_ALIGN VERTICAL_ALIGN_TOP \
origin GAMEINFO_ORIGIN \
exp text( "Map:" ) \
textfont UI_FONT_NORMAL \
textscale TEXTSIZE_SMALL \
textalign ITEM_ALIGN_LEFT \
textalignx 2 \
textaligny 18 \
visible when ( visArg ); \
decoration \
} \
itemDef \
{ \
rect 0 0 GAMEINFO_WIDTH GAMEINFO_HEIGHT CHOICE_HORIZONTAL_ALIGN VERTICAL_ALIGN_TOP \
origin GAMEINFO_ORIGIN \
exp text( mapNameExp ) \
textfont UI_FONT_NORMAL \
textscale TEXTSIZE_SMALL \
textalign ITEM_ALIGN_RIGHT \
textalignx -2 \
textaligny 18 \
visible when ( visArg ); \
decoration \
} \
itemDef \
{ \
rect 0 GAMEINFO_HEIGHT GAMEINFO_WIDTH GAMEINFO_HEIGHT CHOICE_HORIZONTAL_ALIGN VERTICAL_ALIGN_TOP \
origin GAMEINFO_ORIGIN \
exp text( "Game Type:" ) \
textfont UI_FONT_NORMAL \
textscale TEXTSIZE_SMALL \
textalign ITEM_ALIGN_LEFT \
textalignx 2 \
textaligny -2 \
visible when ( visArg ); \
decoration \
} \
itemDef \
{ \
rect 0 GAMEINFO_HEIGHT GAMEINFO_WIDTH GAMEINFO_HEIGHT CHOICE_HORIZONTAL_ALIGN VERTICAL_ALIGN_TOP \
origin GAMEINFO_ORIGIN \
exp text( gameTypeExp ) \
textfont UI_FONT_NORMAL \
textscale TEXTSIZE_SMALL \
textalign ITEM_ALIGN_RIGHT \
textalignx -2 \
textaligny -2 \
visible when ( visArg ); \
decoration \
}
*/