home *** CD-ROM | disk | FTP | other *** search
- #include "ui/menudef.h"
-
- {
- assetGlobalDef {
- font "fonts/font" 16 // font
- smallFont "fonts/smallfont" 12 // font
- bigFont "fonts/bigfont" 20 // font
- cursor "ui/assets/3_cursor3" // cursor
- gradientBar "ui/sidrial/hilight.tga" // gradient bar
-
-
- fadeClamp 2.0 // sets the fadeup alpha
- fadeCycle 4 // how often fade happens in milliseconds
- fadeAmount 2 // amount to adjust alpha per cycle
-
- shadowColor 0.1 0.1 0.1 0.25 // shadow color
- }
-
- menuDef {
- name "cinematics"
- style 3
- background "cinematics"
- fullScreen MENU_TRUE
- rect 0 0 640 480 // Size and position of the menu
- visible MENU_TRUE // Visible on open
- focusColor 1 1 1 1 // Menu focus color for text and items
-
- onOpen {
- setitemcolor fadebox backcolor 0 0 0 1 ;
- playlooped "music/SidrialMusic_ui.wav" ;
- fadeout fadebox ;
- fadein format ;
- fadein cinematics ;
- fadein back ;
- fadein continue ;
- hide continuebar;
- hide backbar;
- uiScript loadMovies ;
- }
- onESC { close cinematics ; open main ; }
- itemDef {
- name format // Layout
- style 3
- background "filter"
- backcolor .25 .5 .75 .75
- rect 0 0 640 480
- visible 0
- decoration
- }
-
- itemDef {
- name format
- style 3
- rect 0 0 640 480
- background "ui/sidrial/sub/white_bar.tga"
- backcolor 0 0 0 0
- forecolor 1 1 1 1
- visible 0
- decoration
- }
- itemDef {
- name format // Layout
- style 3
- background "sub_swooshb"
- backcolor 0 0 0 0
- forecolor 1 1 1 1
- rect 0 0 640 480
- visible 0
- decoration
- }
- itemDef {
- name cinematics
- group icon
- style 3
- rect 580 40 40 40
- background "ui/sidrial/icon_exit.tga"
- backcolor 0 0 0 0
- forecolor 1 1 1 1
- visible 1
- decoration
- }
- itemDef {
- name title
- style 3
- rect 10 5 256 32
- background "ui/sidrial/text_cinematics.tga"
- backcolor 0 0 0 0
- forecolor 1 1 1 1
- visible 1
- decoration
- }
- itemDef {
- name backbar
- group Bar
- style 2
- rect 20 420 210 40
- backcolor .66 1 0 .7
- border 0
- visible 0
- action { close cinematics ; open main }
- }
- itemDef {
- name back
- group icon
- style 3
- rect 15 420 40 40
- background "ui/sidrial/sub/icon_left.tga"
- backcolor 0 0 0 0
- forecolor 1 1 1 1
- visible 1
- decoration
- action { close cinematics ; open main }
- }
- itemDef {
- name back
- group words
- type 1
- text "Back"
- style 0
- textstyle 6
- rect 15 420 150 40
- forecolor .66 1 0 1
- textalignx 45
- textaligny 25
- textalign 0
- textscale .4
- visible 1
- mouseEnter { transition backbar 20 440 196 0 20 420 196 40 20 5 ; fadein message_back;}
- mouseExit { transition backbar 20 420 196 40 20 440 196 0 20 5 ; fadeout message_back;}
- action { close cinematics ; open main }
- }
-
- itemDef {
- name continuebar
- style 2
- rect 405 420 -210 40
- backcolor .66 1 0 .7
- border 0
- visible 0
- action { close cinematics ; uiScript playMovie }
- }
- itemDef {
- name icon
- group continue
- style 3
- rect 585 420 40 40
- background "ui/sidrial/sub/icon_right.tga"
- backcolor 0 0 0 0
- forecolor 1 1 1 1
- visible 1
- decoration
- action { close cinematics ; uiScript playMovie }
- }
- itemDef {
- name continue
- group words
- type 1
- text "Play"
- style 0
- textstyle 6
- rect 485 420 150 40
- forecolor .66 1 0 1
- textalignx 50
- textaligny 25
- textalign 0
- textscale .4
- visible 1
- mouseEnter { transition continuebar 405 440 -210 0 405 420 -210 40 20 5 ; fadein message_accept }
- mouseExit { transition continuebar 405 420 -210 40 405 440 -210 0 20 5 ; fadeout message_accept }
- action { close cinematics ; uiScript playMovie }
- }
- itemDef {
- name machinima
- style 0
- rect 54 100 200 30
- textstyle 6
- textalign 0
- textalignx 0
- textaligny 25
- textscale .35
- text "All cinematics were created using Machinima."
- forecolor .66 1 0 1
- decoration
- visible 1
- }
- itemDef {
- name cinematiclist
- rect 54 144 256 192
- type ITEM_TYPE_LISTBOX
- style WINDOW_STYLE_FILLED
- elementwidth 120
- elementheight 20
- textscale .25
- elementtype LISTBOX_TEXT
- feeder FEEDER_CINEMATICS
- doubleclick { uiScript playMovie }
- textalign 3
- textaligny 14
- border 1
- bordercolor .66 1 0 1
- forecolor .66 1 0 1
- backcolor .66 1 0 .25
- outlinecolor .66 1 0 1
- visible 1
- mouseEnter { fadein message_cinematic ; setitemcolor cinematiclist bordercolor 1 1 1 1 }
- mouseExit { fadeout message_cinematic ; setitemcolor cinematiclist bordercolor .66 1 0 1}
- }
- itemDef {
- name mappreview
- ownerdraw UI_PREVIEWCINEMATIC
- rect 330 144 256 192
- backcolor 1 1 1 .25
- border 1
- bordersize 1
- bordercolor .66 1 0 1
- decoration
- visible 1
- }
- // MESSAGES //
-
- itemDef {
- name message_back
- group grpmessage
- style 0
- rect 320 420 128 30
- textstyle 6
- textalign 1
- textalignx 0
- textaligny 25
- textscale .3
- text "Back to Main Menu"
- forecolor 1 1 1 1
- decoration
- visible 0
- }
-
- itemDef {
- name message_cinematic
- group grpmessage
- style 0
- rect 320 420 128 30
- textalign 1
- textstyle 6
- textalignx 0
- textaligny 25
- textscale .3
- text "Select Cinematic to Play"
- forecolor 1 1 1 1
- decoration
- visible 0
- }
- itemDef {
- name message_accept
- group grpmessage
- style 0
- rect 320 420 128 30
- textalign 1
- textstyle 6
- textalignx 0
- textaligny 25
- textscale .3
- text "Select to Play Fullscreen"
- forecolor 1 1 1 1
- decoration
- visible 0
- }
-
- itemDef {
- name fadebox // Box for fading in menus
- style WINDOW_STYLE_FILLED
- background "ui/sidrial/fadebox.tga"
- forecolor 0 0 0 1
- backcolor 0 0 0 1
- rect 0 0 640 480
- visible 1
- decoration
- }
-
-
-
- }
-
- }