iw4x-rawfiles/iw4x/iw4x_00/ui_mp/scriptmenus/quickstatements.menu

192 lines
4.3 KiB
Plaintext

#include "ui/menudef.h"
#include "ui_mp/common_macro.inc"
#define CHOICE_GROUP "quickstatements"
#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 quickstatements
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_ENEMY_SPOTTED"
decoration
}
execKey "1" { scriptMenuResponse "1"; close quickstatements }
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_MULTIPLE_CONTACTS"
decoration
}
execKey "2" { scriptMenuResponse "2"; close quickstatements }
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_IN_POSITION"
decoration
}
execKey "3" { scriptMenuResponse "3"; close quickstatements }
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_AREA_SECURE"
decoration
}
execKey "4" { scriptMenuResponse "4"; close quickstatements }
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_WATCH_SIX"
decoration
}
execKey "5" { scriptMenuResponse "5"; close quickstatements }
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_SNIPER"
decoration
}
execKey "6" { scriptMenuResponse "6"; close quickstatements }
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_NEED_REINFORCEMENTS"
decoration
}
execKey "7" { scriptMenuResponse "7"; close quickstatements }
itemDef
{
name "window"
visible 1
rect 16 148 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
}
}
}