home *** CD-ROM | disk | FTP | other *** search
/ Micromanía 87 / CDMM87_1.ISO / Sidrial / data1.cab / Program_Files / sidrial0.pk3 / ui / ingame_main.menu < prev    next >
Encoding:
Text File  |  2002-01-12  |  6.0 KB  |  269 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 "ingame_main"
  21.     fullscreen 0
  22.     rect 0 0 640 480
  23.     focusColor 1 1 1 1
  24.     onOpen { 
  25.             setitemcolor fadebox backcolor 0 0 0 1 ;
  26.             fadeout fadebox ;
  27.             fadein format ;
  28.             fadein icon ;
  29.             fadein words ;
  30.             hide quit;
  31.         }
  32.     onESC { open ingame_quit_confirm; hide Bar; hide icon; hide words; show quit;}
  33.     itemDef {
  34.           name quit                    // Layout
  35.         style 3
  36.         background "loadingBackground"
  37.         backcolor 0 0 0 0
  38.           forecolor 1 1 1 1
  39.         rect 0 0 640 480
  40.         visible 0    
  41.         decoration
  42.        }
  43.     itemDef {
  44.         name modelselection                 //Precache player model    
  45.         ownerdraw UI_PLAYERMODEL            //Ownerdraw for player models
  46.         rect 0 0 0 0 
  47.         style 1
  48.         decoration 
  49.         visible 1
  50.     }
  51.     itemDef {
  52.           name icon
  53.           style 3    
  54.          rect 0 0 640 480
  55.          background "filter"
  56.           visible 1  
  57.         decoration
  58.      }
  59.     itemDef {
  60.           name format                    // Layout
  61.         style 3
  62.          background "swooshb"
  63.         backcolor 1 0 0 1
  64.           forecolor 1 0 0 1
  65.         rect 0 0 640 480
  66.         visible 1    
  67.         decoration
  68.        }
  69.     itemDef {
  70.           name format                    // Layout
  71.         style 3
  72.          background "format"
  73.         backcolor 0 0 0 0
  74.           forecolor 1 1 1 1
  75.         rect 0 0 640 480
  76.         visible 1    
  77.         decoration
  78.        }
  79.     itemDef {
  80.           name quit                    // Layout
  81.         style 3
  82.         background "greenhue"
  83.         backcolor 0 0 0 0
  84.           forecolor 1 1 1 1
  85.         rect 0 0 640 480
  86.         visible 0    
  87.         decoration
  88.        }
  89. //Menu Items
  90.   //Resume Bar
  91.   itemDef {
  92.           name resumebar
  93.           group Bar
  94.           style 2
  95.           rect 50 40 300 40
  96.           backcolor .66 1 0 .7 
  97.           border 0
  98.           visible 0     
  99.         decoration
  100.         action { close ingame_main ; }
  101.   }
  102.   itemDef {
  103.           name resume    
  104.           group icon
  105.           style 3
  106.           rect 40 40 40 40
  107.            background "ui/sidrial/icon_resume.tga"
  108.            backcolor 0 0 0 0
  109.           forecolor 1 1 1 1
  110.         visible 0
  111.         decoration
  112.         action { close ingame_main ; }
  113.   }
  114.   itemDef {
  115.         name resume
  116.         group words
  117.         type 1
  118.           text "Resume Game"
  119.           style 0    
  120.         textstyle 6
  121.           rect 40 40 312 40
  122.            forecolor .66 1 0 1
  123.         textalignx 50
  124.         textaligny 27
  125.           textalign 0
  126.         textscale .4        
  127.           visible 0     
  128.         mouseEnter { transition resumebar 50 60 300 0 50 40 300 40 20 5 ; }
  129.         mouseExit { transition resumebar 50 40 300 40 50 60 300 0 20 5 ; }
  130.         action { close ingame_main ;}
  131.   }
  132.     //Player Setup Bar
  133.      itemDef {
  134.         name playerbar
  135.         group Bar
  136.           style 2
  137.           rect 50 93 300 40
  138.           backcolor .66 1 0 .7 
  139.         border 0
  140.         visible 0     
  141.         action { close ingame_main; open ingame_playersetup; }
  142.         }
  143.      itemDef {
  144.           name playersetup                    
  145.         group icon
  146.         style 3
  147.           rect 40 93 40 40
  148.          background "ui/sidrial/icon_playersetup.tga"
  149.         backcolor 0 0 0 0
  150.           forecolor 1 1 1 1
  151.           visible 0
  152.         decoration
  153.         action { close ingame_main; open ingame_playersetup; }
  154.         }
  155.      itemDef {
  156.         name playersetup
  157.         group words
  158.         type 1
  159.           text "Player Setup"
  160.           style 0    
  161.         textstyle 6
  162.           rect 40 93 312 40
  163.            forecolor .66 1 0 1
  164.         textalignx 50
  165.         textaligny 27
  166.           textalign 0
  167.         textscale .4        
  168.           visible 0     
  169.         mouseEnter { transition playerbar 50 113 300 0 50 93 300 40 20 5 ; }
  170.           mouseExit { transition playerbar 50 93 300 40 50 113 300 0 20 5 ; }
  171.         action { close ingame_main; open ingame_playersetup; }
  172.      }
  173.  
  174.   //System Configuration      
  175.    itemDef {
  176.         name systembar
  177.         group Bar
  178.           style 2
  179.           rect 50 146 300 40
  180.           backcolor .66 1 0 .7 
  181.         border 0
  182.         visible 0     
  183.         action { close ingame_main ; open confignav0 ; open ingame_configcontrols }
  184.     }
  185.     itemDef {
  186.           name systemconfig                    
  187.         group icon
  188.         style 3
  189.           rect 40 146 40 40
  190.          background "ui/sidrial/icon_systemconfig.tga"
  191.         backcolor 0 0 0 0
  192.           forecolor 1 1 1 1
  193.           visible 0
  194.         decoration
  195.         action { close ingame_main ; open ingame_confignav ; open ingame_configcontrols }
  196.        }
  197.     itemDef {
  198.         name systemconfig
  199.         group words
  200.         type 1
  201.           text "System Configuration"
  202.           style 0    
  203.         textstyle 6
  204.           rect 40 146 312 40
  205.            forecolor .66 1 0 1
  206.         textalignx 50
  207.         textaligny 27
  208.           textalign 0
  209.         textscale .4        
  210.           visible 0     
  211.         mouseEnter { transition systembar 50 166 300 0 50 146 300 40 20 5 ; }
  212.           mouseExit { transition systembar 50 146 300 40 50 166 300 0 20 5 ; }
  213.         action { close ingame_main ; open ingame_confignav ; open ingame_configcontrols }
  214.      }
  215.   //Exit Bar
  216.   itemDef {
  217.         name discbar
  218.         group Bar
  219.           style 2
  220.           rect 50 199 300 40
  221.           backcolor .66 1 0 .7
  222.         border 0
  223.         visible 0     
  224.         action { open ingame_quit_confirm; show quit; hide Bar; hide icon; hide words; }
  225.         }
  226.     itemDef {
  227.           name disconnect                    
  228.         group icon
  229.         style 3
  230.           rect 40 199 40 40 
  231.          background "ui/sidrial/icon_exit.tga"
  232.         backcolor 0 0 0 0
  233.           forecolor 1 1 1 1
  234.           visible 0
  235.         decoration    
  236.         action { open ingame_quit_confirm; show quit; hide Bar; hide icon; hide words; }
  237.     }
  238.      itemDef {
  239.         name disconnect
  240.         group words
  241.         type 1
  242.           text "Exit to Main Menu"
  243.           style 0    
  244.         textstyle 6
  245.           rect 40 199 312 40
  246.            forecolor .66 1 0 1
  247.         textalignx 50
  248.         textaligny 27
  249.           textalign 0
  250.         textscale .4        
  251.           visible 0     
  252.         mouseEnter { transition discbar 50 219 300 0 50 199 300 40 20 5 ; }
  253.         mouseExit { transition discbar 50 199 300 40 50 219 300 0 20 5 ; }
  254.         action { play "sound/UI/menu1.wav"; open ingame_quit_confirm; show quit; hide Bar; hide icon; hide words; }
  255.      }
  256.     itemDef {
  257.           name fadebox                    // Box for fading in menus
  258.           style WINDOW_STYLE_FILLED
  259.          background "ui/sidrial/fadebox.tga"
  260.         forecolor 0 0 0 1
  261.         backcolor 0 0 0 1
  262.         rect 0 0 640 480
  263.           visible 1 
  264.         decoration
  265.     }
  266.  
  267.   }
  268.  
  269. }