home *** CD-ROM | disk | FTP | other *** search
/ Micromanía 87 / CDMM87_1.ISO / Sidrial / data1.cab / Program_Files / sidrial0.pk3 / ui / sidrial_newsingleplayer.menu < prev    next >
Encoding:
Text File  |  2002-01-13  |  6.6 KB  |  286 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 "newsingleplayer" 
  21.         style 3
  22.         background "blank"
  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.             show format;
  33.             uiScript stopRefresh ;
  34.         }
  35.         onEsc { close newsingleplayer ; open singleplayer; }
  36.  
  37.     itemDef {   //this is cuz roqs have problems being first on list
  38.         name foo
  39.         style 2
  40.         rect 0 0 0 0
  41.         visible 1
  42.     }
  43.     itemDef {
  44.         name cinematic
  45.           style 5                        
  46.         cinematic "video/sidrial/sp1_intro.roq"
  47.         rect 0 0 640 480
  48.         decoration
  49.         visible 1
  50.     }
  51.     itemDef {
  52.           name format                    // Layout
  53.         style 3
  54.          background "filter"
  55.         backcolor .25 .5 .75 .75
  56.         rect 0 0 640 480
  57.         visible 1    
  58.         decoration
  59.        }
  60.     itemDef {                    
  61.         name format
  62.         style 3
  63.           rect 0 0 640 480 
  64.          background "ui/sidrial/sub/white_bar.tga"
  65.         backcolor 0 0 0 0
  66.           forecolor 1 1 1 1
  67.           visible 0
  68.         decoration
  69.        }
  70.     itemDef {
  71.           name format                    // Layout
  72.         style 3
  73.          background "sub_swooshb"
  74.         backcolor 0 0 0 0
  75.           forecolor 1 1 1 1
  76.         rect 0 0 640 480
  77.         visible 0    
  78.         decoration
  79.        }
  80.     itemDef {
  81.           name singleplayer    
  82.           group icon
  83.           style 3
  84.           rect 580 40 40 40 
  85.         background "ui/sidrial/icon_singleplayer.tga"
  86.            backcolor 0 0 0 0
  87.           forecolor 1 1 1 1
  88.         visible 1
  89.           decoration
  90.        }
  91.     itemDef {
  92.         name subtitle
  93.         group words
  94.         type 0
  95.           text "Adisis Factory"
  96.           style 0    
  97.         textstyle 6
  98.           rect 500 40 80 40
  99.            forecolor .66 1 0 1
  100.         textalignx 75
  101.         textaligny 27
  102.           textalign 2
  103.         textscale .4        
  104.           visible 1 
  105.         decoration
  106.     }
  107.     itemDef {
  108.         name title
  109.         style 3
  110.         rect 10 5 256 32
  111.         background "ui/sidrial/text_singleplayer.tga"
  112.         backcolor 0 0 0 0 
  113.         forecolor 1 1 1 1
  114.         visible 1
  115.         decoration
  116.     }
  117.     itemDef {
  118.         name backbar
  119.         group Bar
  120.           style 2
  121.           rect 20 420 210 40
  122.           backcolor .66 1 0 .7 
  123.         border 0
  124.         visible 0    
  125.         action { close newsingleplayer ; open singleplayer }
  126.        }
  127.     itemDef {
  128.           name back    
  129.           group icon
  130.           style 3
  131.           rect 15 420 40 40 
  132.         background "ui/sidrial/sub/icon_left.tga"
  133.            backcolor 0 0 0 0
  134.           forecolor 1 1 1 1
  135.         visible 1
  136.           decoration
  137.         action { close newsingleplayer ; open singleplayer }
  138.        }
  139.     itemDef {
  140.         name back
  141.         group words
  142.         type 1
  143.           text "Back"
  144.           style 0    
  145.         textstyle 6
  146.           rect 15 420 150 40
  147.            forecolor .66 1 0 1
  148.         textalignx 45
  149.         textaligny 25
  150.           textalign 0
  151.         textscale .4        
  152.           visible 1     
  153.         mouseEnter { transition backbar 20 440 196 0 20 420 196 40 20 5 ; fadein message_back;}
  154.         mouseExit { transition backbar 20 420 196 40 20 440 196 0 20 5 ; fadeout message_back;}
  155.         action { close newsingleplayer ; open singleplayer }
  156.     }
  157.     itemDef {
  158.         name continuebar
  159.         group continue
  160.           style 2
  161.           rect 405 420 -210 40
  162.           backcolor .66 1 0 .7
  163.         border 0
  164.         visible 0
  165.         action { uiScript StartSP sidrialsp1; }
  166.      }
  167.     itemDef {
  168.           name icon    
  169.           group continue
  170.           style 3
  171.           rect 585 420 40 40 
  172.         background "ui/sidrial/sub/icon_right.tga"
  173.            backcolor 0 0 0 0
  174.           forecolor 1 1 1 1
  175.         visible 1
  176.           decoration
  177.         action { uiScript StartSP sidrialsp1; }
  178.        }
  179.     itemDef {
  180.         name continuewords
  181.         group words
  182.         type 1
  183.           text "Continue"
  184.           style 0    
  185.         textstyle 6
  186.           rect 485 420 150 40
  187.            forecolor .66 1 0 1
  188.         textalignx 15
  189.         textaligny 25
  190.           textalign 0
  191.         textscale .4        
  192.           visible 1     
  193.         mouseEnter { transition continuebar 405 440 -210 0 405 420 -210 40 20 5 ; fadein message_accept; }
  194.         mouseExit { transition continuebar 405 420 -210 40 405 440 -210 0 20 5 ; fadeout message_accept;}
  195.         action { uiScript StartSP sidrialsp1; }
  196.     }
  197.     itemDef {
  198.         name mission
  199.         type 1
  200.           text "Mission Briefing:"
  201.           style 0    
  202.           rect 50 100 150 25
  203.            forecolor .66 1 0 1
  204.         textalignx 5
  205.         textaligny 20
  206.           textalign 0
  207.         textscale .4        
  208.           visible 1     
  209.         decoration
  210.     }
  211. itemDef {
  212.     name mission
  213.     rect 55 135 500 300
  214.     style 0
  215.       wrapped
  216.     text "Your mission, as one of the top Sidrilian Rebels, is to safely bring back\ra Data Sphere containing important blueprints and other intelligence\rfrom the enemy base to Sidrilian headquarters. You will begin your\rjourney in a section of Adisis that is unguarded due to its secure nature\r- only top officials have access and not even the Overlord Guards dare\rcross it. It is the underbelly of the enemy city - guarded by machinery,\rtraps, and toxic fluids that make entry and escape impossible for those\rwithout knowledge of the layout. For those few who know the layout,\rtheir memory serves as their only tool for safe navigation - the only\rblueprints in existence were thought to have been destroyed long ago,\rbut new intelligence suggests the blueprints may be in the Data" 
  217.     textstyle 6
  218.     textalign 55
  219.     textscale .3
  220. //    textalignx 55
  221.     textalignx 0
  222.     textaligny 10
  223.     visible 1
  224.     forecolor 1 1 1 1
  225.     decoration
  226. }
  227. itemDef {
  228.     name mission
  229.     rect 55 332 500 300
  230.     style 0
  231.       wrapped
  232.     text "Sphere. You will need these blueprints to guide you in your escape, but\reven with them, your chances are slim. An insider sympathetic to the\rrebel cause will get you into the factory, but the access way must be\rre-sealed behind you to cover your tracks. It is up to you to find another\rway out."
  233.     textstyle 6
  234.     textalign 55      
  235.     textscale .3
  236.     textaligny 10
  237.     visible 1
  238.     forecolor 1 1 1 1
  239.     decoration
  240. }
  241. //    MESSAGES    //
  242. itemDef {
  243.     name message_back
  244.     group grpmessage
  245.     style 0 
  246.     rect 320 420 128 30
  247.     textalign 1
  248.     textstyle 6
  249.     textalignx 0
  250.     textaligny 25
  251.     textscale .3
  252.     text "Back to Single Player Main"
  253.     forecolor 1 1 1 1
  254.     decoration 
  255.     visible 0
  256.     }
  257. itemDef {
  258.     name message_accept
  259.     group grpmessage
  260.     style 0 
  261.     rect 320 420 128 30
  262.     textalign 1
  263.     textalignx 0
  264.     textstyle 6
  265.     textaligny 25
  266.     textscale .3
  267.     text "Play Sidrial"
  268.     forecolor 1 1 1 1
  269.     decoration 
  270.     visible 0
  271.     }
  272.     itemDef {
  273.           name fadebox                    // Box for fading in menus
  274.           style WINDOW_STYLE_FILLED
  275.          background "ui/sidrial/fadebox.tga"
  276.         forecolor 0 0 0 1
  277.         backcolor 0 0 0 1
  278.         rect 0 0 640 480
  279.           visible 1 
  280.         decoration
  281.     }
  282.  
  283.         
  284.   }
  285.  
  286. }