home *** CD-ROM | disk | FTP | other *** search
/ Micromanía 87 / CDMM87_1.ISO / Sidrial / data1.cab / Program_Files / sidrial0.pk3 / ui / ingame_playersetup.menu < prev    next >
Encoding:
Text File  |  2002-01-13  |  5.8 KB  |  296 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. menuDef {
  22.         name "ingame_playersetup"
  23.     style 3
  24.         background "playersetup"
  25.     fullScreen MENU_TRUE 
  26.     rect 0 0 640 480                // Size and position of the menu
  27.     visible MENU_TRUE                // Visible on open
  28.     focusColor 1 1 1 1            // Menu focus color for text and items
  29.  
  30.         onOpen { 
  31.             setitemcolor fadebox backcolor 0 0 0 1 ;
  32.             fadeout fadebox ;
  33.             show format ;
  34.             uiScript update "ui_GetName" ;
  35.         }
  36.     onClose { uiScript update "ui_SetName" }
  37.     onESC { close ingame_playersetup; open ingame_main }
  38.     itemDef {
  39.         name modelselection
  40.         style 1
  41.         ownerdraw UI_PLAYERMODEL
  42.            rect 360 40 310 450 
  43.         decoration 
  44.         visible 1
  45.     }
  46.     itemDef {
  47.           name format                    // Layout
  48.         style 3
  49.          background "filter"
  50.         rect 0 0 640 480
  51.         visible 0    
  52.         decoration
  53.        }
  54.             
  55.     itemDef {                    
  56.         name format
  57.         style 3
  58.           rect 0 0 640 480 
  59.          background "ui/sidrial/sub/white_bar.tga"
  60.         backcolor 0 0 0 0
  61.           forecolor 1 1 1 1
  62.           visible 0
  63.         decoration
  64.        }
  65.     itemDef {
  66.           name format                    // Layout
  67.         style 3
  68.          background "sub_swooshb"
  69.         backcolor 0 0 0 0
  70.           forecolor 1 1 1 1
  71.         rect 0 0 640 480
  72.         visible 0    
  73.         decoration
  74.        }
  75.     itemDef {
  76.           name singleplayer    
  77.           group icon
  78.           style 3
  79.           rect 580 40 40 40 
  80.         background "ui/sidrial/icon_playersetup.tga"
  81.            backcolor 0 0 0 0
  82.           forecolor 1 1 1 1
  83.         visible 1
  84.           decoration
  85.        }
  86.     itemDef {
  87.         name title
  88.         style 3
  89.         rect 10 5 256 32
  90.         background "ui/sidrial/text_playersetup.tga"
  91.         backcolor 0 0 0 0 
  92.         forecolor 1 1 1 1
  93.         visible 1
  94.         decoration
  95.     }
  96.     itemDef {
  97.         name backbar
  98.         group Bar
  99.           style 2
  100.           rect 20 420 210 40
  101.           backcolor .66 1 0 .7 
  102.         border 0
  103.         visible 0    
  104.         action { close ingame_playersetup ; open ingame_main }
  105.         }
  106.     itemDef {
  107.           name back    
  108.           group icon
  109.           style 3
  110.           rect 15 420 40 40 
  111.         background "ui/sidrial/sub/icon_left.tga"
  112.            backcolor 0 0 0 0
  113.           forecolor 1 1 1 1
  114.         visible 1
  115.           decoration
  116.         action { close ingame_playersetup ; open ingame_main }
  117.        }
  118.     itemDef {
  119.         name back
  120.         group words
  121.         type 1
  122.           text "Back"
  123.           style 0    
  124.         textstyle 6
  125.           rect 15 420 150 40
  126.            forecolor .66 1 0 1
  127.         textalignx 45
  128.         textaligny 25
  129.           textalign 0
  130.         textscale .4        
  131.           visible 1     
  132.         mouseEnter { transition backbar 20 440 196 0 20 420 196 40 20 5 ; fadein message_back;}
  133.         mouseExit { transition backbar 20 420 196 40 20 440 196 0 20 5 ; fadeout message_back;}
  134.         action { close ingame_playersetup ; open ingame_main }
  135.     }
  136.     itemDef {
  137.         name modelselection
  138.         ownerdraw UI_PLAYERMODEL
  139.            rect 320 140 260 300
  140.         style 1
  141.         visible 1
  142.         decoration 
  143.     }
  144.     itemDef {
  145.           name namefield
  146.         group "playersettinggroup"
  147.           type ITEM_TYPE_EDITFIELD
  148.         style 0
  149.         text "Player Name:"
  150.         cvar "ui_Name"
  151.         textstyle 6
  152.         maxChars 32
  153.           rect 55 150 215 32 
  154.           textalign ITEM_ALIGN_LEFT        
  155.           textalignx 5
  156.           textaligny 21 
  157.         textscale .4        
  158.     outlinecolor .66 1 0 1
  159.           backcolor 0 0 0 0
  160.           forecolor .66 1 0 1
  161.           border 0
  162.           bordercolor 0 0 0 0
  163.           visible 1 
  164.         mouseenter { show message_name; }
  165.         mouseexit { hide message_name; }
  166.     }
  167.     itemDef {
  168.           name handicapfield
  169.         style 0    
  170.         text "Handicap:"
  171.         ownerdraw UI_HANDICAP
  172.         textstyle 6
  173.         rect 55 205 215 32 
  174.           textalign ITEM_ALIGN_LEFT        
  175.           textalignx 5
  176.           textaligny 21 
  177.         textscale .4        
  178.           outlinecolor 1 .5 .5 .5
  179.           backcolor 0 0 0 0
  180.           forecolor .66 1 0 1
  181.           border 0
  182.           bordercolor 0 0 0 0
  183.           visible 1 
  184.         mouseEnter { show message_handicap } 
  185.         mouseExit { hide message_handicap } 
  186.     }
  187.     itemDef {
  188.         name words
  189.         type 0
  190.           text "Select Player Model:"
  191.           style 0    
  192.         textstyle 6
  193.           rect 55 260 150 30
  194.            forecolor .66 1 0 1
  195.         textalignx 5
  196.         textaligny 30
  197.           textalign 0
  198.         textscale .4    
  199.           visible 1    
  200.         decoration
  201.     }
  202.         itemDef {
  203.         name headlist
  204.           rect 60 300 250 80
  205.         group grpquaketype        
  206.         type ITEM_TYPE_LISTBOX
  207.         style WINDOW_STYLE_FILLED
  208.         elementwidth 61.75
  209.         elementheight 61.75
  210.         elementtype LISTBOX_IMAGE
  211.         feeder FEEDER_Q3HEADS
  212.         horizontalscroll
  213.         border 0
  214.         backcolor .66 1 0 .25
  215.         visible 1
  216.         mouseenter { show message_model; setitemcolor headlist bordercolor 1 1 1 1 ; }
  217.         mouseexit { hide message_model; setitemcolor headlist bordercolor .66 1 0 1 ; }
  218.     }
  219.  
  220. //Help Messages//
  221. itemDef {
  222.     name message_back
  223.     group grpmessage
  224.     style 0 
  225.     rect 320 420 128 30
  226.     textstyle 6
  227.     textalign 1
  228.     textalignx 0
  229.     textaligny 25
  230.     textscale .3
  231.     text "Back to Main Menu"
  232.     forecolor 1 1 1 1
  233.     decoration 
  234.     visible 0
  235.     }
  236. itemDef {
  237.     name message_name
  238.     group grpmessage
  239.     style 0 
  240.     rect 320 420 128 30
  241.     textalign 1
  242.     textstyle 6
  243.     textalignx 0
  244.     textaligny 25
  245.     textscale .3
  246.     text "Type Your Player Name"
  247.     forecolor 1 1 1 1
  248.     decoration 
  249.     visible 0
  250.     }
  251. itemDef {
  252.     name message_handicap
  253.     group grpmessage
  254.     style 0 
  255.     rect 320 420 128 30
  256.     textalign 1
  257.     textstyle 6
  258.     textalignx 0
  259.     textaligny 25
  260.     textscale .3
  261.     text "Click to Change Handicap"
  262.     forecolor 1 1 1 1
  263.     decoration 
  264.     visible 0
  265.     }
  266. itemDef {
  267.     name message_model
  268.     group grpmessage
  269.     style 0 
  270.     rect 320 420 128 30
  271.     textalign 1
  272.     textstyle 6
  273.     textalignx 0
  274.     textaligny 25
  275.     textscale .3
  276.     text "Click to Choose Your Player Model"
  277.     forecolor 1 1 1 1
  278.     decoration 
  279.     visible 0
  280.     }
  281.     itemDef {
  282.           name fadebox                    // Box for fading in menus
  283.           style WINDOW_STYLE_FILLED
  284.          background "ui/sidrial/fadebox.tga"
  285.         forecolor 0 0 0 1
  286.         backcolor 0 0 0 1
  287.         rect 0 0 640 480
  288.           visible 1 
  289.         decoration
  290.     }
  291.  
  292.  
  293.         
  294.   }
  295.  
  296. }