#include "ui/menudef.h" #include "ui_mp/common_macro.inc" #define CHOICE_X_START 45 #define CHOICE_Y_START 72 #define CHOICE_SEP_OFFSET_Y -2 #define CHOICE_Y_COUNT 11 #define CHOICE_GROUP "levels" #include "ui_mp/menustyle.inc" #undef CHOICE_SIZE_X #define CHOICE_SIZE_X 220 #define CHOICE_X_SPACING 280 #include "ui/choices_setup_common.menu" #include "ui/choices_setup_levels.menu" #include "ui/t_levels_test_list.menu" { menuDef { LEVELS_CHOICES_SETUP ( cod5_levels_test ) onOpen { setdvar ui_levels_choices TOTAL_CHOICES; setdvar test_levels_choices TOTAL_CHOICES; setdvar test_levels_names TEST_MAP_NAMES; setdvar test_levels_bsps TEST_MAP_BSPS; uiScript loadTestMapNames; } onESC { play "mouse_over"; close self; } execkeyint BUTTON_Y { close self; //open levels_game; } // --------- button ---------- itemDef { #ifdef CONSOLE rect -140 -4 0 0 HORIZONTAL_ALIGN_CENTER VERTICAL_ALIGN_BOTTOM decoration #endif // #ifdef CONSOLE #ifdef PC type 1 rect -140 -26 60 20 HORIZONTAL_ALIGN_CENTER VERTICAL_ALIGN_BOTTOM mouseEnter { play "mouse_over"; } action { play "mouse_click"; close self; open levels_game; } #endif // #ifdef PC origin 0 0 text "@PLATFORM_PRODUCTION_LEVELS" textfont UI_FONT_NORMAL textscale TEXTSIZE_SMALL textalign ITEM_ALIGN_BOTTOM_LEFT visible 1 } //#include "ui/bars.menu" #include "ui/navcontrols.inc" CHOICE_MENU_TITLE( "TEST LEVELS") itemDef { name testmaplist rect 150 70 320 345 type ITEM_TYPE_LISTBOX style WINDOW_STYLE_FILLED textfont CHOICE_TEXTFONT textscale CHOICE_TEXTSIZE textstyle CHOICE_TEXTSTYLE textAlign ITEM_ALIGN_LEFT elementwidth 120 elementheight 30 elementtype LISTBOX_TEXT feeder FEEDER_TESTMAPS doubleclick { uiScript runTestMap; } forecolor 1 1 1 .9 focusColor 1 1 1 .9 disableColor 1 1 1 .9 backcolor 0 0 .05 .4 outlinecolor .9 .9 .9 .2 visible MENU_TRUE mouseEnter { setitemcolor savegamelist bordercolor .7 0 0 1 } mouseExit { setitemcolor savegamelist bordercolor .5 .5 .5 .5 } } } }