home *** CD-ROM | disk | FTP | other *** search
/ Micromanía 87 / CDMM87_1.ISO / Sidrial / data1.cab / Program_Files / sidrial0.pk3 / ui / sidrial.menu < prev    next >
Encoding:
Text File  |  2002-01-13  |  8.0 KB  |  363 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.         itemFocusSound "sound/UI/menu2.wav"        // sound for item getting focus (via keyboard or mouse )
  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 "main"
  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.             playLooped "music/SidrialMusic_ui.wav" 
  30.             setitemcolor fadebox backcolor 0 0 0 1 ;
  31.             fadeout fadebox ;
  32.             fadein format ;
  33.             fadein icon ;
  34.             fadein words ;
  35.             uiScript stopRefresh ;
  36.             hide greenhue;
  37.             show cinematic;
  38.         }
  39.         onClose {
  40.          hide Bar;
  41.          }
  42.         onESC { open quit_confirm; hide Bar; hide icon; hide words; show greenhue; hide cinematic;}
  43.  
  44.     itemDef {
  45.         name modelselection                 //Precache player model    
  46.         ownerdraw UI_PLAYERMODEL            //Ownerdraw for player models
  47.         rect 0 0 0 0 
  48.         style 1
  49.         decoration 
  50.         visible 1
  51.     }
  52.     itemDef {
  53.         name cinematic
  54.           style 5                        
  55.         cinematic "video/sidrial/Sidrial_BeautyShots.roq"
  56.         rect 0 0 640 480
  57.         decoration
  58.         visible 1
  59.     }
  60.     itemDef {
  61.           name filter
  62.           style 3    
  63.          rect 0 0 640 480
  64.          background "filter"
  65.           visible 1  
  66.         decoration
  67.      }
  68.     itemDef {
  69.           name format                    // Layout
  70.         style 3
  71.          background "swooshb"
  72.         backcolor 1 0 0 1
  73.           forecolor 1 0 0 1
  74.         rect 0 0 640 480
  75.         visible 1    
  76.         decoration
  77.        }
  78.     itemDef {
  79.           name format                    // Layout
  80.         style 3
  81.          background "format"
  82.         backcolor 0 0 0 0
  83.           forecolor 1 1 1 1
  84.         rect 0 0 640 480
  85.         visible 1    
  86.         decoration
  87.        }
  88.     itemDef {
  89.           name greenhue
  90.           style 3    
  91.          rect 0 0 640 480
  92.          background "greenhue"
  93.         backcolor 0 0 0 0
  94.         forecolor 1 1 1 1
  95.           visible 0  
  96.         decoration
  97.      }
  98.  
  99. //Menu Items
  100.   //Single Player Bar
  101.   itemDef {
  102.         name singlebar
  103.         group Bar
  104.         style 2
  105.         rect 50 40 300 40
  106.         backcolor .66 1 0 .7 
  107.         border 0
  108.         visible 0     
  109.         decoration
  110.         action { close main ; open singleplayer ; }
  111.   }
  112.   itemDef {
  113.         name singleplayer    
  114.         group icon
  115.         style 3
  116.         rect 40 40 40 40
  117.         background "ui/sidrial/icon_singleplayer.tga"
  118.         backcolor 0 0 0 0
  119.         forecolor 1 1 1 1
  120.         visible 0
  121.         decoration
  122.         action { close main ; open singleplayer ; }
  123.   }
  124.   itemDef {
  125.         name words
  126.         group singlewords
  127.         type 1
  128.           text "Single Player"
  129.           style 0    
  130.         textstyle 6
  131.           rect 40 40 312 40
  132.            forecolor .66 1 0 1
  133.         textalignx 50
  134.         textaligny 27
  135.           textalign 0
  136.         textscale .4        
  137.           visible 0     
  138.         mouseEnter { transition singlebar 50 60 300 0 50 40 300 40 20 5 ; }
  139.         mouseExit { transition singlebar 50 40 300 40 50 60 300 0 20 5 ; }
  140.         action {close main ; open singleplayer ; }
  141.   }
  142.      
  143.   //Multiplayer Bar
  144.   itemDef {
  145.         name multibar
  146.         group Bar
  147.           style 2
  148.           rect 50 93 300 40
  149.           backcolor .66 1 0 .7 
  150.         border 0
  151.         visible 0     
  152.         action { close main ; open multiplayer ; }
  153.         }
  154.   itemDef {
  155.           name multiplayer
  156.         group icon
  157.           style 3    
  158.          rect 40 93 40 40  
  159.          background "ui/sidrial/icon_multiplayer.tga"
  160.           backcolor 0 0 0 0
  161.           forecolor 1 1 1 1
  162.           visible 0  
  163.         decoration
  164.         action { close main ; open multiplayer ; }
  165.      }
  166.      itemDef {
  167.         name multiplayer
  168.         group words
  169.         type 1
  170.           text "Multiplayer"
  171.           style 0    
  172.         textstyle 6
  173.           rect 40 93 312 40
  174.            forecolor .66 1 0 1
  175.         textalignx 50
  176.         textaligny 27
  177.           textalign 0
  178.         textscale .4        
  179.           visible 0     
  180.         mouseEnter { transition multibar 50 113 300 0 50 93 300 40 20 5 ; }
  181.           mouseExit { transition multibar 50 93 300 40 50 113 300 0 20 5 ; }
  182.         action { close main ; open multiplayer ; }
  183.      }
  184.  
  185.     //Player Setup Bar
  186.      itemDef {
  187.         name playerbar
  188.         group Bar
  189.           style 2
  190.           rect 50 146 300 40
  191.           backcolor .66 1 0 .7 
  192.         border 0
  193.         visible 0     
  194.         action { close main ; open playersetup ; }
  195.         }
  196.      itemDef {
  197.           name playersetup                    
  198.         group icon
  199.         style 3
  200.           rect 40 146 40 40
  201.          background "ui/sidrial/icon_playersetup.tga"
  202.         backcolor 0 0 0 0
  203.           forecolor 1 1 1 1
  204.           visible 0
  205.         decoration
  206.         action { close main ; open playersetup ; }
  207.         }
  208.      itemDef {
  209.         name playersetup
  210.         group words
  211.         type 1
  212.           text "Player Setup"
  213.           style 0    
  214.         textstyle 6
  215.           rect 40 146 312 40
  216.            forecolor .66 1 0 1
  217.         textalignx 50
  218.         textaligny 27
  219.           textalign 0
  220.         textscale .4        
  221.           visible 0     
  222.         mouseEnter { transition playerbar 50 166 300 0 50 146 300 40 20 5 ; }
  223.           mouseExit { transition playerbar 50 146 300 40 50 166 300 0 20 5 ; }
  224.         action { close main ; open playersetup ; }
  225.      }
  226.  
  227.   //System Configuration      
  228.    itemDef {
  229.         name systembar
  230.         group Bar
  231.           style 2
  232.           rect 50 199 300 40
  233.           backcolor .66 1 0 .7 
  234.         border 0
  235.         visible 0     
  236.         action { close main ; open confignav ; open configcontrols }
  237.     }
  238.     itemDef {
  239.           name systemconfig                    
  240.         group icon
  241.         style 3
  242.           rect 40 199 40 40
  243.          background "ui/sidrial/icon_systemconfig.tga"
  244.         backcolor 0 0 0 0
  245.           forecolor 1 1 1 1
  246.           visible 0
  247.         decoration
  248.         action { close main ; open confignav ; open configcontrols }
  249.        }
  250.     itemDef {
  251.         name systemconfig
  252.         group words
  253.         type 1
  254.           text "System Configuration"
  255.           style 0    
  256.         textstyle 6
  257.           rect 40 199 312 40
  258.            forecolor .66 1 0 1
  259.         textalignx 50
  260.         textaligny 27
  261.           textalign 0
  262.         textscale .4        
  263.           visible 0     
  264.         mouseEnter { transition systembar 50 219 300 0 50 199 300 40 20 5 ; }
  265.           mouseExit { transition systembar 50 199 300 40 50 219 300 0 20 5 ; }
  266.         action { close main ; open confignav ; open configcontrols}
  267.      }
  268.  //Cinematics Bar
  269.   itemDef {
  270.         name cinebar
  271.         group Bar
  272.           style 2
  273.           rect 50 252 300 40
  274.           backcolor .66 1 0 .7
  275.         border 0
  276.         visible 0     
  277.         action { show quit; hide Bar; hide icon; hide words; hide cinematic; }
  278.         }
  279.     itemDef {
  280.           name cine                    
  281.         group icon
  282.         style 3
  283.           rect 40 252 40 40 
  284.          background "ui/sidrial/icon_cinematics.tga"
  285.         backcolor 0 0 0 0
  286.           forecolor 1 1 1 1
  287.           visible 0
  288.         decoration    
  289.         action { show quit; hide Bar; hide icon; hide words; hide cinematic; }
  290.     }
  291.      itemDef {
  292.         name cine
  293.         group words
  294.         type 1
  295.           text "Cinematics"
  296.           style 0    
  297.         textstyle 6
  298.           rect 40 252 312 40
  299.            forecolor .66 1 0 1
  300.         textalignx 50
  301.         textaligny 27
  302.           textalign 0
  303.         textscale .4        
  304.           visible 0     
  305.         mouseEnter { transition cinebar 50 272 300 0 50 252 300 40 20 5 ; }
  306.         mouseExit { transition cinebar 50 252 300 40 50 272 300 0 20 5 ; }
  307.         action { close main; open cinematics; }
  308.      }
  309.  
  310.   //Exit Bar
  311.   itemDef {
  312.         name exitbar
  313.         group bar
  314.           style 2
  315.           rect 50 304 300 40
  316.           backcolor .66 1 0 .7
  317.         visible 0     
  318.         action { open quit_confirm; hide Bar; hide icon; hide words; hide cinematic; show greenhue;}
  319.         }
  320.     itemDef {
  321.           name exit                    
  322.         group icon
  323.         style 3
  324.           rect 40 304 40 40 
  325.          background "ui/sidrial/icon_exit.tga"
  326.         backcolor 0 0 0 0
  327.           forecolor 1 1 1 1
  328.           visible 0
  329.         decoration    
  330.         action { open quit_confirm; hide Bar; hide icon; hide words; hide cinematic; show greenhue;}
  331.     }
  332.      itemDef {
  333.         name exit
  334.         group words
  335.         type 1
  336.           text "Exit"
  337.           style 0    
  338.         textstyle 6
  339.           rect 40 304 312 40
  340.            forecolor .66 1 0 1
  341.         textalignx 50
  342.         textaligny 27
  343.           textalign 0
  344.         textscale .4        
  345.           visible 0     
  346.         mouseEnter { transition exitbar 50 324 300 0 50 304 300 40 20 5 ; }
  347.         mouseExit { transition exitbar 50 304 300 40 50 324 300 0 20 5 ; }
  348.         action { play "sound/UI/menu1.wav"; open quit_confirm; hide Bar; hide icon; hide words; hide cinematic; show greenhue;}
  349.      }
  350.     itemDef {
  351.           name fadebox                    // Box for fading in menus
  352.           style WINDOW_STYLE_FILLED
  353.          background "ui/sidrial/fadebox.tga"
  354.         forecolor 0 0 0 1
  355.         backcolor 0 0 0 1
  356.         rect 0 0 640 480
  357.           visible 1 
  358.         decoration
  359.     }
  360.  
  361.   }
  362.  
  363. }