home *** CD-ROM | disk | FTP | other *** search
- #include "ui/menudef.h"
-
- // team menu
- //
- // defines from ui_shared.h
-
- {
- assetGlobalDef {
- cursor "ui/assets/3_cursor2" // cursor
- gradientBar "ui/sidrial/hilight.tga" // gradient bar
- fadeClamp 1.0 // sets the fadeup alpha
- fadeCycle 1 // how often fade happens in milliseconds
- fadeAmount 0.1 // amount to adjust alpha per cycle
-
- shadowX 5 // x amount for shadow offset
- shadowY 5 // y amount for shadow offset
- shadowColor 0.1 0.1 0.1 0.25 // shadow color
-
- font "fonts/font" 16 // font
- smallFont "fonts/smallfont" 12 // font
- bigFont "fonts/bigfont" 20 // font
- }
-
-
- menuDef
- {
- name "hud_weapon"
- fullScreen 0
- visible 1
- rect 0 0 640 480
- disableColor 0 0 0 0
-
- itemDef {
- name "hud_background"
- rect 0 0 640 480
- visible 1
- backcolor 0 0 0 0
- style WINDOW_STYLE_FILLED
- decoration
- ownerdraw CG_HUD_BACKGROUND
- }
-
- itemDef {
- name "weapon_model"
- rect 10 150 100 100
- visible 1
- decoration
- style WINDOW_STYLE_FILLED
- ownerdraw CG_PLAYER_WEAPON
- }
-
- itemDef {
- name "weapon_name"
- rect 9 238 110 18
- visible 1
- decoration
- textstyle ITEM_TEXTSTYLE_SHADOWED
- forecolor 0 1 0 1
- textscale .2
- style WINDOW_STYLE_FILLED
- ownerdraw CG_PLAYER_WEAPON_NAME
- }
-
- itemDef {
- name "player_mimic"
- rect 0 335 128 128
-
- visible 1
- style WINDOW_STYLE_FILLED
- ownerdraw CG_PLAYER_MIMIC
- }
-
-
- // -------------------------
- // PLAYER HEALTH METER
- // -------------------------
-
- itemDef {
- name "health_meter"
-
- rect 52 276 87 12
- visible 1
- decoration
- textstyle 3
- forecolor 1 1 1 1
- textscale .75
- ownerdraw CG_HEALTH_METER
- }
-
- itemDef {
- name "health_meter_title"
- style 0
- rect 52 276 87 12
- textalign ITEM_ALIGN_CENTER
- textstyle ITEM_TEXTSTYLE_SHADOWED
- textalignx 43.5
- textaligny 10
- textscale .2
- text "H E A L T H"
- forecolor 0 1 0 1
- decoration
- visible 1
- }
-
- // Amount of shields left
- itemDef {
- name "shield_value"
-
- rect 5 276 33 12
- visible 1
- decoration
- textstyle ITEM_TEXTSTYLE_SHADOWED
- forecolor 0 1 0 1
- textscale .25
- ownerdraw CG_PLAYER_HEALTH
- }
-
- // Amount of shields left
- itemDef {
- name "shield_meter"
-
- rect 52 303 87 12
- visible 1
- decoration
- textstyle 3
- forecolor 1 1 1 1
- textscale .75
- ownerdraw CG_SHIELD_METER
- }
-
- itemDef {
- name "shield_meter_title"
- style 0
- rect 52 303 87 12
- textalign ITEM_ALIGN_CENTER
- textstyle ITEM_TEXTSTYLE_SHADOWED
- textalignx 43.5
- textaligny 10
- textscale .20
- text "A R M O R"
- forecolor 0 1 0 1
- decoration
- visible 1
- }
-
- // Amount of shields left
- itemDef {
- name "shield_value"
-
- rect 5 303 33 12
- visible 1
- decoration
- textstyle ITEM_TEXTSTYLE_SHADOWED
- forecolor 0 1 0 1
- textscale .25
- ownerdraw CG_PLAYER_ARMOR_VALUE
- }
-
- // Amount of ammo left in current weapon
- itemDef {
- name "ammo_meter"
-
- rect 52 156 87 12
- visible 1
- decoration
- textstyle 3
- forecolor 1 1 1 1
- textscale .75
- ownerdraw CG_AMMO_METER
- }
-
- // text that goes over the ammo meter
- itemDef {
- name "ammo_meter_title"
- style 0
- rect 52 156 87 12
- textalign ITEM_ALIGN_CENTER
- textstyle ITEM_TEXTSTYLE_SHADOWED
- textalignx 43.5
- textaligny 10
- textscale .2
- text "A M M O"
- forecolor 0 1 0 1
- decoration
- visible 1
- }
-
- // numerical stat of remaining ammo for current weapon
- itemDef {
- name "ammo_value"
-
- rect 5 156 33 12
- visible 1
- decoration
- textstyle ITEM_TEXTSTYLE_SHADOWED
- forecolor 0 1 0 1
- textscale .25
- ownerdraw CG_PLAYER_AMMO_VALUE
- }
-
- // When you pickup an item, flash the name up here
- itemDef {
- name "pickup_area"
-
- rect 260 50 120 80
- visible 1
- decoration
- textstyle ITEM_TEXTSTYLE_OUTLINED //3
- forecolor 1 1 1 1
- textscale .5
- ownerdraw CG_PICKUP_AREA
- }
-
- itemDef {
- name "inventory_header"
- style 0
- rect 5 59 110 14
- textalign ITEM_ALIGN_CENTER
- textstyle ITEM_TEXTSTYLE_SHADOWED
- textalignx 54
- textaligny 7
- textscale .2
- text "I N V E N T O R Y"
- forecolor 0 1 0 1
- decoration
- visible 1
- }
-
- // When you pickup an item, flash the name up here
- itemDef {
- name "inventory_area"
-
- rect 8 80 185 75
- visible 1
- decoration
- textstyle ITEM_TEXTSTYLE_OUTLINED
- forecolor 0 1 0 1
- special 4
- textscale .2
- ownerdraw CG_INVENTORY_AREA
- }
- // -------------------------
- // Big Red Box
- // -------------------------
-
- itemDef {
- name window
- rect 180 473 460 31
- style 1
- // backcolor 1 0 0 .5
- // forecolor 0 0 0 1
- textscale .32
- visible 1
- decoration
- ownerdraw CG_PLAYER_MESSAGE_AREA
- }
-
- itemDef {
- name "playerScore"
- style 0
- rect 490 454 65 12
- visible 1
- textstyle 3
- text "1st:"
- ownerdraw CG_1STPLACE
- decoration
- forecolor 0 1 0 1
- textscale .2
- cvarTest "ui_singleplayeractive"
- disableCvar { "1" }
- }
-
- itemDef {
- name "playerScore"
- style 0
- rect 575 454 65 12
- visible 1
- textstyle 3
- // text "2nd:"
- ownerdraw CG_2NDPLACE
- decoration
- forecolor 0 1 0 1
- textscale .2
- cvarTest "ui_singleplayeractive"
- disableCvar { "1" }
- }
-
-
- itemDef {
- name "playerScore"
- style 0
- rect 370 442 40 12
- visible 1
- textstyle 3
- text "Score:"
- textaligny 12
- decoration
- forecolor 0 1 0 1
- textscale .2
- ownerdraw CG_PLAYER_SCORE
- cvarTest "ui_singleplayeractive"
- disableCvar { "1" }
- }
-
- itemDef {
- name "playerLocation"
- style 0
- visible 1
- textstyle 3
- decoration
- ownerdraw CG_PLAYER_LOCATION
- textscale .2
- forecolor 0 1 0 1
- rect 370 442 270 12
- cvarTest "ui_singleplayeractive"
- disableCvar { "0" }
- }
-
- }
-