cod4-sdk/raw/ui_mp/settings_map_splitscreen.menu
2008-01-19 00:00:00 +00:00

68 lines
No EOL
1.7 KiB
Text

#include "ui/menudef.h"
#include "ui_mp/common_macro.inc"
#define CHOICE_SIZE_X 150
#define CHOICE_SIZE_Y 22
#define CHOICE_X_START 0
#define CHOICE_Y_START 34
#define CHOICE_SEP_OFFSET_Y -2
#define CHOICE_GROUP "map_selection_splitscreen"
#include "ui_mp/menustyle.inc"
#include "ui/choices_setup_common.menu"
#undef A_BUTTON_SIZE
#define A_BUTTON_SIZE 0.3
#undef A_BUTTON_OFFSET_X
#define A_BUTTON_OFFSET_X -2
// ------------------- end preprocessing definitions ----------------------
{
menuDef
{
name settings_map_splitscreen
fullscreen 1
rect 0 0 640 480
focuscolor COLOR_FOCUSED
style WINDOW_STYLE_FILLED
border 0
soundloop "music_mainmenu_mp"
onOpen
{
focusFirst;
setfocusbydvar "ui_mapname";
}
onEsc
{
close settings_map_splitscreen;
}
onClose
{
execNow "xupdatepartystate";
}
// ------------------ statics ------------------------
#include "ui/blurredbg.inc"
CHOICE_MENU_TITLE( "@MENU_CHOOSE_MAP_CAP" )
#define MAP_LIST\
LOCAL_MAP_SELECTION( 1, "@MPUI_BACKLOT", "mp_backlot" )\
LOCAL_MAP_SELECTION( 2, "@MPUI_BOG", "mp_bog" )\
LOCAL_MAP_SELECTION( 3, "@MPUI_COUNTDOWN", "mp_countdown" )\
LOCAL_MAP_SELECTION( 4, "@MPUI_CRASH", "mp_crash" )\
LOCAL_MAP_SELECTION( 5, "@MPUI_CROSSFIRE", "mp_crossfire" )\
LOCAL_MAP_SELECTION( 6, "@MPUI_SHIPMENT", "mp_shipment" )\
LOCAL_MAP_SELECTION( 7, "@MPUI_SHOWDOWN", "mp_showdown" )\
LOCAL_MAP_SELECTION( 8, "@MPUI_VACANT", "mp_vacant" )\
LOCAL_MAP_SELECTION( 9, "@MPUI_CARGOSHIP", "mp_cargoship" )
#define MAP_TABLE "mp/mapsTable.csv"
#include "ui_mp/map_info.inc"
}
}