43 lines
2.5 KiB
PHP
43 lines
2.5 KiB
PHP
#ifndef INFO_BOX_ORIENT
|
|
#define INFO_BOX_TITLE_HEIGHT 20
|
|
#define INFO_BOX_WIDTH (CHOICE_SIZE_X-(INFO_BOX_TITLE_HEIGHT/4))
|
|
#define INFO_BOX_HEIGHT 126
|
|
#define INFO_BOX_X (CHOICE_X_START)
|
|
#define INFO_BOX_Y 270
|
|
#define ORIGIN_INFO_BOX_TITLE INFO_BOX_X INFO_BOX_Y
|
|
#endif
|
|
|
|
#define INFO_BOX_WIDTH2 (INFO_BOX_WIDTH+5)
|
|
#define ORIGIN_INFO_BOX INFO_BOX_X (INFO_BOX_Y+25)
|
|
#define ORIGIN_INFO_BOX_FRAME INFO_BOX_X INFO_BOX_Y
|
|
|
|
#ifndef INFO_TEXT
|
|
#define INFO_TEXT dvarString( "motd" )
|
|
#endif
|
|
|
|
#ifndef INFO_TITLE
|
|
#define INFO_TITLE "Message of the Day"
|
|
#endif
|
|
|
|
#ifndef INFO_TITLE_COLOR
|
|
#define INFO_TITLE_COLOR 1 1 1 0.7
|
|
#endif
|
|
|
|
#ifndef INFO_TEXT_COLOR
|
|
#define INFO_TEXT_COLOR 1 1 1 0.5
|
|
#endif
|
|
|
|
// size version 1: 248 126
|
|
PREPROC_SHADER_DRAW_ALIGNED( ORIGIN_INFO_BOX_FRAME INFO_BOX_WIDTH 20 CHOICE_HORIZONTAL_ALIGN VERTICAL_ALIGN_TOP, 0 -20, "white", 0 0 0 0.3, 0, 0, 0 0 0 0 )
|
|
PREPROC_SHADER_DRAW_ALIGNED( ORIGIN_INFO_BOX_FRAME INFO_BOX_WIDTH2 (INFO_BOX_HEIGHT-20) CHOICE_HORIZONTAL_ALIGN VERTICAL_ALIGN_TOP, 0 0, "white", 0 0 0 0.3, 0, 0, 0 0 0 0 )
|
|
PREPROC_SHADER_DRAW_ALIGNED( ORIGIN_INFO_BOX_FRAME INFO_BOX_WIDTH 20 CHOICE_HORIZONTAL_ALIGN VERTICAL_ALIGN_TOP, 0 -20, "gradient_fadein", 0.9 0.95 1 0.4, 0, 0, 0 0 0 0 )
|
|
|
|
UI_EDGE( ORIGIN_INFO_BOX_FRAME, CHOICE_HORIZONTAL_ALIGN VERTICAL_ALIGN_TOP, INFO_BOX_WIDTH, -20, 0 0 0 0.3 )
|
|
UI_EDGE( ORIGIN_INFO_BOX_FRAME, CHOICE_HORIZONTAL_ALIGN VERTICAL_ALIGN_TOP, INFO_BOX_WIDTH, -20, 0.9 0.95 1 0.4 )
|
|
|
|
//PREPROC_SHADER_DRAW_ALIGNED( ORIGIN_INFO_BOX_FRAME INFO_BOX_WIDTH 1 CHOICE_HORIZONTAL_ALIGN VERTICAL_ALIGN_TOP, 0 -20, "gradient_fadein", 0.9 0.95 1 0.5, 0, 0, 0 0 0 0 )
|
|
//PREPROC_SHADER_DRAW_ALIGNED( ORIGIN_INFO_BOX_FRAME INFO_BOX_WIDTH2 6 CHOICE_HORIZONTAL_ALIGN VERTICAL_ALIGN_TOP, 0 100, "gradient_fadein",0.9 0.95 1 0.35, 0, 0, 0 0 0 0 )
|
|
//PREPROC_SHADER_DRAW_ALIGNED( ORIGIN_INFO_BOX_FRAME INFO_BOX_WIDTH 1 CHOICE_HORIZONTAL_ALIGN VERTICAL_ALIGN_TOP, 0 100, "gradient_fadein",0.9 0.95 1 0.5, 0, 0, 0 0 0 0 )
|
|
PREPROC_SHADER_DRAW_ALIGNED( ORIGIN_INFO_BOX_FRAME 80 20 CHOICE_HORIZONTAL_ALIGN VERTICAL_ALIGN_TOP, 0 -20, "ui_perforation", 1 1 1 1, 0, 0, 0 0 0 0 )
|
|
PREPROC_TEXT_DRAW_ALIGNED_EXP( ORIGIN_INFO_BOX (INFO_BOX_WIDTH-4) 100 CHOICE_HORIZONTAL_ALIGN VERTICAL_ALIGN_TOP, 5 10, INFO_TEXT, TEXTSIZE_SMALL, 0, -14, ITEM_ALIGN_LEFT, INFO_TEXT_COLOR )
|
|
PREPROC_TEXT_DRAW_ALIGNED_EXP( ORIGIN_INFO_BOX_FRAME INFO_BOX_WIDTH 0 CHOICE_HORIZONTAL_ALIGN VERTICAL_ALIGN_TOP, -6 -3, INFO_TITLE, TEXTSIZE_SMALL, 0, 0, ITEM_ALIGN_RIGHT, INFO_TITLE_COLOR )
|