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

  1. #include "ui/menudef.h"
  2.  
  3. {
  4. \\ Save MENU \\
  5.  
  6. menuDef {
  7.         name "ingame_save"
  8.         visible 0
  9.         fullscreen 0
  10.         outOfBoundsClick            // this closes the window if it gets a click out of the rectangle
  11.         rect 212 41 307 272
  12.         disableColor  .5 .5 .5 1 
  13.         focusColor 1 1 1 1
  14.         style 1
  15.         border 1
  16.  
  17.     OnOpen {
  18.         uiScript LoadSavedGames; 
  19.     }
  20. //Background
  21.     itemDef {
  22.         name window2
  23.            rect 2 2 305 270
  24.         style 1
  25.         backcolor 0 0 0 .5
  26.         visible 1
  27.         decoration
  28.     }
  29.     itemDef {
  30.         name window
  31.            rect 2 2 305 270
  32.         style 1
  33.         backcolor .66 1 0 .35
  34.         forecolor 0 0 0 1
  35.         border 1
  36.         bordercolor .66 1 0 1
  37.         visible 1
  38.         decoration
  39.     }
  40.  itemDef {
  41.         name ok
  42.         group ingame
  43.         text "Save Game:"
  44.         style WINDOW_STYLE_EMPTY    
  45.         rect 25 20 165 20
  46.         textalign 0
  47.         textstyle 6
  48.         textalignx 5      
  49.         textaligny 15
  50.         textscale .4
  51.         forecolor .66 1 0 1
  52.         visible 1 
  53.         decoration
  54.         }
  55.     itemDef {
  56.         name savedgames
  57.         rect 25 40 260 180
  58.         type ITEM_TYPE_LISTBOX
  59.         style WINDOW_STYLE_FILLED
  60.         elementtype LISTBOX_TEXT
  61.         elementwidth 150
  62.         elementheight 18
  63.         feeder FEEDER_SAVEABLE_GAMES
  64.         backcolor .66 1 0 .1
  65.         border 1
  66.         bordercolor .66 1 0 1
  67.         forecolor 1 1 1 1
  68.     outlinecolor .66 1 0 1
  69.         visible 1
  70.         textscale .25
  71.         textstyle 6
  72.         mouseenter { setitemcolor savedgames bordercolor 1 1 1 1 ; }
  73.         mouseexit { setitemcolor savedgames bordercolor .66 1 0 1 ; }
  74.         doubleClick { uiScript SaveGame; uiScript closeingame; }
  75.  
  76.     }
  77. //Buttons//
  78. itemDef {
  79.     name okbar
  80.     group ingame
  81.     style WINDOW_STYLE_FILLED
  82.     rect 70 235 65 20
  83.     backcolor .66 1 0 .7  
  84.     visible 0 
  85. }
  86. itemDef {
  87.     name brace        
  88.     group ingame
  89.     style 3
  90.     rect 61 232 24 24
  91.     background "ui/sidrial/sub/brace.tga"
  92.     backcolor 0 0 0 0
  93.        forecolor 1 1 1 1
  94.        visible 1
  95.     decoration    
  96. }
  97. itemDef {
  98.     name brace    
  99.     group ingame
  100.     style 3
  101.     rect 124 232 24 24
  102.     background "ui/sidrial/sub/brace_right.tga"
  103.     backcolor 0 0 0 0
  104.        forecolor 1 1 1 1
  105.        visible 1
  106.     decoration    
  107. }
  108.  itemDef {
  109.     name ok
  110.     group ingame
  111.     text "Save"
  112.     type 1
  113.     style WINDOW_STYLE_EMPTY
  114.     rect 70 235 65 20
  115.     textalign 1    
  116.     textstyle 6
  117.     textalignx 33      
  118.     textaligny 14
  119.     textscale .3
  120.     forecolor .66 1 0 1
  121.     visible 1 
  122.     action { uiScript SaveGame; uiScript closeingame; }
  123.     mouseEnter { transition okbar 70 245 65 0 70 235 65 20 20 5 ; }
  124.     mouseExit { transition okbar 70 235 65 20 70 245 65 0 20 5 ; }
  125.     }
  126. itemDef {
  127.     name cancelbar
  128.     group ingame
  129.     style WINDOW_STYLE_FILLED
  130.     rect 160 235 65 20
  131.     backcolor .66 1 0 .7  
  132.     visible 0 
  133. }
  134. itemDef {
  135.     name brace        
  136.     group ingame
  137.     style 3
  138.     rect 151 232 24 24
  139.     background "ui/sidrial/sub/brace.tga"
  140.     backcolor 0 0 0 0
  141.        forecolor 1 1 1 1
  142.        visible 1
  143.     decoration    
  144. }
  145. itemDef {
  146.     name brace    
  147.     group ingame
  148.     style 3
  149.     rect 214 232 24 24
  150.     background "ui/sidrial/sub/brace_right.tga"
  151.     backcolor 0 0 0 0
  152.        forecolor 1 1 1 1
  153.        visible 1
  154.     decoration    
  155. }
  156.  itemDef {
  157.     name cancel
  158.     group ingame
  159.     text "Cancel"
  160.     type 1
  161.     style WINDOW_STYLE_EMPTY
  162.     rect 160 235 65 20
  163.     textalign 1    
  164.     textstyle 6
  165.     textalignx 33      
  166.     textaligny 14
  167.     textscale .3
  168.     forecolor .66 1 0 1
  169.     visible 1 
  170.     action { close ingame_save; open ingame_savec; }
  171.     mouseEnter { transition cancelbar 160 245 65 0 160 235 65 20 20 5 ; }
  172.     mouseExit { transition cancelbar 160 235 65 20 160 245 65 0 20 5 ; }
  173.     }
  174. //Corners                
  175. itemDef {
  176.           name corners    
  177.         style 3
  178.           rect 0 0 40 40
  179.          background "ui/sidrial/Popup/ULCorner.tga"
  180.         backcolor 0 0 0 0
  181.           forecolor 1 1 1 1
  182.           visible 1
  183.         decoration    
  184.     }
  185. itemDef {
  186.           name corners    
  187.         style 3
  188.           rect 270 0 40 40
  189.          background "ui/sidrial/Popup/URCorner.tga"
  190.         backcolor 0 0 0 0
  191.           forecolor 1 1 1 1
  192.           visible 1
  193.         decoration    
  194.     }
  195. itemDef {
  196.           name corners    
  197.         style 3
  198.           rect 0 235 40 40
  199.          background "ui/sidrial/Popup/BLCorner.tga"
  200.         backcolor 0 0 0 0
  201.           forecolor 1 1 1 1
  202.           visible 1
  203.         decoration    
  204.     }
  205. itemDef {
  206.           name corners    
  207.         style 3
  208.           rect 270 235 40 40
  209.          background "ui/sidrial/Popup/BRCorner.tga"
  210.         backcolor 0 0 0 0
  211.           forecolor 1 1 1 1
  212.           visible 1
  213.         decoration    
  214.     }
  215. }
  216. }
  217.