#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 } } }