home *** CD-ROM | disk | FTP | other *** search
/ Micromanía 87 / CDMM87_1.ISO / Sidrial / data1.cab / Program_Files / sidrial0.pk3 / ui / ingame.menu < prev    next >
Encoding:
Text File  |  2002-01-13  |  6.4 KB  |  330 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 1.0                    // sets the fadeup alpha
  13.     fadeCycle 1                    // how often fade happens in milliseconds
  14.     fadeAmount 0.1                    // amount to adjust alpha per cycle
  15.  
  16.     shadowColor 0.1 0.1 0.1 0.25            // shadow color
  17.       }
  18.                                
  19.  
  20. \\ INGAME MENU \\
  21.  
  22.   menuDef {
  23.         name "ingame"
  24.         visible 1
  25.         fullScreen 0
  26.     outOfBoundsClick            // this closes the window if it gets a click out of the rectangle
  27.         rect 120 5 530 35
  28.     focusColor 1 1 1 1
  29.     disableColor .5 .5 .5 1
  30. onOpen {
  31.     hide litebar;
  32.     }
  33.  
  34.  
  35. //Main Bar//
  36. itemDef {
  37.     name mainbar
  38.     group ingame
  39.     style WINDOW_STYLE_FILLED
  40.     rect 100 6 70 24
  41.     backcolor .66 1 0 .7  
  42.     visible 0 
  43.     action { open ingame_main; close ingame; }
  44. }
  45. itemDef {
  46.     name brace        
  47.     group ingame
  48.     style 3
  49.     rect 82 1 34 34
  50.     background "ui/sidrial/sub/brace.tga"
  51.     backcolor 0 0 0 0
  52.        forecolor 1 1 1 1
  53.        visible 1
  54.     decoration    
  55.     action { open ingame_main; close ingame; }
  56. }
  57. itemDef {
  58.     name brace    
  59.     group ingame
  60.     style 3
  61.     rect 152 1 34 34
  62.     background "ui/sidrial/sub/brace_right.tga"
  63.     backcolor 0 0 0 0
  64.        forecolor 1 1 1 1
  65.        visible 1
  66.     decoration    
  67.     action { open ingame_main; close ingame;}
  68. }
  69.  itemDef {
  70.      name main
  71.      group ingame
  72.      text "Main"
  73.      type 1
  74.      style WINDOW_STYLE_FILLED
  75.      rect 100 6 70 24
  76.      textalign 1    
  77.      textstyle 6
  78.      textalignx 35      
  79.      textaligny 17
  80.      textscale .25
  81.      forecolor .66 1 0 1
  82.      visible 1 
  83.      action { open ingame_main; close ingame; hide litebar;}
  84.      mouseEnter { transition mainbar 100 18 70 0 100 6 70 24 20 5 ; }
  85.      mouseExit { transition mainbar 100 6 70 24 100 18 70 0 20 5 ; }
  86. }
  87. //Team Bar//
  88. itemDef {
  89.     name teambar
  90.     group ingame
  91.     style WINDOW_STYLE_FILLED
  92.     rect 183 6 70 24
  93.     backcolor .66 1 0 .7  
  94.     visible 0 
  95. }
  96. itemDef {
  97.     name team_litebar
  98.     group litebar
  99.     style WINDOW_STYLE_FILLED
  100.     rect 183 6 70 24
  101.     backcolor .66 1 0 .7  
  102.     visible 0 
  103.     decoration
  104. }
  105. itemDef {
  106.     name brace        
  107.     group ingame
  108.     style 3
  109.     rect 165 1 34 34
  110.     background "ui/sidrial/sub/brace.tga"
  111.     backcolor 0 0 0 0
  112.        forecolor 1 1 1 1
  113.        visible 1
  114.     decoration    
  115. }
  116. itemDef {
  117.     name brace    
  118.     group ingame
  119.     style 3
  120.     rect 237 1 34 34
  121.     background "ui/sidrial/sub/brace_right.tga"
  122.     backcolor 0 0 0 0
  123.        forecolor 1 1 1 1
  124.        visible 1
  125.     decoration    
  126. }
  127.  itemDef {
  128.      name team
  129.      group ingame
  130.      text "Team"
  131.      type 1
  132.      style WINDOW_STYLE_FILLED
  133.      rect 183 6 70 24
  134.      textalign 1    
  135.      textstyle 6
  136.      textalignx 35      
  137.      textaligny 17
  138.      textscale .25
  139.      cvarTest "ui_singleplayeractive"
  140.      disableCvar { "1" }
  141.      forecolor .66 1 0 1
  142.      visible 1 
  143.      action { open ingame_team; hide litebar; show team_litebar; }
  144.      mouseEnter { transition teambar 183 18 70 0 183 6 70 24 20 5 ; }
  145.      mouseExit { transition teambar 183 6 70 24 183 18 70 0 20 5 ; }
  146. }
  147. // Vote BAR//
  148. itemDef {
  149.     name votebar
  150.     group ingame
  151.     style WINDOW_STYLE_FILLED
  152.     rect 267 6 70 24
  153.     backcolor .66 1 0 .7  
  154.     visible 0 
  155. }
  156. itemDef {
  157.     name vote_litebar
  158.     group litebar
  159.     style WINDOW_STYLE_FILLED
  160.     rect 267 6 70 24
  161.     backcolor .66 1 0 .7  
  162.     visible 0 
  163.     decoration
  164. }
  165. itemDef {
  166.     name brace        
  167.     group ingame
  168.     style 3
  169.     rect 249 1 34 34
  170.     background "ui/sidrial/sub/brace.tga"
  171.     backcolor 0 0 0 0
  172.        forecolor 1 1 1 1
  173.        visible 1
  174.     decoration    
  175. }
  176. itemDef {
  177.     name brace    
  178.     group ingame
  179.     style 3
  180.     rect 321 1 34 34
  181.     background "ui/sidrial/sub/brace_right.tga"
  182.     backcolor 0 0 0 0
  183.        forecolor 1 1 1 1
  184.        visible 1
  185.     decoration    
  186. }
  187.  itemDef {
  188.      name vote
  189.      group ingame
  190.      text "Vote"
  191.      type 1
  192.      style WINDOW_STYLE_FILLED
  193.      rect 267 6 70 24
  194.      textalign 1    
  195.      textstyle 6
  196.      textalignx 35      
  197.      textaligny 17
  198.      textscale .25
  199.      cvarTest "ui_singleplayeractive"
  200.      disableCvar { "1" }
  201.      forecolor .66 1 0 1
  202.      visible 1 
  203.      action { open ingame_vote; hide litebar; show vote_litebar; }
  204.      mouseEnter { transition votebar 267 18 70 0 267 6 70 24 20 5 ; }
  205.      mouseExit { transition votebar 267 6 70 24 267 18 70 0 20 5 ; }
  206. }
  207.  
  208. // VoteCall BAR//
  209. itemDef {
  210.     name votecallbar
  211.     group ingame
  212.     style WINDOW_STYLE_FILLED
  213.     rect 351 6 70 24
  214.     backcolor .66 1 0 .7  
  215.     visible 0 
  216. }
  217. itemDef {
  218.     name votecall_litebar
  219.     group litebar
  220.     style WINDOW_STYLE_FILLED
  221.     rect 351 6 70 24
  222.     backcolor .66 1 0 .7  
  223.     visible 0 
  224.     decoration
  225. }
  226. itemDef {
  227.     name brace        
  228.     group ingame
  229.     style 3
  230.     rect 333 1 34 34
  231.     background "ui/sidrial/sub/brace.tga"
  232.     backcolor 0 0 0 0
  233.        forecolor 1 1 1 1
  234.        visible 1
  235.     decoration    
  236. }
  237. itemDef {
  238.     name brace    
  239.     group ingame
  240.     style 3
  241.     rect 405 1 34 34
  242.     background "ui/sidrial/sub/brace_right.tga"
  243.     backcolor 0 0 0 0
  244.        forecolor 1 1 1 1
  245.        visible 1
  246.     decoration    
  247. }
  248.  itemDef {
  249.      name callvote
  250.      group ingame
  251.      text "Call Vote"
  252.      type 1
  253.      style WINDOW_STYLE_FILLED
  254.      rect 351 6 70 24
  255.      textalign 1    
  256.      textstyle 6
  257.      textalignx 35      
  258.      textaligny 17
  259.      textscale .25
  260.      cvarTest "ui_singleplayeractive"
  261.      disableCvar { "1" }
  262.      forecolor .66 1 0 1
  263.      visible 1 
  264.      action { open ingame_callvote; hide litebar; show votecall_litebar; }
  265.      mouseEnter { transition votecallbar 351 18 70 0 351 6 70 24 20 5 ; }
  266.      mouseExit { transition votecallbar 351 6 70 24 351 18 70 0 20 5 ; }
  267. }
  268. // Server Info//
  269. itemDef {
  270.     name infobar
  271.     group ingame
  272.     style WINDOW_STYLE_FILLED
  273.     rect 435 6 70 24
  274.     backcolor .66 1 0 .7  
  275.     visible 0 
  276. }
  277. itemDef {
  278.     name info_litebar
  279.     group litebar
  280.     style WINDOW_STYLE_FILLED
  281.     rect 435 6 70 24
  282.     backcolor .66 1 0 .7  
  283.     visible 0 
  284.     decoration
  285. }
  286. itemDef {
  287.     name brace        
  288.     group ingame
  289.     style 3
  290.     rect 417 1 34 34
  291.     background "ui/sidrial/sub/brace.tga"
  292.     backcolor 0 0 0 0
  293.        forecolor 1 1 1 1
  294.        visible 1
  295.     decoration    
  296. }
  297. itemDef {
  298.     name brace    
  299.     group ingame
  300.     style 3
  301.     rect 489 1 34 34
  302.     background "ui/sidrial/sub/brace_right.tga"
  303.     backcolor 0 0 0 0
  304.        forecolor 1 1 1 1
  305.        visible 1
  306.     decoration    
  307. }
  308.  itemDef {
  309.      name serverinfo
  310.      group ingame
  311.      text "About"
  312.      type 1
  313.      style WINDOW_STYLE_FILLED
  314.      rect 435 6 70 24
  315.      textalign 1    
  316.      textstyle 6
  317.      textalignx 35      
  318.      textaligny 17
  319.      textscale .25
  320.      cvarTest "ui_singleplayeractive"
  321.      disableCvar { "1" }
  322.      forecolor .66 1 0 1
  323.      visible 1 
  324.      action { open ingame_serverinfo; hide litebar; show info_litebar; }
  325.      mouseEnter { transition infobar 435 18 70 0 435 6 70 24 20 5 ; }
  326.      mouseExit { transition infobar 435 6 70 24 435 18 70 0 20 5 ; }
  327. }
  328. }
  329.  
  330. }