home *** CD-ROM | disk | FTP | other *** search
/ Micromanía 87 / CDMM87_1.ISO / Sidrial / data1.cab / Program_Files / sidrial0.pk3 / ui / sidrial_multiplayer.menu < prev    next >
Encoding:
Text File  |  2002-01-13  |  19.4 KB  |  973 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.  
  20.  
  21.  
  22.  
  23. menuDef {
  24.         name "multiplayer"
  25.         style 3
  26.         background "blank"
  27.         fullScreen MENU_TRUE 
  28.         rect 0 0 640 480                // Size and position of the menu
  29.         visible MENU_TRUE                // Visible on open
  30.         focusColor 1 1 1 1            // Menu focus color for text and items
  31.  
  32.         onOpen { 
  33.             setitemcolor fadebox backcolor 0 0 0 1 ;
  34.             playlooped "music/SidrialMusic_ui.wav" ;
  35.             fadeout fadebox ;
  36.             show format ;
  37.             uiScript stopRefresh ;
  38.         }
  39.     onEsc { uiScript closeJoin }
  40.  
  41.     itemDef {
  42.           name mappreview
  43.          ownerdraw UI_NETMAPCINEMATIC
  44.           rect 0 0 640 480
  45.           backcolor 1 1 1 .25
  46.         decoration
  47.           visible 1 
  48.     }
  49.         
  50.     itemDef {
  51.           name format                    // Layout
  52.         style 3
  53.          background "filter"
  54.         backcolor .25 .5 .75 .75
  55.         rect 0 0 640 480
  56.         visible 0    
  57.         decoration
  58.        }        
  59.     itemDef {                    
  60.         name format
  61.         style 3
  62.           rect 0 0 640 480 
  63.          background "ui/sidrial/sub/white_bar.tga"
  64.         backcolor .66 1 0 .1
  65.           forecolor 1 1 1 1
  66.           visible 0
  67.         decoration
  68.        }
  69.     itemDef {
  70.           name format                    // Layout
  71.         style 3
  72.          background "sub_swooshb"
  73.         backcolor .66 1 0 .1
  74.           forecolor 1 1 1 1
  75.         rect 0 0 640 480
  76.         visible 0    
  77.         decoration
  78.        }
  79.     itemDef {
  80.           name multiplayer    
  81.           group icon
  82.           style 3
  83.           rect 580 40 40 40 
  84.         background "ui/sidrial/icon_multiplayer.tga"
  85.            backcolor .66 1 0 .1
  86.           forecolor 1 1 1 1
  87.         visible 1
  88.           decoration
  89.        }
  90.     itemDef {
  91.         name subtitle
  92.         group words
  93.         type 0
  94.           text "Join Server"
  95.           style 0    
  96.         textstyle 6
  97.           rect 500 40 80 40
  98.            forecolor .66 1 0 1
  99.         textalignx 75
  100.         textaligny 27
  101.           textalign 2
  102.         textscale .3        
  103.           visible 1 
  104.         decoration
  105.     }
  106.     itemDef {
  107.         name title
  108.         style 3
  109.         rect 10 5 256 32
  110.         background "ui/sidrial/text_multiplayer.tga"
  111.         backcolor .66 1 0 .1 
  112.         forecolor 1 1 1 1
  113.         visible 1
  114.         decoration
  115.     }
  116.     itemDef {
  117.         name backbar
  118.         group Bar
  119.           style 2
  120.           rect 20 420 210 40
  121.           backcolor .66 1 0 .7 
  122.         border 0
  123.         visible 0    
  124.         action { close multiplayer ; open main }
  125.         }
  126.     itemDef {
  127.           name back    
  128.           group icon
  129.           style 3
  130.           rect 15 420 40 40 
  131.         background "ui/sidrial/sub/icon_left.tga"
  132.            backcolor .66 1 0 .1
  133.           forecolor 1 1 1 1
  134.         visible 1
  135.           decoration
  136.         action { close multiplayer ; open main }
  137.        }
  138.     itemDef {
  139.         name back
  140.         group words
  141.         type 1
  142.           text "Back"
  143.           style 0    
  144.         textstyle 6
  145.           rect 15 420 150 40
  146.            forecolor .66 1 0 1
  147.         textalignx 45
  148.         textaligny 25
  149.           textalign 0
  150.         textscale .3        
  151.           visible 1     
  152.         mouseEnter { fadein message_back; transition backbar 20 440 196 0 20 420 196 40 20 5 ;}
  153.         mouseExit { fadeout message_back; transition backbar 20 420 196 40 20 440 196 0 20 5 ; }
  154.         action { close multiplayer ; open main }
  155.     }
  156.  
  157.     itemDef {
  158.         name continuebar
  159.         group continue
  160.           style 2
  161.           rect 405 420 -210 40
  162.           backcolor .66 1 0 .7
  163.         border 0
  164.         visible 0
  165.           action { close multiplayer; uiScript JoinServer }
  166.         }
  167.     itemDef {
  168.           name icon    
  169.           group continue
  170.           style 3
  171.           rect 585 420 40 40 
  172.         background "ui/sidrial/sub/icon_right.tga"
  173.            backcolor .66 1 0 .1
  174.           forecolor 1 1 1 1
  175.         visible 1
  176.           decoration
  177.           action { close multiplayer; uiScript JoinServer }
  178.        }
  179.     itemDef {
  180.         name continue
  181.         group words
  182.         type 1
  183.           text "Continue"
  184.           style 0    
  185.         textstyle 6
  186.           rect 485 420 150 40
  187.            forecolor .66 1 0 1
  188.         textalignx 15
  189.         textaligny 25
  190.           textalign 0
  191.         textscale .3        
  192.           visible 1     
  193.         mouseEnter { transition continuebar 405 440 -210 0 405 420 -210 40 20 5 ; fadein message_accept }   
  194.         mouseExit { transition continuebar 405 420 -210 40 405 440 -210 0 20 5 ; fadeout message_accept }  
  195.           action { close multiplayer; uiScript JoinServer }
  196.     }
  197. // DATE AND MESSAGE OF THE DAY    //
  198.  
  199. itemDef {
  200.     name datewindow
  201.     rect 10 380 265 25
  202.     style WINDOW_STYLE_FILLED    
  203.     border 1
  204.     bordercolor .66 1 0 1
  205.     backcolor .66 1 0 .1
  206.     visible 1
  207.     }
  208. itemDef {
  209.     name messagewindow
  210.     rect 275 380 355 25
  211.     style WINDOW_STYLE_FILLED    
  212.     border 1
  213.     bordercolor .66 1 0 1
  214.     backcolor .66 1 0 .1
  215.     visible 1
  216.     decoration
  217.     }
  218.  
  219.    itemDef {
  220.           name refreshdate
  221.         ownerdraw UI_SERVERREFRESHDATE
  222.           textscale .23
  223.           rect 13 380 265 25
  224.         textalign 0
  225.           textalignx 5        
  226.           textaligny 20
  227.           forecolor 1 1 1 1
  228.           visible 1
  229.         decoration 
  230.     }
  231.     /*
  232.    itemDef {
  233.           name messageoftheday
  234.         ownerdraw UI_SERVERMOTD
  235.           textscale .3
  236.         rect 275 380 355 25
  237.           forecolor 1 1 1 1
  238.           visible 1 
  239.         decoration
  240.     }*/
  241.  
  242. //ROWS//
  243. /*
  244. itemDef {
  245.     name horizontoalseparators
  246.     rect 10 172 604 20
  247.     style WINDOW_STYLE_FILLED
  248.     border 0
  249.     backcolor 0 0 .5 .75
  250.     visible 1
  251.     decoration
  252.   }
  253. itemDef {
  254.     name horizontoalseparators
  255.     rect 10 212 604 20
  256.     style WINDOW_STYLE_FILLED
  257.     border 0
  258.     backcolor 0 0 .5 .75
  259.     visible 1
  260.     decoration
  261.   }
  262. itemDef {
  263.     name horizontoalseparators
  264.     rect 10 252 604 20
  265.     style WINDOW_STYLE_FILLED
  266.     border 0
  267.     backcolor 0 0 .5 .75
  268.     visible 1
  269.     decoration
  270.   }
  271. itemDef {
  272.     name horizontoalseparators
  273.     rect 10 292 604 20
  274.     style WINDOW_STYLE_FILLED
  275.     border 0
  276.     backcolor 0 0 .5 .75
  277.     visible 1
  278.     decoration
  279. }
  280. itemDef {
  281.     name horizontoalseparators
  282.     rect 10 332 604 20
  283.     style WINDOW_STYLE_FILLED
  284.     border 0
  285.     backcolor 0 0 .5 .75
  286.     visible 1
  287.     decoration
  288. }
  289. itemDef {
  290.     name horizontoalseparators
  291.     rect 10 372 604 8
  292.     style WINDOW_STYLE_FILLED
  293.     border 0
  294.     backcolor 0 0 .5 .75
  295.     visible 1
  296.     decoration
  297. }
  298. */
  299. //    COLUMNS    //
  300.  
  301.  
  302.  
  303. itemDef {
  304.     name serverColumn
  305.     group grpColumn
  306.     rect 10 168 265 210
  307.     style WINDOW_STYLE_FILLED
  308.     border 1
  309.     backcolor .66 1 0 .1
  310.     bordersize 1
  311.     bordercolor .66 1 0 .6
  312.     visible 1
  313.     decoration
  314. }
  315. itemDef {
  316.     name mapColumn
  317.     group grpColumn
  318.     rect 275 168 125 210
  319.     style WINDOW_STYLE_FILLED
  320.     border 1
  321.     backcolor .66 1 0 .1
  322.     bordersize 1
  323.     bordercolor .66 1 0 .6
  324.     visible 1
  325.     decoration
  326. }
  327. itemDef {
  328.     name playerColumn
  329.     group grpColumn
  330.     rect 400 168 60 210
  331.     style WINDOW_STYLE_FILLED
  332.     border 1
  333.     backcolor .66 1 0 .1
  334.     bordersize 1
  335.     bordercolor .66 1 0 .6
  336.     visible 1
  337.     decoration
  338. }
  339. itemDef {
  340.     name typeColumn
  341.     group grpColumn
  342.     rect 460 168 100 210
  343.     style WINDOW_STYLE_FILLED
  344.     border 1
  345.     backcolor .66 1 0 .1
  346.     bordersize 1
  347.     bordercolor .66 1 0 .6
  348.     visible 1
  349.     decoration
  350. }
  351. itemDef {
  352.     name pingColumn
  353.     group grpColumn
  354.     rect 560 168 52 210
  355.     style WINDOW_STYLE_FILLED
  356.     border 1
  357.     backcolor .66 1 0 .1
  358.     bordersize 1
  359.     bordercolor .66 1 0 .6
  360.     visible 1
  361.     decoration
  362. }
  363.  
  364.  
  365.  
  366. itemDef {
  367.     name serverlist
  368.     rect 10 168 620 210
  369.     type ITEM_TYPE_LISTBOX
  370.     style WINDOW_STYLE_FILLED
  371.     elementwidth 120
  372.     elementheight 20
  373.     textscale .3
  374.     elementtype LISTBOX_TEXT
  375.     feeder FEEDER_SERVERS
  376.     border 1
  377.     bordercolor .66 1 0 1
  378.     forecolor 1 1 1 1
  379.     backcolor 0 0 0 0 
  380.     outlinecolor .66 1 0 1
  381.     visible 1
  382.     columns 5 2 40 40 275 40 20 400 5 10 460 20 10 560 20 20
  383.     mouseenter { setitemcolor serverlist bordercolor 1 1 1 1 }
  384.     mouseexit { setitemcolor serverlist bordercolor .66 1 0 1 }
  385.     doubleClick { uiScript JoinServer }
  386. }
  387.  
  388.  
  389.  
  390.  
  391.  
  392. //    SORT TABS    //
  393.  
  394.  
  395.  itemDef {
  396.        name server
  397.     group grpTabs
  398.        text "Server Name"
  399.     textstyle 6
  400.     type ITEM_TYPE_BUTTON
  401.        textscale .25
  402.        style WINDOW_STYLE_FILLED
  403.     background "ui/assets/sorttab.tga"
  404.     rect 11 143 110 26 
  405.     textalign 1
  406.     textalignx 59        // center
  407.     textaligny 21
  408.     forecolor 1 1 1 1
  409.     backcolor .66 1 0 .6
  410.     visible 1 
  411.     action { play "sound/UI/menu2.wav" ; 
  412.     uiScript ServerSort 0 ; 
  413.     setitemcolor grpTabs backcolor .66 1 0 .6; 
  414.     setitemcolor server backcolor .66 1 0 .8 ; 
  415.     setitemcolor grpColumn backcolor .66 1 0 .1 ; 
  416.     setitemcolor serverColumn backcolor .66 1 0 .3 }
  417.     mouseEnter { show message_sort ; setitemcolor serverColumn bordercolor 1 1 1 1 }
  418.     mouseExit { hide message_sort ; setitemcolor serverColumn bordercolor .66 1 0 1 }  
  419.  }
  420.  
  421.  
  422.  
  423.  itemDef {
  424.        name map
  425.     group grpTabs
  426.     type ITEM_TYPE_BUTTON
  427.        text "Map Name"
  428.        textstyle 6
  429.     textscale .25
  430.     style WINDOW_STYLE_FILLED
  431.     background "ui/assets/sorttab.tga"
  432.        rect 275 143 100 26
  433.     textalign 1
  434.        textalignx 50        // center
  435.        textaligny 21
  436.     backcolor .66 1 0 .6
  437.        forecolor 1 1 1 1
  438.        visible 1 
  439.        action { play "sound/UI/menu2.wav" ; 
  440.     uiScript ServerSort 1 ; 
  441.     setitemcolor grpTabs backcolor .66 1 0 .6 ; 
  442.     setitemcolor map backcolor .66 1 0 .8 ; 
  443.     setitemcolor grpColumn backcolor .66 1 0 .1 ; 
  444.     setitemcolor mapColumn backcolor .66 1 0 .3 }
  445.     mouseEnter { show message_sort ; setitemcolor mapColumn bordercolor 1 1 1 1}
  446.     mouseExit { hide message_sort ; setitemcolor mapColumn bordercolor .66 1 0 .6 }            
  447.  }
  448.  
  449.  
  450.  
  451.  itemDef {
  452.     name Players
  453.     group grpTabs
  454.     text "#Plyrs"
  455.     type ITEM_TYPE_BUTTON
  456.     textstyle 6
  457.     textscale .25
  458.     style WINDOW_STYLE_FILLED
  459.     background "ui/assets/sorttab.tga"
  460.     rect 400 143 50 26
  461.     textalign 1
  462.     textalignx 25        // center
  463.     textaligny 21
  464.     forecolor 1 1 1 1
  465.     backcolor .66 1 0 .6
  466.     visible 1 
  467.     action { play "sound/UI/menu2.wav" ; 
  468.         uiScript ServerSort 2 ;
  469.         setitemcolor grpTabs backcolor .66 1 0 .6 ; 
  470.         setitemcolor Players backcolor .66 1 0 .8 ;  
  471.         setitemcolor grpColumn backcolor .66 1 0 .1 ; 
  472.         setitemcolor playerColumn backcolor .66 1 0 .3 }
  473.     mouseEnter { show message_sort ; setitemcolor playerColumn bordercolor 1 1 1 1 }
  474.     mouseExit { hide message_sort ; setitemcolor playerColumn bordercolor .66 1 0 .6 }        
  475.     }
  476.  
  477.  
  478. itemDef {
  479.     name Type
  480.     group grpTabs
  481.     text "Type"
  482.     textscale .25
  483.     textstyle 6
  484.     type ITEM_TYPE_BUTTON
  485.     style WINDOW_STYLE_FILLED
  486.     background "ui/assets/sorttab.tga"
  487.     rect 460 143 60 26
  488.     textalign 1
  489.     textalignx 30        // center
  490.     textaligny 21
  491.     backcolor .66 1 0 .6
  492.     forecolor 1 1 1 1
  493.     visible 1 
  494.     action { play "sound/UI/menu2.wav" ; 
  495.         uiScript ServerSort 3 ;
  496.         setitemcolor grpTabs backcolor .66 1 0 .6 ; 
  497.         setitemcolor Type backcolor .66 1 0 .8 ;  
  498.         setitemcolor grpColumn backcolor .66 1 0 .1 ; 
  499.         setitemcolor typeColumn backcolor .66 1 0 .3 }
  500.     mouseEnter { show message_sort ; setitemcolor typeColumn bordercolor 1 1 1 1 }
  501.     mouseExit { hide message_sort ; setitemcolor typeColumn bordercolor .66 1 0 .6 }            
  502.     }
  503.  
  504.  
  505. itemDef {
  506.     name Ping
  507.     group grpTabs
  508.     text "Ping"
  509.     type ITEM_TYPE_BUTTON
  510.     textstyle 6
  511.     textscale .25
  512.     style WINDOW_STYLE_FILLED
  513.     background "ui/assets/sorttab.tga"
  514.     rect 560 143 52 26
  515.     textalign 1
  516.     textalignx 26        // center
  517.     textaligny 21
  518.     backcolor .66 1 0 .6
  519.     forecolor 1 1 1 1
  520.     visible 1 
  521.     action { play "sound/UI/menu2.wav" ; 
  522.         uiScript ServerSort 4 ;
  523.         setitemcolor grpTabs backcolor .66 1 0 .6 ; 
  524.         setitemcolor Ping backcolor .66 1 0 .8 ;  
  525.         setitemcolor grpColumn backcolor .66 1 0 .1 ;
  526.         setitemcolor pingColumn backcolor .66 1 0 .3 }
  527.     mouseEnter { show message_sort ; setitemcolor pingColumn bordercolor 1 1 1 1 }
  528.     mouseExit { hide message_sort ; setitemcolor pingColumn bordercolor .66 1 0 .6 }      
  529.     }
  530.  
  531.  
  532.  
  533.  
  534.  
  535. //     BUTTONS        //
  536. //Get New List
  537. itemDef {
  538.     name refreshbar
  539.     group button
  540.     style WINDOW_STYLE_FILLED
  541.     rect 13 120 120 20
  542.     backcolor .66 1 0 .7  
  543.     visible 0 
  544.     action { play "sound/UI/menu2.wav" ; 
  545.              uiScript RefreshServers }                 
  546. }
  547. itemDef {
  548.     name brace        
  549.     group button
  550.     style 3
  551.     rect 3 117 25 25 
  552.     background "ui/sidrial/sub/brace.tga"
  553.     backcolor .66 1 0 .1
  554.        forecolor 1 1 1 1
  555.        visible 1
  556.     decoration    
  557.     action { play "sound/UI/menu2.wav" ; 
  558.              uiScript RefreshServers }                 
  559. }
  560. itemDef {
  561.     name brace    
  562.     group button
  563.     style 3
  564.     rect 118 117 25 25 
  565.     background "ui/sidrial/sub/brace_right.tga"
  566.     backcolor .66 1 0 .1
  567.        forecolor 1 1 1 1
  568.        visible 1
  569.     decoration    
  570.     action { play "sound/UI/menu2.wav" ; 
  571.              uiScript RefreshServers }                 
  572. }
  573. itemDef {
  574.     name refreshSource
  575.     group button
  576.     text "Get New List"
  577.     textscale .3
  578.     textstyle 6
  579.     style WINDOW_STYLE_FILLED
  580.     type ITEM_TYPE_BUTTON
  581.     rect 13 120 120 20
  582.     textalign 1
  583.     textalignx 60        // center
  584.     textaligny 15
  585.     forecolor .66 1 0 1
  586.     visible 1 
  587.     mouseEnter { transition refreshbar 13 130 120 0 13 120 120 20 20 5; fadein message_refreshSource;}
  588.     mouseExit { transition refreshbar 13 120 120 20 13 130 120 0 20 5; fadeout message_refreshSource;}
  589.     action { play "sound/UI/menu2.wav" ; 
  590.              uiScript RefreshServers }                 
  591. }
  592. //Refresh List
  593. itemDef {
  594.     name filterbar
  595.     group button
  596.     style WINDOW_STYLE_FILLED
  597.     rect 140 120 120 20
  598.     backcolor .66 1 0 .7  
  599.     visible 0 
  600.     action { play "sound/UI/menu2.wav" ; 
  601.              uiScript RefreshFilter }            
  602. }
  603. itemDef {
  604.     name brace        
  605.     group button
  606.     style 3
  607.     rect 128 117 25 25 
  608.     background "ui/sidrial/sub/brace.tga"
  609.     backcolor .66 1 0 .1
  610.        forecolor 1 1 1 1
  611.        visible 1
  612.     decoration    
  613.     action { play "sound/UI/menu2.wav" ; 
  614.              uiScript RefreshFilter }            
  615. }
  616. itemDef {
  617.     name brace    
  618.     group button
  619.     style 3
  620.     rect 245 117 25 25 
  621.     background "ui/sidrial/sub/brace_right.tga"
  622.     backcolor .66 1 0 .1
  623.        forecolor 1 1 1 1
  624.        visible 1
  625.     decoration    
  626.     action { play "sound/UI/menu2.wav" ; 
  627.              uiScript RefreshFilter }            
  628. }
  629. itemDef {
  630.     name refreshFilter
  631.     text "Refresh List"
  632.     textscale .3
  633.     textstyle 6
  634.     style WINDOW_STYLE_EMPTY
  635.     type ITEM_TYPE_BUTTON
  636.     rect 140 120 120 20
  637.     textalign 1
  638.     textalignx 60        // center
  639.     textaligny 15
  640.     forecolor .66 1 0 1
  641.     visible 1 
  642.     mouseEnter { transition filterbar 140 130 120 0 140 120 120 20 20 5 ; fadein message_refreshFilter; }
  643.     mouseExit { transition filterbar 140 120 120 20 140 130 120 0 20 5 ; fadeout message_refreshFilter;}            
  644.     action { play "sound/UI/menu2.wav" ; 
  645.              uiScript RefreshFilter }            
  646. }
  647. //Server Info
  648. itemDef {
  649.     name infobar
  650.     group button
  651.     style WINDOW_STYLE_FILLED
  652.     rect 267 120 120 20
  653.     backcolor .66 1 0 .7  
  654.     visible 0 
  655.     action { play "sound/UI/menu2.wav" ; 
  656.              open serverinfo_popmenu ; }            
  657. }
  658. itemDef {
  659.     name brace        
  660.     group button
  661.     style 3
  662.     rect 255 117 25 25 
  663.     background "ui/sidrial/sub/brace.tga"
  664.     backcolor .66 1 0 .1
  665.        forecolor 1 1 1 1
  666.        visible 1
  667.     decoration    
  668.     action { play "sound/UI/menu2.wav" ; 
  669.              open serverinfo_popmenu ; }            
  670. }
  671. itemDef {
  672.     name brace    
  673.     group button
  674.     style 3
  675.     rect 372 117 25 25 
  676.     background "ui/sidrial/sub/brace_right.tga"
  677.     backcolor .66 1 0 .1
  678.        forecolor 1 1 1 1
  679.        visible 1
  680.     decoration    
  681.     action { play "sound/UI/menu2.wav" ; 
  682.              open serverinfo_popmenu ; }            
  683. }
  684. itemDef {
  685.     name serverinfo
  686.     text "Server Info"
  687.     textscale .3
  688.     textstyle 6
  689.     style WINDOW_STYLE_EMPTY
  690.     type ITEM_TYPE_BUTTON
  691.     rect 267 120 120 20
  692.     textalign 1
  693.     textalignx 60        // center
  694.     textaligny 15
  695.     forecolor .66 1 0 1
  696.     visible 1 
  697.     mouseEnter { transition infobar 267 130 120 0 267 120 120 20 20 5; fadein message_serverinfo; }
  698.     mouseExit { transition infobar 267 120 120 20 267 130 120 0 20 5; fadeout message_serverinfo;}            
  699.     action { play "sound/UI/menu2.wav" ; 
  700.              open serverinfo_popmenu ; }            
  701. }
  702.     //Create Server
  703. itemDef {
  704.     name serverbar
  705.     group button
  706.     style WINDOW_STYLE_FILLED
  707.     rect 505 120 120 20
  708.     backcolor .66 1 0 .7
  709.     visible 0 
  710.     action { play "sound/UI/menu2.wav" ; close multiplayer;
  711.              open server;}            
  712. }
  713. itemDef {
  714.     name brace        
  715.     group button
  716.     style 3
  717.     rect 495 117 25 25 
  718.     background "ui/sidrial/sub/brace.tga"
  719.     backcolor .66 1 0 .1
  720.        forecolor 1 1 1 1
  721.        visible 1
  722.     decoration    
  723.     action { play "sound/UI/menu2.wav" ; close multiplayer;
  724.              open server;}            
  725. }
  726. itemDef {
  727.     name brace    
  728.     group button
  729.     style 3
  730.     rect 610 117 25 25 
  731.     background "ui/sidrial/sub/brace_right.tga"
  732.     backcolor .66 1 0 .1
  733.        forecolor 1 1 1 1
  734.        visible 1
  735.     decoration    
  736.     action { play "sound/UI/menu2.wav" ; close multiplayer;
  737.              open server;}
  738. }             
  739. itemDef {
  740.        name server
  741.     text "Create Server"
  742.     textscale .3
  743.     textstyle 6
  744.     style WINDOW_STYLE_EMPTY
  745.     type ITEM_TYPE_BUTTON
  746.     rect 505 120 120 20
  747.     textalign 1
  748.     textalignx 60        // center
  749.     textaligny 15
  750.     forecolor .66 1 0 1
  751.     visible 1 
  752.     mouseEnter { show message_create; transition serverbar 505 130 120 0 505 120 120 20 20 5; fadein message_createserver }
  753.     mouseExit { hide message_create; transition serverbar 505 120 120 20 505 130 120 0 20 5; fadeout message_createserver;}            
  754.     action { play "sound/UI/menu2.wav" ; close multiplayer;
  755.              open server;}            
  756. }
  757. //    VIEW OPTIONS    //
  758. itemDef {
  759.     name gametypefield
  760.     style 0    
  761.      ownerdraw UI_NETSOURCE
  762.     rect 280 380 125 25 
  763.     textalign ITEM_ALIGN_LEFT        
  764.     textalignx 2     
  765.     textaligny 20    
  766.     textscale .23     
  767.     forecolor 1 1 1 1
  768.     visible 1 
  769.     action { play "sound/UI/menu2.wav" }
  770.     mouseEnter { show message_source }
  771.     mouseExit { hide message_source }
  772. }
  773. itemDef {
  774.     name viewEmpty
  775.     type ITEM_TYPE_YESNO
  776.     text "View Empty:"
  777.     cvar "ui_browserShowEmpty"
  778.     textscale .23
  779.     rect 405 380 125 25
  780.     textalign 0
  781.     textalignx 0        
  782.     textaligny 20
  783.     forecolor 1 1 1 1
  784.     visible 1 
  785.     action { play "sound/UI/menu2.wav" ;
  786.     uiScript RefreshFilter }
  787.     mouseEnter { show message_viewEmpty }
  788.     mouseExit { hide message_viewEmpty }            
  789. }
  790. itemDef {
  791.     name viewEmpty
  792.     type 11
  793.     text "View Full:"
  794.     cvar "ui_browserShowFull"
  795.     textscale .23
  796.     rect 530 380 125 25
  797.     textalign 0
  798.     textalignx 0        
  799.     textaligny 20
  800.     forecolor 1 1 1 1
  801.     visible 1 
  802.     action { uiScript RefreshFilter ; 
  803.     play "sound/UI/menu2.wav" }
  804.     mouseEnter { show message_viewFull }
  805.     mouseExit { hide message_viewFull }            
  806. }
  807.  
  808. //    MESSAGES    //
  809.  
  810. itemDef {
  811.     name message_back
  812.     group grpmessage
  813.     style 0 
  814.     rect 320 420 128 30
  815.     textalign 1
  816.     textstyle 6
  817.     textalignx 0
  818.     textaligny 25
  819.     textscale .3
  820.     text "Back to Main Menu"
  821.     forecolor 1 1 1 1
  822.     decoration 
  823.     visible 0
  824.     }
  825. itemDef {
  826.     name message_accept
  827.     group grpmessage
  828.     style 0 
  829.     rect 320 420 128 30
  830.     textalign 1
  831.     textalignx 0
  832.     textstyle 6
  833.     textaligny 25
  834.     textscale .3
  835.     text "Connect to Server"
  836.     forecolor 1 1 1 1
  837.     decoration 
  838.     visible 0
  839.     }
  840. itemDef {
  841.     name message_serverinfo
  842.     group grpmessage
  843.     style 0 
  844.     rect 320 420 128 30
  845.     textalign 1
  846.     textstyle 6
  847.     textalignx 0
  848.     textaligny 25
  849.     textscale .3
  850.     text "Display Current Server Info"
  851.     forecolor 1 1 1 1
  852.     decoration 
  853.     visible 0
  854.     }
  855. itemDef {
  856.     name message_source
  857.     group grpmessage
  858.     style 0 
  859.     rect 320 420 128 30
  860.     textalign 1
  861.     textstyle 6
  862.     textalignx 0
  863.     textaligny 25
  864.     textscale .3
  865.     text "Set Source"
  866.     forecolor 1 1 1 1
  867.     decoration 
  868.     visible 0
  869.     }
  870. itemDef {
  871.     name message_sort
  872.     group grpmessage
  873.     style 0 
  874.     rect 320 420 128 30
  875.     textalign 1
  876.     textstyle 6
  877.     textalignx 0
  878.     textaligny 25
  879.     textscale .3
  880.     text "Sort Column"
  881.     forecolor 1 1 1 1
  882.     decoration 
  883.     visible 0
  884.     }
  885. itemDef {
  886.     name message_refreshSource
  887.     group grpmessage
  888.     style 0 
  889.     rect 320 420 128 30
  890.     textalign 1
  891.     textstyle 6
  892.     textalignx 0
  893.     textaligny 25
  894.     textscale .3
  895.     text "Update Server List from Current Source"
  896.     forecolor 1 1 1 1
  897.     decoration 
  898.     visible 0
  899.     }
  900. itemDef {
  901.     name message_refreshFilter
  902.     group grpmessage
  903.     style 0 
  904.     rect 320 420 128 30
  905.     textalign 1
  906.     textstyle 6
  907.     textalignx 0
  908.     textaligny 25
  909.     textscale .3
  910.     text "Refresh All Current Servers"
  911.     forecolor 1 1 1 1
  912.     decoration 
  913.     visible 0
  914.     }
  915. itemDef {
  916.     name message_viewEmpty
  917.     group grpmessage
  918.     style 0 
  919.     rect 320 420 128 30
  920.     textalign 1
  921.     textstyle 6
  922.     textalignx 0
  923.     textaligny 25
  924.     textscale .3
  925.     text "Display Empty Servers"
  926.     forecolor 1 1 1 1
  927.     decoration 
  928.     visible 0
  929.     }
  930. itemDef {
  931.     name message_create
  932.     group grpmessage
  933.     style 0 
  934.     rect 320 420 128 30
  935.     textalign 1
  936.     textstyle 6
  937.     textalignx 0
  938.     textaligny 25
  939.     textscale .3
  940.     text "Create A New Server"
  941.     forecolor 1 1 1 1
  942.     decoration 
  943.     visible 0
  944.     }
  945. itemDef {
  946.     name message_viewFull
  947.     group grpmessage
  948.     style 0 
  949.     rect 320 420 128 30
  950.     textalign 1
  951.     textstyle 6
  952.     textalignx 0
  953.     textaligny 25
  954.     textscale .3
  955.     text "Display Full Servers"
  956.     forecolor 1 1 1 1
  957.     decoration 
  958.     visible 0
  959.     }
  960.     itemDef {
  961.           name fadebox                    // Box for fading in menus
  962.           style WINDOW_STYLE_FILLED
  963.          background "ui/sidrial/fadebox.tga"
  964.         forecolor 0 0 0 1
  965.         backcolor 0 0 0 1
  966.         rect 0 0 640 480
  967.           visible 1 
  968.         decoration
  969.     }
  970.  
  971.   }
  972.  
  973. }