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

  1. #include "ui/menudef.h"
  2.  
  3. {
  4. \\ SETUP MENU \\
  5.  
  6. menuDef {
  7.         name "ingame_configsystem"
  8.         visible 0
  9.         fullscreen 0
  10.         rect 185 55 455 425
  11.         focusColor 1 1 1 1
  12.         style 1
  13.         border 1
  14.     onOpen { 
  15.         play "sound/UI/menu1.wav" ;
  16.         hide grpSystem ; 
  17.         hide litebar;
  18.         show graphics_litebar;
  19.         show graphics;
  20.     }
  21.     onEsc { close ingame_configsystem ; close ingame_confignav ; open ingame_main }
  22. //Buttons//
  23. //Graphics Button//
  24. itemDef {
  25.     name graphicsbar
  26.     group grpSystembutton
  27.     style WINDOW_STYLE_FILLED
  28.     rect 150 335 75 20
  29.     backcolor .66 1 0 .7  
  30.     visible 0 
  31.     action { play "sound/UI/menu3.wav" ; 
  32.     hide grpSystem ;
  33.     hide litebar;
  34.     show graphics_litebar;
  35.     show graphics }
  36. }
  37. itemDef {
  38.     name graphics_litebar
  39.     group litebar
  40.     style WINDOW_STYLE_FILLED
  41.     rect 150 335 75 20
  42.     backcolor .66 1 0 .7  
  43.     visible 0 
  44.     decoration
  45. }
  46. itemDef {
  47.     name ctr_graphics
  48.     group grpSystembutton
  49.     style 3
  50.     rect 137 332 26 26 
  51.     background "ui/sidrial/sub/brace.tga"
  52.     backcolor 0 0 0 0
  53.        forecolor 1 1 1 1
  54.        visible 1
  55.     decoration    
  56.     action { play "sound/UI/menu3.wav" ; 
  57.     hide grpSystem ;
  58.     hide litebar;
  59.     show graphics_litebar;
  60.     show graphics }
  61. }
  62. itemDef {
  63.     name ctr_graphics
  64.     group grpSystembutton
  65.     style 3
  66.     rect 212 332 26 26 
  67.     background "ui/sidrial/sub/brace_right.tga"
  68.     backcolor 0 0 0 0
  69.        forecolor 1 1 1 1
  70.        visible 1
  71.     decoration    
  72.     action { play "sound/UI/menu3.wav" ; 
  73.     hide grpSystem ;
  74.     hide litebar;
  75.     show graphics_litebar;
  76.     show graphics }
  77. }
  78. itemDef {
  79.     name ctr_graphics
  80.     group grpSystembutton
  81.     text "Graphics"
  82.     type 1
  83.     textscale .25
  84.     textstyle 6
  85.     style WINDOW_STYLE_FILLED
  86.     rect 150 335 75 20
  87.     textalign 1
  88.     textalignx 39
  89.     textaligny 15
  90.     forecolor .66 1 0 1
  91.     visible 1
  92.     action { play "sound/UI/menu3.wav" ; 
  93.     hide grpSystem ;
  94.     hide litebar;
  95.     show graphics_litebar;
  96.     show graphics }
  97.     mouseEnter { show message_graphics; transition graphicsbar 150 345 75 0 150 335 75 20 20 5 } 
  98.     mouseExit { hide message_graphics; transition graphicsbar 150 335 75 20 150 345 75 0 20 5} 
  99. }
  100. //Other Button//
  101. itemDef {
  102.     name otherbar
  103.     group grpSystembutton
  104.     style WINDOW_STYLE_FILLED
  105.     rect 240 335 75 20
  106.     backcolor .66 1 0 .7  
  107.     visible 0 
  108.     action { play "sound/UI/menu3.wav" ; 
  109.     hide grpSystem ; 
  110.     hide litebar;
  111.     show other_litebar;
  112.     show other }
  113. }
  114. itemDef {
  115.     name other_litebar
  116.     group litebar
  117.     style WINDOW_STYLE_FILLED
  118.     rect 240 335 75 20
  119.     backcolor .66 1 0 .7  
  120.     visible 0 
  121.     decoration
  122. }
  123. itemDef {
  124.     name ctr_other    
  125.     group grpSystembutton
  126.     style 3
  127.     rect 227 332 26 26 
  128.     background "ui/sidrial/sub/brace.tga"
  129.     backcolor 0 0 0 0
  130.        forecolor 1 1 1 1
  131.        visible 1
  132.     decoration    
  133.     action { play "sound/UI/menu3.wav" ; 
  134.     hide grpSystem ; 
  135.     hide litebar;
  136.     show other_litebar;
  137.     show other }
  138. }
  139. itemDef {
  140.     name ctr_other    
  141.     group grpSystembutton
  142.     style 3
  143.     rect 302 332 26 26 
  144.     background "ui/sidrial/sub/brace_right.tga"
  145.     backcolor 0 0 0 0
  146.        forecolor 1 1 1 1
  147.        visible 1
  148.     decoration    
  149.     action { play "sound/UI/menu3.wav" ; 
  150.     hide grpSystem ; 
  151.     hide litebar;
  152.     show other_litebar;
  153.     show other }
  154. }
  155. itemDef {
  156.     name ctr_other    
  157.     group grpSystembutton
  158.     text "Other"
  159.     type 1
  160.     textscale .25
  161.     textstyle 6
  162.     style WINDOW_STYLE_FILLED
  163.     rect 240 335 75 20
  164.     textalign 1
  165.     textalignx 39
  166.     textaligny 15
  167.     forecolor .66 1 0 1
  168.     visible 1
  169.     action { play "sound/UI/menu3.wav" ; 
  170.     hide grpSystem ; 
  171.     hide litebar;
  172.     show other_litebar;
  173.     show other }
  174.     mouseEnter { show message_other; transition otherbar 240 345 75 0 240 335 75 20 20 5 } 
  175.     mouseExit { hide message_other; transition otherbar 240 335 75 20 240 345 75 0 20 5} 
  176. }
  177.  
  178. //System//
  179.     itemDef {
  180.         name graphics                
  181.         group grpSystem
  182.         text "Quality:"
  183.            type ITEM_TYPE_MULTI    
  184.         cvar "ui_glCustom"
  185.         cvarFloatList { "High Quality" 0 "Normal" 1 "Fast" 2 "Fastest" 3 "Custom" 4 }
  186.         rect 99 50 256 15
  187.            textalign ITEM_ALIGN_RIGHT
  188.            textalignx 128 
  189.            textaligny 12
  190.         textscale .25         
  191.            forecolor .66 1 0 1
  192.            visible 0 
  193.         mouseenter { show message_click; }
  194.         mouseexit { hide message_click; }
  195.         action { uiScript update "ui_glCustom" }
  196.     }
  197.     itemDef {
  198.           name graphics
  199.         group grpSystem
  200.            type ITEM_TYPE_EDITFIELD
  201.         text "GL Driver:"
  202.         cvar "r_gldriver"
  203.         rect 99 65 256 15
  204.            textalign ITEM_ALIGN_RIGHT
  205.           textalignx 128
  206.            textaligny 12
  207.         textscale .25        
  208.            forecolor .66 1 0 1
  209.            visible 0 
  210.         decoration
  211.     }
  212.     itemDef {
  213.            name graphics
  214.         group grpSystem
  215.               type ITEM_TYPE_YESNO
  216.         text "GL Extensions:"
  217.         cvar "r_allowExtensions"
  218.         rect 99 80 256 15
  219.               textalign ITEM_ALIGN_RIGHT
  220.               textalignx 128
  221.               textaligny 12
  222.         textscale .25       
  223.               forecolor .66 1 0 1
  224.               visible 0
  225.         mouseenter { show message_click; }
  226.         mouseexit { hide message_click; }
  227.         action { uiScript glCustom }
  228.     }
  229.     itemDef {
  230.            name graphics
  231.         group grpSystem
  232.            type ITEM_TYPE_MULTI    
  233.         text "Video Mode:"
  234.         cvar "r_mode"
  235.         cvarFloatList { "320*240" 0 "400*300" 1 "512*384" 2 "640*480" 3 "800*600" 4 "960*720" 5 "1024*768" 6 "1152*864" 7 "1280*1024" 8 "1600*1200" 9 "2048*1536" 10 "856*480 Wide Screen" 11 }
  236.         rect 99 95 256 15
  237.               textalign ITEM_ALIGN_RIGHT
  238.               textalignx 128
  239.               textaligny 12
  240.         textscale .25        
  241.               forecolor .66 1 0 1
  242.               visible 0 
  243.         mouseenter { show message_click; }
  244.         mouseexit { hide message_click; }
  245.         action { uiScript glCustom }
  246.     }
  247.     itemDef {
  248.            name graphics
  249.         group grpSystem
  250.            type ITEM_TYPE_MULTI
  251.         text "Color Depth:"
  252.         cvar "r_colorbits"
  253.         cvarFloatList { "Desktop Default" 0 "16-bit" 16 "32-bit" 32 }
  254.         rect 99 110 256 15
  255.               textalign ITEM_ALIGN_RIGHT
  256.               textalignx 128
  257.               textaligny 12
  258.         textscale .25       
  259.               forecolor .66 1 0 1
  260.               visible 0 
  261.         mouseenter { show message_click; }
  262.         mouseexit { hide message_click; }
  263.         action { uiScript glCustom ; uiScript update "r_colorbits" }
  264.     }
  265.     itemDef {
  266.            name graphics
  267.         group grpSystem
  268.               type ITEM_TYPE_YESNO
  269.         text "Fullscreen:"
  270.         cvar "r_fullscreen"
  271.         rect 99 125 256 15
  272.               textalign ITEM_ALIGN_RIGHT
  273.               textalignx 128
  274.               textaligny 12
  275.         textscale .25        
  276.               forecolor .66 1 0 1
  277.               visible 0 
  278.         mouseenter { show message_click; }
  279.         mouseexit { hide message_click; }
  280.         action { uiScript glCustom }
  281.     }
  282.     itemDef {
  283.               name graphics
  284.         group grpSystem
  285.               type ITEM_TYPE_MULTI            
  286.         text "Lighting:"
  287.         cvar "r_vertexlight"
  288.         cvarFloatList { "Light Map (high)" 0 "Vertex (low)" 1  }
  289.         rect 99 140 256 15
  290.               textalign ITEM_ALIGN_RIGHT
  291.               textalignx 128
  292.               textaligny 12
  293.         textscale .25        
  294.               forecolor .66 1 0 1
  295.               visible 0 
  296.         mouseenter { show message_click; }
  297.         mouseexit { hide message_click; }
  298.         action { uiScript glCustom }
  299.     }
  300.     itemDef {
  301.            name graphics
  302.         group grpSystem
  303.             type ITEM_TYPE_MULTI
  304.         text "Geometric Detail:"
  305.         cvar "r_lodbias"
  306.         cvarFloatList { "High" 0 "Medium" 1 "Low" 2 }
  307.         rect 99 155 256 15
  308.               textalign ITEM_ALIGN_RIGHT
  309.               textalignx 128
  310.               textaligny 12
  311.         textscale .25        
  312.               forecolor .66 1 0 1
  313.               visible 0 
  314.         mouseenter { show message_click; }
  315.         mouseexit { hide message_click; }
  316.         action { uiScript glCustom ; uiScript update "r_lodbias" }
  317.     }
  318.     itemDef {
  319.           name graphics
  320.         group grpSystem
  321.            type ITEM_TYPE_MULTI
  322.         text "Texture Detail:"
  323.         cvar "r_picmip"
  324.         cvarFloatList { "Low" 2 "Normal" 1 "High" 0 }
  325.         rect 99 170 256 15
  326.               textalign ITEM_ALIGN_RIGHT
  327.               textalignx 128
  328.               textaligny 12
  329.         textscale .25        
  330.               forecolor .66 1 0 1
  331.               visible 0 
  332.         mouseenter { show message_click; }
  333.         mouseexit { hide message_click; }
  334.         action { uiScript glCustom }
  335.     }
  336.     itemDef {
  337.               name graphics
  338.         group grpSystem
  339.               type ITEM_TYPE_MULTI
  340.         text "Texture Quality:"
  341.         cvar "r_texturebits"
  342.         cvarFloatList { "Default" 0 "16-bit" 16 "32-bit" 32 }
  343.         rect 99 185 256 15
  344.               textalign ITEM_ALIGN_RIGHT
  345.               textalignx 128
  346.               textaligny 12
  347.         textscale .25        
  348.               forecolor .66 1 0 1
  349.               visible 0 
  350.         mouseenter { show message_click; }
  351.         mouseexit { hide message_click; }
  352.        }
  353.     itemDef {
  354.               name graphics
  355.         group grpSystem
  356.               type ITEM_TYPE_MULTI
  357.         text "Texture Filter:"
  358.         cvar "r_texturemode"
  359.         cvarStrList { "Bilinear", "GL_LINEAR_MIPMAP_NEAREST", "Trilinear", "GL_LINEAR_MIPMAP_LINEAR"  }
  360.         rect 99 200 256 15
  361.               textalign ITEM_ALIGN_RIGHT
  362.               textalignx 128
  363.               textaligny 12
  364.         textscale .25        
  365.               forecolor .66 1 0 1
  366.               visible 0 
  367.         mouseenter { show message_click; }
  368.         mouseexit { hide message_click; }
  369.         action { uiScript glCustom }
  370.         }
  371.     itemDef {
  372.               name graphics
  373.         group grpSystem
  374.               type ITEM_TYPE_YESNO
  375.         text "Compress Textures:"
  376.         cvar "r_ext_compressed_textures"
  377.         rect 99 215 256 15
  378.               textalign ITEM_ALIGN_RIGHT
  379.               textalignx 128
  380.               textaligny 12
  381.         textscale .25        
  382.               forecolor .66 1 0 1
  383.               visible 0 
  384.         mouseenter { show message_click; }
  385.         mouseexit { hide message_click; }
  386.         action { uiScript glCustom }
  387.         }
  388. //Graphics Apply Button//
  389. itemDef {
  390.     name applybar
  391.     group grpSystem
  392.     style WINDOW_STYLE_FILLED
  393.     rect 195 305 75 20
  394.     backcolor .66 1 0 .7  
  395.     visible 0 
  396.     action { play "sound/UI/menu3.wav" ; 
  397.     open vid_restart_popmenu }
  398. }
  399. itemDef {
  400.     name graphics
  401.     group grpSystem
  402.     style 3
  403.     rect 181 302 26 26 
  404.     background "ui/sidrial/sub/brace.tga"
  405.     backcolor 0 0 0 0
  406.        forecolor 1 1 1 1
  407.        visible 1
  408.     decoration    
  409.     action { play "sound/UI/menu3.wav" ; 
  410.     open vid_restart_popmenu }
  411. }
  412. itemDef {
  413.     name graphics
  414.     group grpSystem
  415.     style 3
  416.     rect 258 302 26 26 
  417.     background "ui/sidrial/sub/brace_right.tga"
  418.     backcolor 0 0 0 0
  419.        forecolor 1 1 1 1
  420.        visible 1
  421.     decoration    
  422.     action { play "sound/UI/menu3.wav" ; 
  423.     open vid_restart_popmenu }
  424. }
  425. itemDef {
  426.     name graphics
  427.     text "Apply"
  428.     type 1
  429.     textscale .25
  430.     textstyle 6
  431.     group grpSystem
  432.     style WINDOW_STYLE_FILLED
  433.     rect 195 305 75 20
  434.     textalign 1
  435.     textalignx 39
  436.     textaligny 15
  437.     forecolor .66 1 0 1
  438.     visible 1
  439.     action { play "sound/UI/menu3.wav" ; 
  440.     open vid_restart_popmenu }
  441.     mouseEnter { show message_apply; transition applybar 195 315 75 0 195 305 75 20 20 5 } 
  442.     mouseExit { hide message_apply; transition applybar 195 305 75 20 195 315 75 0 20 5} 
  443. }
  444. //Other//
  445. itemDef {
  446.           name other            
  447.     group grpSystem
  448.           style 1
  449.     text "Display"
  450.     rect 163 50 128 20
  451.           textalign ITEM_ALIGN_CENTER
  452.           textalignx 64 
  453.           textaligny 15
  454.     textscale .35         
  455.           forecolor .4 .4 .65 1
  456.           visible 0 
  457.     decoration
  458.         }
  459.     
  460.     itemDef {
  461.               name other            
  462.         group grpSystem
  463.               type ITEM_TYPE_SLIDER
  464.         text "Brightness:"
  465.         cvarfloat "r_gamma" 1 0.5 2
  466.          rect 99 75 256 20
  467.               textalign ITEM_ALIGN_RIGHT
  468.               textalignx 128 
  469.               textaligny 15
  470.         textscale .25        
  471.               forecolor .66 1 0 1
  472.               visible 0 
  473.             mouseenter { show slider_message; }
  474.             mouseexit { hide slider_message; }
  475.             }
  476.  
  477.     itemDef {
  478.               name other
  479.         group grpSystem
  480.               type ITEM_TYPE_SLIDER
  481.         text "Screen Size:"
  482.         cvarfloat "cg_viewsize" 100 30 100
  483.         rect 99 100 256 20
  484.               textalign ITEM_ALIGN_RIGHT
  485.               textalignx 128
  486.               textaligny 15
  487.         textscale .25        
  488.               forecolor .66 1 0 1
  489.               visible 0 
  490.             mouseenter { show slider_message; }
  491.             mouseexit { hide slider_message; }
  492.             }
  493.  
  494. itemDef {
  495.           name other            
  496.     group grpSystem
  497.           style 1
  498.     text "Sound"
  499.     rect 163 125 128 20
  500.           textalign ITEM_ALIGN_CENTER
  501.           textalignx 64 
  502.           textaligny 15
  503.     textscale .35
  504.           forecolor .4 .4 .65 1
  505.           visible 0 
  506.     decoration
  507.         }
  508.  
  509.     itemDef {
  510.               name other
  511.         group grpSystem
  512.               type ITEM_TYPE_SLIDER
  513.         text "Effects Volume:"
  514.         cvarfloat "s_volume" 0.7 0 1
  515.         rect 99 150 256 20
  516.               textalign ITEM_ALIGN_RIGHT
  517.               textalignx 128
  518.               textaligny 15
  519.         textscale .25       
  520.               forecolor .66 1 0 1
  521.               visible 0 
  522.             mouseenter { show slider_message; }
  523.             mouseexit { hide slider_message; }
  524.             }
  525.     
  526.     itemDef {
  527.               name other
  528.         group grpSystem
  529.               type ITEM_TYPE_SLIDER
  530.         text "Music Volume:"
  531.         cvarfloat "s_musicvolume" 0.25 0 1
  532.         rect 99 175 256 20
  533.               textalign ITEM_ALIGN_RIGHT
  534.               textalignx 128
  535.               textaligny 15
  536.         textscale .25        
  537.               forecolor .66 1 0 1
  538.               visible 0 
  539.             mouseenter { show slider_message; }
  540.             mouseexit { hide slider_message; }
  541.             }
  542.  
  543.     itemDef {
  544.               name other
  545.         group grpSystem
  546.               type ITEM_TYPE_MULTI
  547.         text "Sound Quality:"
  548.         cvar "s_khz"
  549.         cvarFloatList { "22 khz (high)" 22 "11 khz (low)" 11 }
  550.         rect 99 200 256 20
  551.               textalign ITEM_ALIGN_RIGHT
  552.               textalignx 128
  553.               textaligny 15
  554.         textscale .25        
  555.               forecolor .66 1 0 1
  556.               visible 0 
  557.             mouseenter { show message_click; }
  558.             mouseexit { hide message_click; }
  559.             }
  560.  
  561.     itemDef {
  562.               name other
  563.         group grpSystem
  564.               type ITEM_TYPE_YESNO
  565.         text "Doppler Sound:"
  566.         cvar "s_doppler"
  567.         rect 99 225 256 20
  568.               textalign ITEM_ALIGN_RIGHT
  569.               textalignx 128
  570.               textaligny 15
  571.         textscale .25        
  572.               forecolor .66 1 0 1
  573.               visible 0 
  574.             mouseenter { show yesno_message; }
  575.             mouseexit { hide yesno_message; }
  576.             }
  577.  
  578.  
  579.  
  580. itemDef {
  581.           name other            
  582.     group grpSystem
  583.           style 1
  584.     text "Network"
  585.     rect 163 250 128 20
  586.           textalign 1
  587.           textalignx 64 
  588.           textaligny 15
  589.     textscale .35        
  590.           forecolor .4 .4 .65 1
  591.           visible 0 
  592.     decoration
  593.         }
  594.  
  595.     itemDef {
  596.               name other
  597.         group grpSystem
  598.               type ITEM_TYPE_MULTI
  599.         text "Net Data Rate:"
  600.         cvar "rate"
  601.         cvarFloatList { "<=28.8k" 2500 "33.6k" 3000 "56k" 4000 "ISDN" 5000 "LAN/CABLE/xDSl" 25000  }
  602.         rect 99 275 256 20
  603.               textalign ITEM_ALIGN_RIGHT
  604.               textalignx 128
  605.               textaligny 15
  606.         textscale .25        
  607.               forecolor .66 1 0 1
  608.               visible 0 
  609.             mouseenter { show message_click; }
  610.             mouseexit { hide message_click; }
  611.             action { uiScript update ui_setRate }
  612.            }
  613. //Messages
  614. itemDef {
  615.     name message_click
  616.     group grpmessage
  617.     style 0 
  618.     rect 135 365 128 30 
  619.     textalign 1
  620.     textstyle 6
  621.     textalignx 0
  622.     textaligny 25
  623.     textscale .3
  624.     text "Click to Toggle Option"
  625.     forecolor 1 1 1 1
  626.     decoration 
  627.     visible 0
  628.     }
  629. itemDef {
  630.     name yesno_message
  631.     rect 135 365 128 30 
  632.     text "Select the Item to Toggle to Yes or No"      
  633.     forecolor 1 1 1 1
  634.     textstyle 6
  635.     textscale .3
  636.     textalignx 1
  637.     textalign 1
  638.     textaligny 25
  639.     visible 0
  640.        decoration 
  641.     }
  642. itemDef {
  643.     name slider_message
  644.     rect 135 365 128 30 
  645.     text "Drag the Slider to Increase and Decrease"      
  646.     forecolor 1 1 1 1
  647.     textstyle 6
  648.     textscale .3
  649.     textalignx 1
  650.     textalign 1
  651.     textaligny 25
  652.     visible 0
  653.     decoration 
  654.     }
  655. //Buttons
  656. itemDef {
  657.     name message_apply
  658.     group grpmessage
  659.     style 0 
  660.     rect 135 365 128 30 
  661.     textalign 1
  662.     textstyle 6
  663.     textalignx 0
  664.     textaligny 25
  665.     textscale .3
  666.     text "Click to Apply System Changes"
  667.     forecolor 1 1 1 1
  668.     decoration 
  669.     visible 0
  670.     }
  671. itemDef {
  672.     name message_graphics
  673.     group grpmessage
  674.     style 0 
  675.     rect 135 365 128 30 
  676.     textalign 1
  677.     textstyle 6
  678.     textalignx 0
  679.     textaligny 25
  680.     textscale .3
  681.     text "Click to Edit Graphics Settings"
  682.     forecolor 1 1 1 1
  683.     decoration 
  684.     visible 0
  685.     }
  686. itemDef {
  687.     name message_other
  688.     group grpmessage
  689.     style 0 
  690.     rect 135 365 128 30 
  691.     textalign 1
  692.     textstyle 6
  693.     textalignx 0
  694.     textaligny 25
  695.     textscale .3
  696.     text "Click to Edit Other Settings"
  697.     forecolor 1 1 1 1
  698.     decoration 
  699.     visible 0
  700.     }
  701. }
  702.  
  703.  
  704. }
  705.