208 lines
4.6 KiB
Plaintext
208 lines
4.6 KiB
Plaintext
|
#include "ui/menudef.h"
|
||
|
#include "ui_mp/common_macro.inc"
|
||
|
|
||
|
#define CHOICE_GROUP "quickcommands"
|
||
|
|
||
|
#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 quickcommands
|
||
|
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_FOLLOW_ME"
|
||
|
decoration
|
||
|
}
|
||
|
execKey "1" { scriptMenuResponse "1"; close self; }
|
||
|
|
||
|
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_MOVE_IN"
|
||
|
decoration
|
||
|
}
|
||
|
execKey "2" { scriptMenuResponse "2"; close self }
|
||
|
|
||
|
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_FALL_BACK"
|
||
|
decoration
|
||
|
}
|
||
|
execKey "3" { scriptMenuResponse "3"; close self }
|
||
|
|
||
|
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_SUPPRESSING_FIRE"
|
||
|
decoration
|
||
|
}
|
||
|
execKey "4" { scriptMenuResponse "4"; close self }
|
||
|
|
||
|
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_ATTACK_LEFT_FLANK"
|
||
|
decoration
|
||
|
}
|
||
|
execKey "5" { scriptMenuResponse "5"; close self }
|
||
|
|
||
|
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_ATTACK_RIGHT_FLANK"
|
||
|
decoration
|
||
|
}
|
||
|
execKey "6" { scriptMenuResponse "6"; close self }
|
||
|
|
||
|
itemDef
|
||
|
{
|
||
|
name "window"
|
||
|
group ingamebox
|
||
|
visible 1
|
||
|
rect 16 116 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_7_HOLD_THIS_POSITION"
|
||
|
decoration
|
||
|
}
|
||
|
execKey "7" { scriptMenuResponse "7"; close self }
|
||
|
|
||
|
itemDef
|
||
|
{
|
||
|
name "window"
|
||
|
group ingamebox
|
||
|
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_8_REGROUP"
|
||
|
decoration
|
||
|
}
|
||
|
execKey "8" { scriptMenuResponse "8"; close self }
|
||
|
|
||
|
itemDef
|
||
|
{
|
||
|
name "window"
|
||
|
visible 1
|
||
|
rect 16 164 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
|
||
|
}
|
||
|
}
|
||
|
}
|