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