home *** CD-ROM | disk | FTP | other *** search
/ Micromanía 87 / CDMM87_1.ISO / Sidrial / data1.cab / Program_Files / sidrial0.pk3 / ui / sidrial_cinematics.menu < prev    next >
Encoding:
Text File  |  2002-01-14  |  5.6 KB  |  283 lines

  1. #include "ui/menudef.h"
  2.  
  3. {
  4.   assetGlobalDef {
  5.         font "fonts/font" 16                // font
  6.         smallFont "fonts/smallfont" 12                // font
  7.         bigFont "fonts/bigfont" 20                // font
  8.     cursor "ui/assets/3_cursor3"            // cursor    
  9.     gradientBar "ui/sidrial/hilight.tga"    // gradient bar
  10.     
  11.  
  12.        fadeClamp 2.0                    // sets the fadeup alpha
  13.        fadeCycle 4                    // how often fade happens in milliseconds
  14.        fadeAmount 2                    // amount to adjust alpha per cycle
  15.  
  16.         shadowColor 0.1 0.1 0.1 0.25            // shadow color
  17.       }
  18.  
  19. menuDef {
  20.     name "cinematics"
  21.     style 3
  22.     background "cinematics"
  23.     fullScreen MENU_TRUE 
  24.     rect 0 0 640 480                // Size and position of the menu
  25.     visible MENU_TRUE                // Visible on open
  26.     focusColor 1 1 1 1            // Menu focus color for text and items
  27.  
  28.         onOpen { 
  29.             setitemcolor fadebox backcolor 0 0 0 1 ;
  30.             playlooped "music/SidrialMusic_ui.wav" ;
  31.             fadeout fadebox ;
  32.             fadein format ;
  33.             fadein cinematics ;
  34.             fadein back ;
  35.             fadein continue ;
  36.             hide continuebar;
  37.             hide backbar;
  38.             uiScript loadMovies ;
  39.         }
  40.     onESC { close cinematics ; open main ; }
  41.     itemDef {
  42.           name format                    // Layout
  43.         style 3
  44.          background "filter"
  45.         backcolor .25 .5 .75 .75
  46.         rect 0 0 640 480
  47.         visible 0    
  48.         decoration
  49.        }
  50.             
  51.     itemDef {                    
  52.         name format
  53.         style 3
  54.           rect 0 0 640 480 
  55.          background "ui/sidrial/sub/white_bar.tga"
  56.         backcolor 0 0 0 0
  57.           forecolor 1 1 1 1
  58.           visible 0
  59.         decoration
  60.        }
  61.     itemDef {
  62.           name format                    // Layout
  63.         style 3
  64.          background "sub_swooshb"
  65.         backcolor 0 0 0 0
  66.           forecolor 1 1 1 1
  67.         rect 0 0 640 480
  68.         visible 0    
  69.         decoration
  70.        }
  71.     itemDef {
  72.           name cinematics    
  73.           group icon
  74.           style 3
  75.           rect 580 40 40 40 
  76.         background "ui/sidrial/icon_exit.tga"
  77.            backcolor 0 0 0 0
  78.           forecolor 1 1 1 1
  79.         visible 1
  80.           decoration
  81.        }
  82.     itemDef {
  83.         name title
  84.         style 3
  85.         rect 10 5 256 32
  86.         background "ui/sidrial/text_cinematics.tga"
  87.         backcolor 0 0 0 0 
  88.         forecolor 1 1 1 1
  89.         visible 1
  90.         decoration
  91.     }
  92.     itemDef {
  93.         name backbar
  94.         group Bar
  95.           style 2
  96.           rect 20 420 210 40
  97.           backcolor .66 1 0 .7 
  98.         border 0
  99.         visible 0    
  100.         action { close cinematics ; open main }
  101.         }
  102.     itemDef {
  103.           name back    
  104.           group icon
  105.           style 3
  106.           rect 15 420 40 40 
  107.         background "ui/sidrial/sub/icon_left.tga"
  108.            backcolor 0 0 0 0
  109.           forecolor 1 1 1 1
  110.         visible 1
  111.           decoration
  112.         action { close cinematics ; open main }
  113.        }
  114.     itemDef {
  115.         name back
  116.         group words
  117.         type 1
  118.           text "Back"
  119.           style 0    
  120.         textstyle 6
  121.           rect 15 420 150 40
  122.            forecolor .66 1 0 1
  123.         textalignx 45
  124.         textaligny 25
  125.           textalign 0
  126.         textscale .4        
  127.           visible 1     
  128.         mouseEnter { transition backbar 20 440 196 0 20 420 196 40 20 5 ; fadein message_back;}
  129.         mouseExit { transition backbar 20 420 196 40 20 440 196 0 20 5 ; fadeout message_back;}
  130.         action { close cinematics ; open main }
  131.     }
  132.  
  133.     itemDef {
  134.         name continuebar
  135.           style 2
  136.           rect 405 420 -210 40
  137.           backcolor .66 1 0 .7
  138.         border 0
  139.         visible 0
  140.           action { close cinematics ; uiScript playMovie }
  141.      }
  142.     itemDef {
  143.           name icon    
  144.           group continue
  145.           style 3
  146.           rect 585 420 40 40 
  147.         background "ui/sidrial/sub/icon_right.tga"
  148.            backcolor 0 0 0 0
  149.           forecolor 1 1 1 1
  150.         visible 1
  151.           decoration
  152.           action { close cinematics ; uiScript playMovie }
  153.        }
  154.     itemDef {
  155.         name continue
  156.         group words
  157.         type 1
  158.           text "Play"
  159.           style 0    
  160.         textstyle 6
  161.           rect 485 420 150 40
  162.            forecolor .66 1 0 1
  163.         textalignx 50
  164.         textaligny 25
  165.           textalign 0
  166.         textscale .4        
  167.           visible 1     
  168.         mouseEnter { transition continuebar 405 440 -210 0 405 420 -210 40 20 5 ; fadein message_accept }   
  169.         mouseExit { transition continuebar 405 420 -210 40 405 440 -210 0 20 5 ; fadeout message_accept }  
  170.         action { close cinematics ; uiScript playMovie }
  171.     }
  172. itemDef {
  173.     name machinima
  174.     style 0 
  175.     rect 54 100 200 30
  176.     textstyle 6
  177.     textalign 0
  178.     textalignx 0
  179.     textaligny 25
  180.     textscale .35
  181.     text "All cinematics were created using Machinima."
  182.     forecolor .66 1 0 1
  183.     decoration 
  184.     visible 1
  185.     }
  186. itemDef {
  187.     name cinematiclist
  188.     rect 54 144 256 192
  189.     type ITEM_TYPE_LISTBOX
  190.     style WINDOW_STYLE_FILLED
  191.     elementwidth 120
  192.     elementheight 20
  193.     textscale .25
  194.     elementtype LISTBOX_TEXT
  195.     feeder FEEDER_CINEMATICS
  196.     doubleclick { uiScript playMovie }
  197.     textalign 3
  198.     textaligny 14
  199.     border 1
  200.     bordercolor .66 1 0 1
  201.     forecolor .66 1 0 1
  202.     backcolor .66 1 0 .25
  203.     outlinecolor .66 1 0 1
  204.     visible 1
  205.     mouseEnter { fadein message_cinematic ; setitemcolor cinematiclist bordercolor 1 1 1 1 } 
  206.     mouseExit { fadeout message_cinematic ; setitemcolor cinematiclist bordercolor .66 1 0 1} 
  207.       }
  208. itemDef {
  209.     name mappreview
  210.     ownerdraw UI_PREVIEWCINEMATIC
  211.     rect 330 144 256 192
  212.     backcolor 1 1 1 .25
  213.     border 1
  214.     bordersize 1
  215.     bordercolor .66 1 0 1
  216.     decoration
  217.     visible 1
  218.     }
  219. //    MESSAGES    //
  220.  
  221. itemDef {
  222.     name message_back
  223.     group grpmessage
  224.     style 0 
  225.     rect 320 420 128 30
  226.     textstyle 6
  227.     textalign 1
  228.     textalignx 0
  229.     textaligny 25
  230.     textscale .3
  231.     text "Back to Main Menu"
  232.     forecolor 1 1 1 1
  233.     decoration 
  234.     visible 0
  235.     }
  236.  
  237. itemDef {
  238.     name message_cinematic
  239.     group grpmessage
  240.     style 0 
  241.     rect 320 420 128 30
  242.     textalign 1
  243.     textstyle 6
  244.     textalignx 0
  245.     textaligny 25
  246.     textscale .3
  247.     text "Select Cinematic to Play"
  248.     forecolor 1 1 1 1
  249.     decoration 
  250.     visible 0
  251.     }
  252. itemDef {
  253.     name message_accept
  254.     group grpmessage
  255.     style 0 
  256.     rect 320 420 128 30
  257.     textalign 1
  258.     textstyle 6
  259.     textalignx 0
  260.     textaligny 25
  261.     textscale .3
  262.     text "Select to Play Fullscreen"
  263.     forecolor 1 1 1 1
  264.     decoration 
  265.     visible 0
  266.     }
  267.  
  268.     itemDef {
  269.          name fadebox                    // Box for fading in menus
  270.          style WINDOW_STYLE_FILLED
  271.          background "ui/sidrial/fadebox.tga"
  272.         forecolor 0 0 0 1
  273.         backcolor 0 0 0 1
  274.         rect 0 0 640 480
  275.          visible 1 
  276.         decoration
  277.     }
  278.  
  279.  
  280.         
  281.   }
  282.  
  283. }