home *** CD-ROM | disk | FTP | other *** search
/ Micromanía 87 / CDMM87_1.ISO / Sidrial / data1.cab / Program_Files / sidrial0.pk3 / ui / sidrial_createserver.menu < prev    next >
Encoding:
Text File  |  2002-01-13  |  13.5 KB  |  664 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 "server"
  25.         style 3
  26.         background "createserver"
  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 loadArenas ;
  38.         }
  39.     onEsc { close server; open multiplayer; }
  40.  
  41.     itemDef {
  42.           name format                    // Layout
  43.         style 3
  44.          background "filter"
  45.         backcolor .25 .5 .75 .75
  46.         rect 0 0 640 480
  47.         visible 0    
  48.         decoration
  49.        }        
  50.     itemDef {                    
  51.         name format
  52.         style 3
  53.           rect 0 0 640 480 
  54.          background "ui/sidrial/sub/white_bar.tga"
  55.         backcolor 0 0 0 0
  56.           forecolor 1 1 1 1
  57.           visible 0
  58.         decoration
  59.        }
  60.     itemDef {
  61.           name format                    // Layout
  62.         style 3
  63.          background "sub_swooshb"
  64.         backcolor 0 0 0 0
  65.           forecolor 1 1 1 1
  66.         rect 0 0 640 480
  67.         visible 0    
  68.         decoration
  69.        }
  70.     itemDef {
  71.           name multiplayer    
  72.           group icon
  73.           style 3
  74.           rect 580 40 40 40 
  75.         background "ui/sidrial/icon_multiplayer.tga"
  76.            backcolor .66 1 0 1
  77.         visible 1
  78.           decoration
  79.        }
  80.     itemDef {
  81.         name subtitle
  82.         group words
  83.         type 0
  84.           text "Create Server"
  85.           style 0    
  86.         textstyle 6
  87.           rect 500 40 80 40
  88.            forecolor .66 1 0 1
  89.         textalignx 75
  90.         textaligny 27
  91.           textalign 2
  92.         textscale .4        
  93.           visible 1 
  94.         decoration
  95.     }
  96.     itemDef {
  97.           name title    
  98.           style 3
  99.           rect 10 5 256 32 
  100.         background "ui/sidrial/text_multiplayer.tga"
  101.            backcolor 0 0 0 0
  102.           forecolor 1 1 1 1
  103.         visible 1
  104.           decoration
  105.        }
  106.     itemDef {
  107.         name backbar
  108.         group Bar
  109.           style 2
  110.           rect 20 420 210 40
  111.           backcolor .66 1 0 .7 
  112.         border 0
  113.         visible 0    
  114.         action { close server ; open multiplayer }
  115.         }
  116.     itemDef {
  117.           name back    
  118.           group icon
  119.           style 3
  120.           rect 15 420 40 40 
  121.         background "ui/sidrial/sub/icon_left.tga"
  122.            backcolor 0 0 0 0
  123.           forecolor 1 1 1 1
  124.         visible 1
  125.           decoration
  126.         action { close server ; open multiplayer }
  127.        }
  128.     itemDef {
  129.         name back
  130.         group words
  131.         type 1
  132.           text "Back"
  133.           style 0    
  134.         textstyle 6
  135.           rect 15 420 150 40
  136.            forecolor .66 1 0 1
  137.         textalignx 45
  138.         textaligny 25
  139.           textalign 0
  140.         textscale .4        
  141.           visible 1     
  142.         mouseEnter { fadein message_back; transition backbar 20 440 196 0 20 420 196 40 20 5 ;}
  143.         mouseExit { fadeout message_back; transition backbar 20 420 196 40 20 440 196 0 20 5 ; }
  144.         action { close server ; open multiplayer }
  145.     }
  146.  
  147.     itemDef {
  148.         name continuebar
  149.         group continue
  150.           style 2
  151.           rect 405 420 -210 40
  152.           backcolor .66 1 0 .7
  153.         border 0
  154.         visible 0
  155.           action { close server ; uiScript StartServer }
  156.         }
  157.     itemDef {
  158.           name icon    
  159.           group continue
  160.           style 3
  161.           rect 585 420 40 40 
  162.         background "ui/sidrial/sub/icon_right.tga"
  163.            backcolor 0 0 0 0
  164.           forecolor 1 1 1 1
  165.         visible 1
  166.           decoration
  167.           action { close server ; uiScript StartServer }
  168.        }
  169.     itemDef {
  170.         name continue
  171.         group words
  172.         type 1
  173.           text "Continue"
  174.           style 0    
  175.         textstyle 6
  176.           rect 485 420 150 40
  177.            forecolor .66 1 0 1
  178.         textalignx 15
  179.         textaligny 25
  180.           textalign 0
  181.         textscale .4        
  182.           visible 1     
  183.         mouseEnter { transition continuebar 405 440 -210 0 405 420 -210 40 20 5 ; fadein message_accept }   
  184.         mouseExit { transition continuebar 405 420 -210 40 405 440 -210 0 20 5 ; fadeout message_accept }  
  185.           action { close server ; uiScript StartServer }
  186.     }
  187.  
  188. // map selection
  189.  
  190.  
  191. itemDef {
  192.           name mappreview
  193.           style 0    
  194.      ownerdraw UI_STARTMAPCINEMATIC
  195.           rect 101 131 190 141
  196.           border 1
  197.           bordercolor .5 .5 .5 .5
  198.           visible 1 
  199.         }
  200. itemDef {
  201.           name mappreview
  202.          style WINDOW_STYLE_FILLED
  203.           rect 100 130 192 143
  204.           border 1
  205.           bordercolor .66 1 0 1
  206.           visible 1
  207.     }
  208.  
  209.  itemDef {
  210.     name maplist
  211.           rect 100 276 192 131
  212.     type ITEM_TYPE_LISTBOX
  213.     style WINDOW_STYLE_FILLED
  214.     elementwidth 120
  215.     elementheight 20
  216.     textscale .25
  217.     elementtype LISTBOX_TEXT
  218.     feeder FEEDER_ALLMAPS
  219.     textstyle 6
  220.     textalign 3
  221.     textaligny 14
  222.     border 1
  223.     bordercolor .66 1 0 1
  224.     backcolor .66 1 0 .3
  225.     outlinecolor .66 1 0 1
  226.     visible 1
  227.     columns 1 2 190 25
  228.     mouseEnter { fadein message_arena ; setitemcolor maplist bordercolor 1 1 1 1 } 
  229.     mouseExit { fadeout message_arena ; setitemcolor maplist bordercolor .66 1 0 1 } 
  230.       }
  231.  
  232. //    SETTINGS    //
  233. itemDef {
  234.           name gametypefield
  235.           style 0    
  236.         ownerdraw UI_NETGAMETYPE
  237.         text "Type:"
  238.           rect 360 132 128 12 
  239.           textalign ITEM_ALIGN_RIGHT
  240.           textalignx 85     
  241.           textaligny 12    
  242.         textscale .25    
  243.           forecolor .66 1 0 1
  244.           visible 1
  245.         mouseEnter { fadein message_gametype } 
  246.         mouseExit { fadeout message_gametype } 
  247.     }   
  248.     itemDef {
  249.           name normal
  250.     group grpsettings
  251.     type ITEM_TYPE_NUMERICFIELD
  252.     text "Frag Limit:"
  253.     cvar "fraglimit"
  254.     ownerdrawflag UI_SHOW_NETANYNONTEAMGAME 
  255.           rect 360 147 128 12 
  256.           textalign ITEM_ALIGN_RIGHT
  257.           textalignx 85
  258.     maxchars 4
  259.           textaligny 12
  260.     textscale .25        
  261.           forecolor .66 1 0 1
  262.           visible 1  
  263.         mouseenter { show message_edit; }
  264.         mouseexit { hide message_edit; }
  265.     }
  266.  
  267.     itemDef {
  268.           name normal
  269.     group grpsettings
  270.           type ITEM_TYPE_NUMERICFIELD
  271.     text "Time Limit:"
  272.     cvar "timelimit"
  273.           rect 360 162 128 12 
  274.           textalign ITEM_ALIGN_RIGHT
  275.           textalignx 85
  276.     maxchars 4
  277.           textaligny 12
  278.     textscale .25        
  279.           forecolor .66 1 0 1
  280.           visible 1  
  281.         mouseenter { show message_edit; }
  282.         mouseexit { hide message_edit; }
  283.         }
  284.  
  285.     itemDef {
  286.       name normal
  287.     group grpsettings
  288.           type ITEM_TYPE_YESNO
  289.     text "Pure Server:"
  290.     cvar "sv_pure"
  291.           rect 360 177 128 12 
  292.           textalign ITEM_ALIGN_RIGHT
  293.           textalignx 85
  294.           textaligny 12
  295.     textscale .25        
  296.           forecolor .66 1 0 1
  297.           visible 1  
  298.         mouseenter { show message_yesno; }
  299.         mouseexit { hide message_yesno; }
  300.         }
  301.  
  302.     itemDef {
  303.           name normal
  304.     group grpsettings
  305.           type ITEM_TYPE_MULTI
  306.     text "Dedicated:"
  307.     // syntax for this is cvar name followed by a semicolan separated list of choices first choice equals 0
  308.     // dedicated is a special cvar in that as soon as it is set, the game goes to console only so the ui catches this one specifically
  309.     cvar "ui_dedicated"
  310.     cvarFloatList { "No" 0 "LAN" 1 "Internet" 2 }
  311.     rect 360 192 128 12 
  312.     textalign ITEM_ALIGN_RIGHT
  313.           textalignx 85
  314.     textaligny 12
  315.     textscale .25        
  316.           forecolor .66 1 0 1
  317.          visible 1 
  318.         mouseenter { show message_edit; }
  319.         mouseexit { hide message_edit; }
  320.         }
  321.  
  322.  
  323.     itemDef {
  324.           name expert
  325.     group grpsettings
  326.           type ITEM_TYPE_EDITFIELD
  327.     text "Host Name:"
  328.     cvar "sv_hostname"
  329.     maxChars 32
  330.     maxPaintChars 20
  331.           rect 360 207 128 12 
  332.           textalign ITEM_ALIGN_RIGHT
  333.           textalignx 85
  334.           textaligny 12
  335.     textscale .25        
  336.           forecolor .66 1 0 1
  337.           visible 1  
  338.         mouseenter { show message_edit; }
  339.         mouseexit { hide message_edit; }
  340.     }
  341.  
  342.  
  343.  
  344.     itemDef {
  345.           name expert
  346.     group grpsettings
  347.           type ITEM_TYPE_YESNO
  348.     text "Auto Download:"
  349.     cvar "sv_allowdownload"
  350.     rect 360 222 128 12 
  351.     textalign ITEM_ALIGN_RIGHT
  352.           textalignx 85
  353.     textaligny 12
  354.     textscale .25        
  355.     forecolor .66 1 0 1
  356.     visible 1  
  357.         mouseenter { show message_yesno; }
  358.         mouseexit { hide message_yesno; }
  359.     }
  360.  
  361.     itemDef {
  362.           name expert
  363.     group grpsettings
  364.           type ITEM_TYPE_YESNO
  365.     text "Enable Voting:"
  366.     cvar "g_allowvote"
  367.           rect 360 237 128 12 
  368.           textalign ITEM_ALIGN_RIGHT
  369.           textalignx 85
  370.           textaligny 12
  371.     textscale .25        
  372.           forecolor .66 1 0 1
  373.           visible 1  
  374.          mouseenter { show message_yesno; }
  375.         mouseexit { hide message_yesno; }
  376.        }
  377.  
  378.     
  379.  
  380.     itemDef {
  381.           name expert
  382.     group grpsettings
  383.           type ITEM_TYPE_NUMERICFIELD
  384.     text "Maximum Players:"
  385.     cvar "sv_maxclients"
  386.           rect 360 252 128 12 
  387.           textalign ITEM_ALIGN_RIGHT
  388.           textalignx 85
  389.     maxchars 4
  390.           textaligny 12
  391.     textscale .25        
  392.           forecolor .66 1 0 1
  393.           visible 1  
  394.         mouseenter { show message_edit; }
  395.         mouseexit { hide message_edit; }
  396.         }
  397.  
  398.  
  399.  
  400.     itemDef {
  401.           name expert
  402.     group grpsettings
  403.           type ITEM_TYPE_NUMERICFIELD
  404.     text "Minimum Ping:"
  405.     cvar "sv_minping"
  406.           rect 360 267 128 12 
  407.           textalign ITEM_ALIGN_RIGHT
  408.           textalignx 85
  409.     maxchars 4
  410.           textaligny 12
  411.     textscale .25        
  412.           forecolor .66 1 0 1
  413.           visible 1  
  414.         mouseenter { show message_edit; }
  415.         mouseexit { hide message_edit; }
  416.     }
  417.  
  418.     itemDef {
  419.     name expert
  420.     group grpsettings
  421.           type ITEM_TYPE_NUMERICFIELD
  422.     text "Maximum Ping:"
  423.     cvar "sv_maxping"
  424.           rect 360 282 128 12 
  425.           textalign ITEM_ALIGN_RIGHT
  426.           textalignx 85
  427.           textaligny 12
  428.     maxchars 4
  429.     textscale .25        
  430.           forecolor .66 1 0 1
  431.           visible 1  
  432.          mouseenter { show message_edit; }
  433.         mouseexit { hide message_edit; }
  434.    }
  435.  
  436.       itemDef {
  437.           name expert
  438.     group grpsettings
  439.           type ITEM_TYPE_YESNO
  440.     text "Do Warmup:"
  441.     cvar "g_dowarmup"
  442.           rect 360 297 128 12 
  443.           textalign ITEM_ALIGN_RIGHT
  444.           textalignx 85
  445.           textaligny 12
  446.     textscale .25        
  447.           forecolor .66 1 0 1
  448.           visible 1  
  449.          mouseenter { show message_yesno; }
  450.         mouseexit { hide message_yesno; }
  451.        }
  452.  
  453.     itemDef {
  454.     name expert
  455.     group grpsettings
  456.           type ITEM_TYPE_NUMERICFIELD
  457.     text "Warmup time:"
  458.     cvar "g_warmup"
  459.           rect 360 312 128 12 
  460.           textalign ITEM_ALIGN_RIGHT
  461.           textalignx 85
  462.           textaligny 12
  463.     textscale .25  
  464.     maxchars 4
  465.           forecolor .66 1 0 1
  466.           visible 1  
  467.         mouseenter { show message_edit; }
  468.         mouseexit { hide message_edit; }
  469.         }
  470.  
  471.     itemDef {
  472.           name expert
  473.     group grpsettings
  474.           type ITEM_TYPE_YESNO
  475.     text "Synchronous Client:"
  476.     cvar "g_synchronousclients"
  477.           rect 360 327 128 12 
  478.           textalign ITEM_ALIGN_RIGHT
  479.           textalignx 85
  480.           textaligny 12
  481.     textscale .25        
  482.           forecolor .66 1 0 1
  483.           visible 1  
  484.         mouseenter { show message_yesno; }
  485.         mouseexit { hide message_yesno; }
  486.         }
  487.  
  488.     itemDef {
  489.           name expert
  490.     group grpsettings
  491.           type ITEM_TYPE_NUMERICFIELD
  492.     text "Max Rate:"
  493.     cvar "sv_maxrate"
  494.           rect 360 342 128 12 
  495.           textalign ITEM_ALIGN_RIGHT
  496.           textalignx 85
  497.     maxchars 4
  498.           textaligny 12
  499.     textscale .25        
  500.           forecolor .66 1 0 1
  501.           visible 1  
  502.         mouseenter { show message_edit; }
  503.         mouseexit { hide message_edit; }
  504.        }
  505.  
  506.     itemDef {
  507.           name expert
  508.     group grpsettings
  509.           type ITEM_TYPE_NUMERICFIELD
  510.     text "Zombie Time:"
  511.     cvar "sv_zombietime"
  512.           rect 360 357 128 12 
  513.     maxchars 4
  514.           textalign ITEM_ALIGN_RIGHT
  515.           textalignx 85
  516.           textaligny 12
  517.     textscale .25        
  518.           forecolor .66 1 0 1
  519.           visible 1  
  520.         mouseenter { show message_edit; }
  521.         mouseexit { hide message_edit; }
  522.         }
  523.  
  524.     itemDef {
  525.           name expert
  526.     group grpsettings
  527.           type ITEM_TYPE_NUMERICFIELD
  528.     text "Reconnect Limit:"
  529.     cvar "sv_reconnectlimit"
  530.     maxchars 4
  531.           rect 360 372 128 12 
  532.           textalign ITEM_ALIGN_RIGHT
  533.           textalignx 85
  534.           textaligny 12
  535.     textscale .25        
  536.           forecolor .66 1 0 1
  537.           visible 1  
  538.         mouseenter { show message_edit; }
  539.         mouseexit { hide message_edit; }
  540.         }
  541.     itemDef {
  542.           name expert
  543.     group grpsettings
  544.           type ITEM_TYPE_YESNO
  545.     text "Friendly Fire:"
  546.     cvar "g_friendlyfire"
  547.           rect 360 387 128 12 
  548.           textalign ITEM_ALIGN_RIGHT
  549.           textalignx 85
  550.           textaligny 12
  551.     textscale .25        
  552.           forecolor .66 1 0 1
  553.           visible 1  
  554.         mouseenter { show message_yesno; }
  555.         mouseexit { hide message_yesno; }
  556.         }
  557. //    MESSAGES    //
  558.  
  559. itemDef {
  560.     name message_back
  561.     group grpmessage
  562.     style 0 
  563.     rect 320 420 128 30
  564.     textalign 1
  565.     textstyle 6
  566.     textalignx 0
  567.     textaligny 25
  568.     textscale .3
  569.     text "Back to Join Server"
  570.     forecolor 1 1 1 1
  571.     decoration 
  572.     visible 0
  573.     }
  574. itemDef {
  575.     name message_gametype
  576.     group grpmessage
  577.     style 0 
  578.     rect 320 420 128 30
  579.     textalign 1
  580.     textalignx 0
  581.     textstyle 6
  582.     textaligny 25
  583.     textscale .3
  584.     text "Select Game Type"
  585.     forecolor 1 1 1 1
  586.     decoration 
  587.     visible 0
  588.     }
  589. itemDef {
  590.     name message_accept
  591.     group grpmessage
  592.     style 0 
  593.     rect 320 420 128 30
  594.     textalign 1
  595.     textalignx 0
  596.     textstyle 6
  597.     textaligny 25
  598.     textscale .3
  599.     text "Start Server"
  600.     forecolor 1 1 1 1
  601.     decoration 
  602.     visible 0
  603.     }
  604. itemDef {
  605.     name message_arena
  606.     group grpmessage
  607.     style 0 
  608.     rect 320 420 128 30
  609.     textalign 1
  610.     textstyle 6
  611.     textalignx 0
  612.     textaligny 25
  613.     textscale .3
  614.     text "Select Map"
  615.     forecolor 1 1 1 1
  616.     decoration 
  617.     visible 0
  618.     }
  619. itemDef {
  620.     name message_normal
  621.     group grpmessage
  622.     style 0 
  623.     rect 320 420 128 30
  624.     textalign 1
  625.     textstyle 6
  626.     textalignx 0
  627.     textaligny 25
  628.     textscale .3
  629.     text "Select to Modify Normal Server Settings"
  630.     forecolor 1 1 1 1
  631.     decoration 
  632.     visible 0
  633.     }
  634. itemDef {
  635.     name message_edit
  636.     style 0
  637.     rect 320 420 128 30
  638.     text "Click to Edit Field"      
  639.     forecolor 1 1 1 1
  640.     textstyle 6
  641.     textscale .3
  642.     textalignx 1
  643.     textalign 1
  644.     textaligny 25
  645.     visible 0
  646.        decoration 
  647.     }
  648. //FADE BOX//
  649.     itemDef {
  650.           name fadebox                    // Box for fading in menus
  651.           style WINDOW_STYLE_FILLED
  652.          background "ui/sidrial/fadebox.tga"
  653.         forecolor 0 0 0 1
  654.         backcolor 0 0 0 1
  655.         rect 0 0 640 480
  656.           visible 1 
  657.         decoration
  658.     }
  659.  
  660.  
  661.         
  662.   }
  663.  
  664. }