home *** CD-ROM | disk | FTP | other *** search
/ Micromanía 87 / CDMM87_1.ISO / Sidrial / data1.cab / Program_Files / sidrial0.pk3 / ui / sidrial_singleplayer.menu < prev    next >
Encoding:
Text File  |  2002-01-13  |  7.1 KB  |  359 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 "singleplayer" 
  21.         style 3
  22.         background "singleplayer"
  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 LoadSavedGames
  34.         }
  35.         onEsc { close singleplayer ; open main }
  36.  
  37.     itemDef {
  38.         name modelselection
  39.         ownerdraw UI_PLAYERMODEL
  40.            rect 360 40 310 450  //320 140 260 300
  41.         style 1
  42.         decoration 
  43.         visible 1
  44.     }
  45.     itemDef {
  46.           name format                    // Layout
  47.         style 3
  48.          background "filter"
  49.         backcolor .25 .5 .75 .75
  50.         rect 0 0 640 480
  51.         visible 0    
  52.         decoration
  53.        }    
  54.     itemDef {                    
  55.         name format
  56.         style 3
  57.           rect 0 0 640 480 
  58.          background "ui/sidrial/sub/white_bar.tga"
  59.         backcolor 0 0 0 0
  60.           forecolor 1 1 1 1
  61.           visible 0
  62.         decoration
  63.        }
  64.     itemDef {
  65.           name format                    // Layout
  66.         style 3
  67.          background "sub_swooshb"
  68.         backcolor 0 0 0 0
  69.           forecolor 1 1 1 1
  70.         rect 0 0 640 480
  71.         visible 0    
  72.         decoration
  73.        }
  74.     itemDef {
  75.           name singleplayer    
  76.           group icon
  77.           style 3
  78.           rect 580 40 40 40 
  79.         background "ui/sidrial/icon_singleplayer.tga"
  80.            backcolor 0 0 0 0
  81.           forecolor 1 1 1 1
  82.         visible 1
  83.           decoration
  84.        }
  85.     itemDef {
  86.         name subtitle
  87.         group words
  88.         type 0
  89.           text "Main"
  90.           style 0    
  91.         textstyle 6
  92.           rect 500 40 80 40
  93.            forecolor .66 1 0 1
  94.         textalignx 75
  95.         textaligny 27
  96.           textalign 2
  97.         textscale .4        
  98.           visible 1 
  99.         decoration
  100.     }
  101.     itemDef {
  102.         name title
  103.         style 3
  104.         rect 10 5 256 32
  105.         background "ui/sidrial/text_singleplayer.tga"
  106.         backcolor 0 0 0 0 
  107.         forecolor 1 1 1 1
  108.         visible 1
  109.         decoration
  110.     }
  111.     itemDef {
  112.         name backbar
  113.         group Bar
  114.           style 2
  115.           rect 20 420 210 40
  116.           backcolor .66 1 0 .7 
  117.         border 0
  118.         visible 0    
  119.         action { close singleplayer ; open main }
  120.         }
  121.     itemDef {
  122.           name back    
  123.           group icon
  124.           style 3
  125.           rect 15 420 40 40 
  126.         background "ui/sidrial/sub/icon_left.tga"
  127.            backcolor 0 0 0 0
  128.           forecolor 1 1 1 1
  129.         visible 1
  130.           decoration
  131.         action { close singleplayer ; open main }
  132.        }
  133.     itemDef {
  134.         name back
  135.         group words
  136.         type 1
  137.           text "Back"
  138.           style 0    
  139.         textstyle 6
  140.           rect 15 420 150 40
  141.            forecolor .66 1 0 1
  142.         textalignx 45
  143.         textaligny 25
  144.           textalign 0
  145.         textscale .4        
  146.           visible 1     
  147.         mouseEnter { transition backbar 20 440 196 0 20 420 196 40 20 5 ; fadein message_back;}
  148.         mouseExit { transition backbar 20 420 196 40 20 440 196 0 20 5 ; fadeout message_back;}
  149.         action { close singleplayer ; open main }
  150.     }
  151.     itemDef {
  152.         name continuebar
  153.         group continue
  154.           style 2
  155.           rect 405 420 -210 40
  156.           backcolor .66 1 0 .7
  157.         border 0
  158.         visible 0
  159.         action { close singleplayer; uiScript loadgame; }
  160.      }
  161.     itemDef {
  162.           name icon    
  163.           group continue
  164.           style 3
  165.           rect 585 420 40 40 
  166.         background "ui/sidrial/sub/icon_right.tga"
  167.            backcolor 0 0 0 0
  168.           forecolor 1 1 1 1
  169.         visible 1
  170.           decoration
  171.         action { close singleplayer; uiScript loadgame; }
  172.        }
  173.     itemDef {
  174.         name continuewords
  175.         group words
  176.         type 1
  177.           text "Continue"
  178.           style 0    
  179.         textstyle 6
  180.           rect 485 420 150 40
  181.            forecolor .66 1 0 1
  182.         textalignx 15
  183.         textaligny 25
  184.           textalign 0
  185.         textscale .4        
  186.           visible 1     
  187.         mouseEnter { transition continuebar 405 440 -210 0 405 420 -210 40 20 5 ; fadein message_accept; }
  188.         mouseExit { transition continuebar 405 420 -210 40 405 440 -210 0 20 5 ; fadeout message_accept;}
  189.         action { close singleplayer; uiScript loadgame; }
  190.     }
  191.     itemDef {
  192.         name mission
  193.         type 1
  194.           text "Spawn Game:"
  195.           style 0    
  196.           rect 30 180 150 25
  197.            forecolor .66 1 0 1
  198.         textalignx 2
  199.         textaligny 25
  200.           textalign 0
  201.         textscale .4        
  202.           visible 1     
  203.         decoration
  204.     }
  205.     itemDef {
  206.         name gameslist
  207.         rect 30 210 280 180
  208.         type ITEM_TYPE_LISTBOX
  209.         style WINDOW_STYLE_FILLED
  210.         elementtype LISTBOX_TEXT
  211.         elementwidth 150
  212.         elementheight 18
  213.         feeder FEEDER_SAVED_GAMES
  214.         backcolor .66 1 0 .2
  215.         border 1
  216.         bordercolor .66 1 0 1
  217.         forecolor 1 1 1 1
  218.     outlinecolor .66 1 0 1
  219.         visible 1
  220.         textscale .25
  221.         textstyle 6
  222.         mouseenter { setitemcolor gameslist bordercolor 1 1 1 1 ; fadein message_choose;}
  223.         mouseexit { setitemcolor gameslist bordercolor .66 1 0 1 ; fadeout message_choose;}
  224.         doubleClick { uiScript loadgame }
  225.     }
  226. //Delete Bar//
  227. itemDef {
  228.     name deletebar
  229.     group game
  230.     style WINDOW_STYLE_FILLED
  231.     rect 35 140 130 25
  232.     backcolor .66 1 0 .7  
  233.     visible 0 
  234. }
  235. itemDef {
  236.     name brace        
  237.     group game
  238.     style 3
  239.     rect 19 137 35 35 
  240.     background "ui/sidrial/sub/brace.tga"
  241.     backcolor 0 0 0 0
  242.        forecolor 1 1 1 1
  243.        visible 1
  244.     decoration    
  245. }
  246. itemDef {
  247.     name brace    
  248.     group game
  249.     style 3
  250.     rect 144 137 35 35
  251.     background "ui/sidrial/sub/brace_right.tga"
  252.     backcolor 0 0 0 0
  253.        forecolor 1 1 1 1
  254.        visible 1
  255.     decoration    
  256. }
  257.  itemDef {
  258.      name deletegame
  259.      group game
  260.      text "Delete Game"
  261.      type 1
  262.      style WINDOW_STYLE_FILLED
  263.      rect 35 140 130 25
  264.      textalign 1    
  265.      textstyle 6
  266.      textalignx 65      
  267.      textaligny 21
  268.      textscale .35
  269.      forecolor .66 1 0 1
  270.      visible 1 
  271.      action { uiScript deletegame; }
  272.      mouseEnter { transition deletebar 35 155 130 0 35 140 130 30 20 5; fadein message_del;}
  273.      mouseExit { transition deletebar 35 140 130 30 35 155 130 0 20 5; fadeout message_del;}
  274. }
  275.  
  276. itemDef {
  277.         name modelselection
  278.         ownerdraw UI_PLAYERMODEL
  279.            rect 320 140 260 300
  280.         style 1
  281.         decoration 
  282.         visible 1
  283.     }
  284. //    MESSAGES    //
  285. itemDef {
  286.     name message_back
  287.     group grpmessage
  288.     style 0 
  289.     rect 320 420 128 30
  290.     textalign 1
  291.     textstyle 6
  292.     textalignx 0
  293.     textaligny 25
  294.     textscale .3
  295.     text "Back to Main Menu"
  296.     forecolor 1 1 1 1
  297.     decoration 
  298.     visible 0
  299.     }
  300. itemDef {
  301.     name message_accept
  302.     group grpmessage
  303.     style 0 
  304.     rect 320 420 128 30
  305.     textalign 1
  306.     textalignx 0
  307.     textstyle 6
  308.     textaligny 25
  309.     textscale .3
  310.     text "Spawn Selected Game"
  311.     forecolor 1 1 1 1
  312.     decoration 
  313.     visible 0
  314.     }
  315. itemDef {
  316.     name message_del
  317.     group grpmessage
  318.     style 0 
  319.     rect 320 420 128 30
  320.     textalign 1
  321.     textalignx 0
  322.     textstyle 6
  323.     textaligny 25
  324.     textscale .3
  325.     text "Delete Selected Saved Game"
  326.     forecolor 1 1 1 1
  327.     decoration 
  328.     visible 0
  329.     }
  330. itemDef {
  331.     name message_choose
  332.     group grpmessage
  333.     style 0 
  334.     rect 320 420 128 30
  335.     textalign 1
  336.     textalignx 0
  337.     textstyle 6
  338.     textaligny 25
  339.     textscale .3
  340.     text "Select a Saved Game"
  341.     forecolor 1 1 1 1
  342.     decoration 
  343.     visible 0
  344.     }
  345.     itemDef {
  346.           name fadebox                    // Box for fading in menus
  347.           style WINDOW_STYLE_FILLED
  348.          background "ui/sidrial/fadebox.tga"
  349.         forecolor 0 0 0 1
  350.         backcolor 0 0 0 1
  351.         rect 0 0 640 480
  352.           visible 1 
  353.         decoration
  354.     }
  355.  
  356.         
  357.   }
  358.  
  359. }