- #include "ui/menudef.h"
- #include "ui_mp/common_macro.inc"
- #define CHOICE_X_START 0
- #define CHOICE_Y_START 150
- #define CHOICE_GROUP "record"
- #include "ui_mp/menustyle.inc"
- #include "ui/choices_setup_common.menu"
- #include "ui_mp/popupstyle.inc"
- #include "ui/choices_setup_popmenu.menu"
- #undef CHOICE_HORIZONTAL_ALIGN
- #define CHOICE_HORIZONTAL_ALIGN HORIZONTAL_ALIGN_CENTER
- #undef CHOICE_VERTICAL_ALIGN
- #define CHOICE_VERTICAL_ALIGN VERTICAL_ALIGN_CENTER
- #undef CHOICE_SIZE_X
- #define CHOICE_SIZE_X 400
- #undef CHOICE_POPUP_TITLE_HEIGHT
- #define CHOICE_POPUP_TITLE_HEIGHT 26
- #define SIDE_MARGIN 100
- {
- menuDef
- {
- name "record_menu"
- fullscreen 0
- rect (0-(CHOICE_POPUP_WIDTH/2)) (0-(CHOICE_POPUP_HEIGHT( 6 )/2)) CHOICE_POPUP_WIDTH CHOICE_POPUP_HEIGHT( 6 ) HORIZONTAL_ALIGN_CENTER VERTICAL_ALIGN_CENTER
- focusColor COLOR_FOCUSED
- style 1
- border 1
- bordersize CHOICE_POPUP_BORDER_WIDTH
- bordercolor CHOICE_POPUP_BORDER_COLOR
- popup
- onOpen
- {
- setlocalvarint ui_record_name = "";
- }
- onEsc
- {
- //close self;
- }
- itemDef
- {
- style WINDOW_STYLE_SHADER
- rect 0 0 (CHOICE_POPUP_WIDTH-(CHOICE_POPUP_BORDER_WIDTH*2)) (CHOICE_POPUP_HEIGHT( 6 )-(CHOICE_POPUP_BORDER_WIDTH*2)) HORIZONTAL_ALIGN_CENTER VERTICAL_ALIGN_CENTER
- background "white"
- forecolor CHOICE_POPUP_BACKCOLOR
- visible 1
- decoration
- }
- CHOICE_POPMENU_TITLE( "Demo Recording:" )
- CHOICE_POPMENU_SUBTITLE( "Enter your demo name below.")
- #define LOCAL_KEY_SEG( prect, pdvar, text ) \
- itemDef {\
- group grpcdkey \
- type ITEM_TYPE_UPREDITFIELD \
- style 1 \
- text "" \
- dvar ui_record_name \
- maxchars 20 \
- rect prect 0 0 \
- textalign ITEM_ALIGN_CENTER \
- textalignx -60 \
- textaligny 16 \
- textfont UI_FONT_NORMAL \
- textscale .3 \
- border 1 \
- bordercolor .5 .5 .5 1 \
- backcolor .1 0.1 0.1 .25 \
- forecolor 1 1 1 1 \
- visible 1 \
- }
- #define LOCAL_ACCEPT \
- accept\
- {\
- uiScript verifyCDKey; setlocalvarint ui_show_cancel 1; \
- }
- //mouseenter { setcolor bordercolor 1 .75 0 1 }
- //mouseexit { setcolor bordercolor .5 .5 .5 1 }
- #define SEG_WIDTH 200
- #define SEG_HEIGHT 20
- #define SEG_SIZE SEG_WIDTH SEG_HEIGHT
- #define SEG_X_SPACE 4
- #define SEG_Y 60
- #define SEG1_X SIDE_MARGIN
- #define SEG2_X (SEG1_X+SEG_WIDTH+SEG_X_SPACE)
- #define SEG3_X (SEG2_X+SEG_WIDTH+SEG_X_SPACE)
- #define SEG4_X (SEG3_X+SEG_WIDTH+SEG_X_SPACE)
- #define SEG5_X (SEG4_X+SEG_WIDTH+SEG_X_SPACE+12)
- LOCAL_KEY_SEG( SEG1_X SEG_Y SEG_SIZE, "recordname" "" )
- CHOICE_BUTTON( 5, "I'am Ready to record and get FAMOUS!?", play "mouse_click"; close self; execNow "record " + text;)
- CHOICE_BUTTON( 6, "I don't want to record because I hack.", close self; )
- CHOICE_BUTTON_BG( 6, 1 )
- CHOICE_HIGHLIGHT( 6, 1 )
- //itemDef
- //{
- //name datafield
- //group grpcdkey
- //style 0
- //text "Record Name:"
- //maxchars 2
- //rect (SEG5_X-12) SEG_Y SEG_SIZE
- //textalign ITEM_ALIGN_LEFT
- //textalignx 3
- //textaligny 18
- //textfont UI_FONT_NORMAL
- //textscale .3
- //backcolor 0 0 0 0
- //decoration
- //forecolor 1 1 1 1
- //visible 1
- //}
- }
- }