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

  1. #include "ui/menudef.h"
  2.  
  3. // team menu
  4. // 
  5. // defines from ui_shared.h
  6.  
  7. {
  8.     assetGlobalDef {
  9.         cursor "ui/assets/3_cursor2"            // cursor    
  10.         gradientBar "ui/sidrial/hilight.tga"    // gradient bar
  11.         fadeClamp 1.0                    // sets the fadeup alpha
  12.         fadeCycle 1                    // how often fade happens in milliseconds
  13.         fadeAmount 0.1                    // amount to adjust alpha per cycle
  14.  
  15.         shadowX  5                    // x amount for shadow offset
  16.         shadowY  5                    // y amount for shadow offset
  17.         shadowColor 0.1 0.1 0.1 0.25            // shadow color
  18.  
  19.         font "fonts/font" 16                // font
  20.         smallFont "fonts/smallfont" 12            // font
  21.         bigFont "fonts/bigfont" 20            // font
  22.     }
  23.  
  24.  
  25.     menuDef 
  26.     {
  27.         name "hud_weapon"
  28.         fullScreen 0
  29.         visible 1
  30.         rect 0 0 640 480
  31.         disableColor 0 0 0 0
  32.  
  33.         itemDef {
  34.             name "hud_background"
  35.             rect 0 0 640 480
  36.             visible 1
  37.             backcolor 0 0 0 0
  38.             style WINDOW_STYLE_FILLED
  39.             decoration
  40.             ownerdraw CG_HUD_BACKGROUND
  41.         }
  42.  
  43.         itemDef {
  44.             name "weapon_model"
  45.             rect 10 150 100 100
  46.             visible 1
  47.             decoration
  48.             style WINDOW_STYLE_FILLED
  49.             ownerdraw CG_PLAYER_WEAPON
  50.         }
  51.  
  52.         itemDef {
  53.             name "weapon_name"
  54.             rect 9 238 110 18
  55.             visible 1
  56.             decoration
  57.             textstyle ITEM_TEXTSTYLE_SHADOWED
  58.             forecolor 0 1 0 1
  59.             textscale .2
  60.             style WINDOW_STYLE_FILLED
  61.             ownerdraw CG_PLAYER_WEAPON_NAME
  62.         }
  63.  
  64.         itemDef {
  65.             name "player_mimic"
  66.             rect 0 335 128 128
  67.  
  68.             visible 1
  69.             style WINDOW_STYLE_FILLED
  70.             ownerdraw CG_PLAYER_MIMIC
  71.         }
  72.  
  73.  
  74.         // -------------------------
  75.         //    PLAYER HEALTH METER
  76.         // -------------------------
  77.  
  78.         itemDef {
  79.             name "health_meter"
  80.             
  81.             rect 52 276 87 12
  82.             visible 1
  83.             decoration
  84.             textstyle 3
  85.             forecolor 1 1 1 1
  86.             textscale .75
  87.             ownerdraw CG_HEALTH_METER
  88.         }
  89.  
  90.         itemDef {
  91.             name "health_meter_title"
  92.             style 0 
  93.             rect 52 276 87 12
  94.             textalign ITEM_ALIGN_CENTER 
  95.             textstyle ITEM_TEXTSTYLE_SHADOWED
  96.             textalignx 43.5
  97.             textaligny 10
  98.             textscale .2
  99.             text "H E A L T H"
  100.             forecolor 0 1 0 1
  101.             decoration 
  102.             visible 1
  103.         }
  104.  
  105.         // Amount of shields left
  106.         itemDef {
  107.             name "shield_value"
  108.             
  109.             rect 5 276 33 12
  110.             visible 1
  111.             decoration
  112.             textstyle ITEM_TEXTSTYLE_SHADOWED
  113.             forecolor 0 1 0 1
  114.             textscale .25
  115.             ownerdraw CG_PLAYER_HEALTH
  116.         }
  117.  
  118.         // Amount of shields left
  119.         itemDef {
  120.             name "shield_meter"
  121.             
  122.             rect 52 303 87 12
  123.             visible 1
  124.             decoration
  125.             textstyle 3
  126.             forecolor 1 1 1 1
  127.             textscale .75
  128.             ownerdraw CG_SHIELD_METER
  129.         }
  130.  
  131.         itemDef {
  132.             name "shield_meter_title"
  133.             style 0 
  134.             rect 52 303 87 12
  135.             textalign ITEM_ALIGN_CENTER 
  136.             textstyle ITEM_TEXTSTYLE_SHADOWED
  137.             textalignx 43.5
  138.             textaligny 10
  139.             textscale .20
  140.             text "A R M O R"
  141.             forecolor 0 1 0 1
  142.             decoration 
  143.             visible 1
  144.         }
  145.  
  146.         // Amount of shields left
  147.         itemDef {
  148.             name "shield_value"
  149.             
  150.             rect 5 303 33 12
  151.             visible 1
  152.             decoration
  153.             textstyle ITEM_TEXTSTYLE_SHADOWED
  154.             forecolor 0 1 0 1
  155.             textscale .25
  156.             ownerdraw CG_PLAYER_ARMOR_VALUE
  157.         }
  158.  
  159.         // Amount of ammo left in current weapon
  160.         itemDef {
  161.             name "ammo_meter"
  162.             
  163.             rect 52 156 87 12
  164.             visible 1
  165.             decoration
  166.             textstyle 3
  167.             forecolor 1 1 1 1
  168.             textscale .75
  169.             ownerdraw CG_AMMO_METER
  170.         }
  171.  
  172.         // text that goes over the ammo meter
  173.         itemDef {
  174.             name "ammo_meter_title"
  175.             style 0 
  176.             rect 52 156 87 12
  177.             textalign ITEM_ALIGN_CENTER 
  178.             textstyle ITEM_TEXTSTYLE_SHADOWED
  179.             textalignx 43.5
  180.             textaligny 10
  181.             textscale .2
  182.             text "A M M O"
  183.             forecolor 0 1 0 1
  184.             decoration 
  185.             visible 1
  186.         }
  187.  
  188.         // numerical stat of remaining ammo for current weapon
  189.         itemDef {
  190.             name "ammo_value"
  191.             
  192.             rect 5 156 33 12
  193.             visible 1
  194.             decoration
  195.             textstyle ITEM_TEXTSTYLE_SHADOWED
  196.             forecolor 0 1 0 1
  197.             textscale .25
  198.             ownerdraw CG_PLAYER_AMMO_VALUE
  199.         }
  200.  
  201.         // When you pickup an item, flash the name up here
  202.         itemDef {
  203.             name "pickup_area"
  204.             
  205.             rect 260 50 120 80
  206.             visible 1
  207.             decoration
  208.             textstyle ITEM_TEXTSTYLE_OUTLINED //3
  209.             forecolor 1 1 1 1
  210.             textscale .5
  211.             ownerdraw CG_PICKUP_AREA
  212.         }
  213.  
  214.         itemDef {
  215.             name "inventory_header"
  216.             style 0 
  217.             rect 5 59 110 14
  218.             textalign ITEM_ALIGN_CENTER 
  219.             textstyle ITEM_TEXTSTYLE_SHADOWED
  220.             textalignx 54
  221.             textaligny 7
  222.             textscale .2
  223.             text "I N V E N T O R Y"
  224.             forecolor 0 1 0 1
  225.             decoration 
  226.             visible 1
  227.         }
  228.  
  229.         // When you pickup an item, flash the name up here
  230.         itemDef {
  231.             name "inventory_area"
  232.  
  233.             rect 8 80 185 75
  234.             visible 1
  235.             decoration
  236.             textstyle ITEM_TEXTSTYLE_OUTLINED
  237.             forecolor 0 1 0 1
  238.             special 4
  239.             textscale .2
  240.             ownerdraw CG_INVENTORY_AREA
  241.         }
  242.         // -------------------------
  243.         //   Big Red Box
  244.         // -------------------------
  245.  
  246.         itemDef {
  247.             name window
  248.             rect 180 473 460 31
  249.             style 1
  250.     //        backcolor 1 0 0 .5
  251.     //        forecolor 0 0 0 1
  252.             textscale .32
  253.             visible 1
  254.             decoration
  255.             ownerdraw CG_PLAYER_MESSAGE_AREA
  256.         }
  257.  
  258.     itemDef {
  259.               name "playerScore"
  260.         style 0
  261.             rect 490 454 65 12
  262.         visible 1
  263.         textstyle 3
  264.         text "1st:"
  265.         ownerdraw CG_1STPLACE 
  266.             decoration
  267.         forecolor 0 1 0 1
  268.         textscale .2
  269.         cvarTest "ui_singleplayeractive"
  270.         disableCvar { "1" }
  271.     }
  272.  
  273.     itemDef {
  274.         name "playerScore"
  275.         style 0
  276.         rect 575 454 65 12
  277.         visible 1
  278.         textstyle 3
  279. //        text "2nd:"
  280.         ownerdraw CG_2NDPLACE
  281.         decoration
  282.         forecolor 0 1 0 1
  283.         textscale .2
  284.         cvarTest "ui_singleplayeractive"
  285.         disableCvar { "1" }
  286.     }
  287.  
  288.  
  289.     itemDef {
  290.         name "playerScore"
  291.         style 0
  292.         rect 370 442 40 12
  293.         visible 1
  294.         textstyle 3
  295.         text "Score:"
  296.         textaligny 12
  297.         decoration
  298.         forecolor 0 1 0 1
  299.         textscale .2
  300.         ownerdraw CG_PLAYER_SCORE
  301.         cvarTest "ui_singleplayeractive"
  302.         disableCvar { "1" }
  303.     }
  304.  
  305.     itemDef {
  306.         name "playerLocation"
  307.         style 0
  308.         visible 1
  309.         textstyle 3
  310.         decoration
  311.         ownerdraw CG_PLAYER_LOCATION 
  312.         textscale .2
  313.         forecolor 0 1 0 1
  314.         rect 370 442 270 12
  315.         cvarTest "ui_singleplayeractive"
  316.         disableCvar { "0" }
  317.     }
  318.  
  319. }
  320.