Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "ui/menudef.h"
- // team menu
- //
- // defines from ui_shared.h
- {
- assetGlobalDef {
- cursor "ui/assets/3_cursor2" // cursor
- gradientBar "ui/assets/gradientbar2.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" 20 // font 24
- smallFont "fonts/smallfont" 20 // font 16
- bigFont "fonts/bigfont" 48 // font 48
- }
- //*****PLAYER HEALTH*****//
- menuDef {
- name "Player"
- fullScreen MENU_FALSE
- visible MENU_TRUE
- rect 130 433 95 36
- itemDef {
- name "health"
- rect 145 3 22 22
- ownerdraw CG_TEAM_COLORIZED
- visible 0
- decoration
- style 1
- }
- itemDef {
- name "healthok2"
- rect 64 10 63 22
- visible 1
- textalign 2
- decoration
- textstyle 3
- forecolor 0 0 0 1
- textscale .7
- ownerdraw CG_PLAYER_HEALTH
- }
- itemDef {
- name "healthok2"
- rect 66 10 63 22
- visible 1
- textalign 2
- decoration
- textstyle 3
- forecolor 0 0 0 1
- textscale .7
- ownerdraw CG_PLAYER_HEALTH
- }
- itemDef {
- name "healthok2"
- rect 65 11 63 22
- visible 1
- textalign 2
- decoration
- textstyle 3
- forecolor 0 0 0 1
- textscale .7
- ownerdraw CG_PLAYER_HEALTH
- }
- itemDef {
- name "healthok2"
- rect 65 9 63 22
- visible 1
- textalign 2
- decoration
- textstyle 3
- forecolor 0 0 0 1
- textscale .7
- ownerdraw CG_PLAYER_HEALTH
- }
- itemDef {
- name "healthok"
- rect 65 10 63 22
- visible 1
- textalign 2
- decoration
- textstyle 3
- forecolor 1 1 1 1
- textscale .7
- ownerdraw CG_PLAYER_HEALTH
- addColorRange -999 25 1 0 0 1
- addColorRange 26 100 1 1 0 1
- addColorRange 101 999 0 1 0 1
- }
- }
- //*****PLAYER ARMOR*****//
- menuDef {
- name "Armor"
- fullScreen MENU_FALSE
- visible MENU_TRUE
- rect 373 429 95 32
- itemDef {
- name "armor"
- backcolor 0.0 0.0 0.0 0.8
- ownerdraw CG_TEAM_COLORIZED
- rect -38 6 24 24
- visible 0
- decoration
- style 1
- }
- itemDef {
- name "armor2"
- rect 11 14 63 22
- visible 1
- textalign 2
- decoration
- textstyle 3
- forecolor 0 0 0 1
- textscale .7
- ownerdraw CG_PLAYER_ARMOR_VALUE
- addColorRange -99 0 1 1 1 0
- }
- itemDef {
- name "armor2"
- rect 9 14 63 22
- visible 1
- textalign 2
- decoration
- textstyle 3
- forecolor 0 0 0 1
- textscale .7
- ownerdraw CG_PLAYER_ARMOR_VALUE
- addColorRange -99 0 1 1 1 0
- }
- itemDef {
- name "armor2"
- rect 10 15 63 22
- visible 1
- textalign 2
- decoration
- textstyle 3
- forecolor 0 0 0 1
- textscale .7
- ownerdraw CG_PLAYER_ARMOR_VALUE
- addColorRange -99 0 1 1 1 0
- }
- itemDef {
- name "armor2"
- rect 10 13 63 22
- visible 1
- textalign 2
- decoration
- textstyle 3
- forecolor 0 0 0 1
- textscale .7
- ownerdraw CG_PLAYER_ARMOR_VALUE
- addColorRange -99 0 1 1 1 0
- }
- itemDef {
- name "armor2"
- rect 10 14 63 22
- visible 1
- textalign 2
- decoration
- textstyle 3
- forecolor 1 1 1 1
- textscale .7
- ownerdraw CG_PLAYER_ARMOR_VALUE
- addColorRange -999 0 1 0 0 0
- addColorRange 1 100 1 1 0 1
- addColorRange 101 999 0 1 0 1
- }
- }
- //*****CLAN ARENA*****//
- menuDef {
- name "caFrame"
- fullScreen MENU_FALSE
- visible MENU_TRUE
- rect 710 411 64 48
- ownerdrawflag CG_SHOW_CLAN_ARENA
- //*****CLAN ARENA STILL ALIVE COUNT*****//
- itemDef {
- name "playersleftBackground"
- decoration
- rect -250 35 102 18
- visible 1
- backcolor 0.8 0.8 0.8 0.2
- style 2
- }
- itemDef {
- name "redClanPlayers"
- decoration
- ownerdrawflag CG_SHOW_IF_PLYR_IS_ON_BLUE
- ownerdraw CG_RED_CLAN_PLYRS
- rect -178 50 136 40
- visible 1
- textalign ITEM_ALIGN_RIGHT
- textscale .3
- //forecolor 1 0.1 0.1 0.9
- forecolor 1 0.1 0.1 0.9
- }
- itemDef {
- name "blueClanPlayers"
- decoration
- ownerdrawflag CG_SHOW_IF_PLYR_IS_ON_BLUE
- ownerdraw CG_BLUE_CLAN_PLYRS
- rect -230 50 32 16
- visible 1
- textalign ITEM_ALIGN_RIGHT
- textscale .3
- forecolor 1 1 1 0.7
- }
- itemDef {
- name "redClanPlayers"
- decoration
- ownerdrawflag CG_SHOW_IF_PLYR_IS_ON_RED
- ownerdraw CG_RED_CLAN_PLYRS
- rect -230 50 32 16
- visible 1
- textalign ITEM_ALIGN_RIGHT
- textscale .3
- forecolor 1 1 1 0.7
- }
- itemDef {
- name "blueClanPlayers"
- decoration
- ownerdrawflag CG_SHOW_IF_PLYR_IS_ON_RED
- ownerdraw CG_BLUE_CLAN_PLYRS
- rect -178 50 136 40
- visible 1
- textalign ITEM_ALIGN_RIGHT
- textscale .3
- forecolor 1 0.1 0.1 0.9
- }
- itemDef {
- name "ca_vs"
- rect -190 49 136 40
- visible 1
- textalign 2
- textscale .3
- forecolor 1 1 1 0.7
- decoration
- text vs
- }
- }
- //*****SCORES *****//
- menuDef {
- visible 1
- rect 580 387 60 60
- ownerdrawFlag CG_SHOW_ANYNONTEAMGAME
- itemDef {
- decoration visible 1
- ownerdrawFlag CG_SHOW_IF_PLYR_IS_FIRST_PLACE
- rect -8 24 34 22
- backcolor 0 0 1 0.35
- style WINDOW_STYLE_FILLED
- }
- itemDef {
- decoration visible 1
- ownerdrawFlag CG_SHOW_IF_PLYR_IS_FIRST_PLACE
- rect 26 24 34 22
- backcolor 0 1 0 0.20
- style WINDOW_STYLE_FILLED
- }
- itemDef {
- decoration visible 1
- ownerdrawFlag CG_SHOW_IF_PLYR_IS_NOT_FIRST_PLACE
- rect -8 24 34 22
- backcolor 0 1 0 0.20
- style WINDOW_STYLE_FILLED
- }
- itemDef {
- decoration visible 1
- ownerdrawFlag CG_SHOW_IF_PLYR_IS_NOT_FIRST_PLACE
- rect 26 24 34 22
- backcolor 0 0 1 0.35
- style WINDOW_STYLE_FILLED
- }
- itemDef {
- decoration visible 1
- ownerdraw CG_RED_SCORE
- ownerdrawFlag CG_SHOW_IF_PLYR_IS_FIRST_PLACE
- rect 10 40 32 22
- textscale .25
- align 1
- textstyle ITEM_TEXTSTYLE_SHADOWED
- }
- itemDef {
- decoration visible 1
- ownerdraw CG_BLUE_SCORE
- ownerdrawFlag CG_SHOW_IF_PLYR_IS_FIRST_PLACE
- rect 44 40 32 22
- textscale .25
- align 1
- textstyle ITEM_TEXTSTYLE_SHADOWED
- }
- itemDef {
- decoration visible 1
- ownerdraw CG_RED_SCORE
- ownerdrawFlag CG_SHOW_IF_PLYR_IS_NOT_FIRST_PLACE
- rect 10 40 32 22
- textscale .25
- align 1
- textstyle ITEM_TEXTSTYLE_SHADOWED
- }
- itemDef {
- decoration visible 1
- ownerdraw CG_PLAYER_SCORE
- ownerdrawFlag CG_SHOW_IF_PLYR_IS_NOT_FIRST_PLACE
- rect 28 18 32 22
- textscale .25
- textalign ITEM_ALIGN_CENTER
- textstyle ITEM_TEXTSTYLE_SHADOWED
- }
- itemDef {
- decoration visible 1
- rect -10 22 34 22
- border WINDOW_BORDER_FULL
- bordersize 2
- bordercolor 1 1 .8 1
- ownerdrawFlag CG_SHOW_IF_PLYR_IS_FIRST_PLACE
- }
- itemDef {
- decoration visible 1
- rect -9 23 34 22
- border WINDOW_BORDER_FULL
- bordersize 1
- bordercolor .9 .8 .1 1
- ownerdrawFlag CG_SHOW_IF_PLYR_IS_FIRST_PLACE
- }
- itemDef {
- decoration visible 1
- rect 24 22 34 22
- border WINDOW_BORDER_FULL
- bordersize 2
- bordercolor 1 1 .8 1
- ownerdrawFlag CG_SHOW_IF_PLYR_IS_NOT_FIRST_PLACE
- }
- itemDef {
- decoration visible 1
- rect 25 23 34 22
- border WINDOW_BORDER_FULL
- bordersize 1
- bordercolor .9 .8 .1 1
- ownerdrawFlag CG_SHOW_IF_PLYR_IS_NOT_FIRST_PLACE
- }
- }
- menuDef {
- visible 1
- rect 580 387 60 60
- ownerdrawFlag CG_SHOW_ANYTEAMGAME
- itemDef {
- decoration visible 1
- rect -8 24 34 22
- backcolor 1 0 0 0.35
- style WINDOW_STYLE_FILLED
- ownerdrawFlag CG_SHOW_IF_PLYR_IS_ON_RED
- }
- itemDef {
- decoration visible 1
- rect 26 24 34 22
- backcolor 0 0 1 0.35
- style WINDOW_STYLE_FILLED
- ownerdrawFlag CG_SHOW_IF_PLYR_IS_ON_RED
- }
- itemDef {
- decoration visible 1
- ownerdraw CG_RED_SCORE
- rect 10 40 32 22
- textscale 0.25
- align 1
- textstyle ITEM_TEXTSTYLE_SHADOWED
- ownerdrawFlag CG_SHOW_IF_PLYR_IS_ON_RED
- }
- itemDef {
- decoration visible 1
- ownerdraw CG_BLUE_SCORE
- rect 44 40 32 22
- textscale 0.25
- align 1
- textstyle ITEM_TEXTSTYLE_SHADOWED
- ownerdrawFlag CG_SHOW_IF_PLYR_IS_ON_RED
- }
- itemDef {
- decoration visible 1
- rect -10 22 34 22
- border WINDOW_BORDER_FULL
- bordersize 2
- bordercolor 1 1 .8 1
- ownerdrawFlag CG_SHOW_IF_PLYR_IS_ON_RED
- }
- itemDef {
- decoration visible 1
- rect -9 23 34 22
- border WINDOW_BORDER_FULL
- bordersize 1
- bordercolor .9 .8 .1 1
- ownerdrawFlag CG_SHOW_IF_PLYR_IS_ON_RED
- }
- itemDef {
- decoration visible 1
- rect -8 2 34 22
- ownerdraw CG_RED_FLAGSTATUS
- ownerdrawFlag CG_SHOW_IF_PLYR_IS_ON_RED
- }
- itemDef {
- decoration visible 1
- rect 26 2 34 22
- ownerdraw CG_BLUE_FLAGSTATUS
- ownerdrawFlag CG_SHOW_IF_PLYR_IS_ON_RED
- }
- }
- menuDef {
- visible 1
- rect 580 387 60 60
- ownerdrawFlag CG_SHOW_ANYTEAMGAME
- itemDef {
- decoration visible 1
- rect -8 24 34 22
- backcolor 1 0 0 0.35
- style WINDOW_STYLE_FILLED
- ownerdrawFlag CG_SHOW_IF_PLYR_IS_ON_BLUE
- }
- itemDef {
- decoration visible 1
- rect 26 24 34 22
- backcolor 0 0 1 0.35
- style WINDOW_STYLE_FILLED
- ownerdrawFlag CG_SHOW_IF_PLYR_IS_ON_BLUE
- }
- itemDef {
- decoration visible 1
- ownerdraw CG_RED_SCORE
- rect 10 40 32 22
- textscale 0.25
- align 1
- textstyle ITEM_TEXTSTYLE_SHADOWED
- ownerdrawFlag CG_SHOW_IF_PLYR_IS_ON_BLUE
- }
- itemDef {
- decoration visible 1
- ownerdraw CG_BLUE_SCORE
- rect 44 40 32 22
- textscale 0.25
- align 1
- textstyle ITEM_TEXTSTYLE_SHADOWED
- ownerdrawFlag CG_SHOW_IF_PLYR_IS_ON_BLUE
- }
- itemDef {
- decoration visible 1
- rect 24 22 34 22
- border WINDOW_BORDER_FULL
- bordersize 2
- bordercolor 1 1 .8 1
- ownerdrawFlag CG_SHOW_IF_PLYR_IS_ON_BLUE
- }
- itemDef {
- decoration visible 1
- rect 25 23 34 22
- border WINDOW_BORDER_FULL
- bordersize 1
- bordercolor .9 .8 .1 1
- ownerdrawFlag CG_SHOW_IF_PLYR_IS_ON_BLUE
- }
- itemDef {
- decoration visible 1
- rect -8 2 34 22
- ownerdraw CG_RED_FLAGSTATUS
- ownerdrawFlag CG_SHOW_IF_PLYR_IS_ON_BLUE
- }
- itemDef {
- decoration visible 1
- rect 26 2 34 22
- ownerdraw CG_BLUE_FLAGSTATUS
- ownerdrawFlag CG_SHOW_IF_PLYR_IS_ON_BLUE
- }
- }
- //*****CTF FLAG STATUS*****//
- menuDef {
- name "ctfFlags"
- rect 580 378 60 60
- fullScreen MENU_FALSE
- visible MENU_TRUE
- ownerdrawflag CG_SHOW_CTF
- //*****FLAG STATUS ICON*****//
- itemDef {
- name "redflag"
- decoration
- rect -13 34 22 18
- visible 1
- ownerdrawflag CG_SHOW_IF_RED_IS_FIRST_PLACE
- ownerdraw CG_RED_FLAGSTATUS
- }
- itemDef {
- name "blueflag"
- decoration
- rect 38 34 22 18
- visible 1
- ownerdrawflag CG_SHOW_IF_RED_IS_FIRST_PLACE
- ownerdraw CG_BLUE_FLAGSTATUS
- }
- itemDef {
- name "redflag"
- decoration
- rect 38 34 22 18
- visible 1
- ownerdrawflag CG_SHOW_IF_BLUE_IS_FIRST_PLACE
- ownerdraw CG_RED_FLAGSTATUS
- }
- itemDef {
- name "blueflag"
- decoration
- rect -13 34 22 18
- visible 1
- ownerdrawflag CG_SHOW_IF_BLUE_IS_FIRST_PLACE
- ownerdraw CG_BLUE_FLAGSTATUS
- }
- }
- //*****PLAYER PICKUPS*****//
- //*****POWERUP*****//
- //quad, bs, regen ...
- menuDef {
- name "powerup"
- fullScreen MENU_FALSE
- visible MENU_TRUE
- rect 565 330 74 156
- itemDef {
- name "powerupArea"
- decoration
- rect 0 0 35 35
- visible 1
- textscale 0.55
- textstyle 3
- ownerdraw CG_AREA_POWERUP
- special 0 // spacing
- align HUD_VERTICAL
- }
- }
- //*****USEABLE PICKUP*****//
- //tele, injection thingy, suicide thingy etc.
- menuDef {
- name "pickups"
- fullScreen MENU_FALSE
- visible MENU_TRUE
- rect 20 445 32 64
- itemDef {
- name "playeritem"
- decoration
- rect 440 4 25 25
- visible 1
- ownerdraw CG_PLAYER_ITEM
- }
- itemDef {
- name "CTFPOWERUP"
- decoration
- rect 475 4 25 25
- visible 1
- ownerdraw CG_CTF_POWERUP
- }
- }
- //*****PLAYER HAS ENEMY FLAG ICON*****//
- menuDef {
- name "playerHasFlag"
- fullScreen MENU_FALSE
- visible MENU_TRUE
- rect 400 340 48 48
- itemDef {
- name "flag"
- decoration
- rect 70 96 35 35
- visible 1
- style 1
- ownerdraw CG_PLAYER_HASFLAG
- }
- }
- //*****KILL/DEATH MESSAGES*****//
- menuDef {
- name "obit area"
- fullScreen MENU_FALSE
- visible MENU_TRUE
- rect 2 425 65 12
- itemDef {
- decoration
- name "hudObit"
- ownerdraw CG_PLAYER_OBIT
- rect 0 0 65 12
- visible 1
- textscale .25
- }
- }
- //*****CHAT AREA*****//
- menuDef {
- name "chat area"
- fullScreen MENU_FALSE
- visible MENU_TRUE
- rect -4 40 32 256
- itemdef {
- name "chatWindow"
- decoration
- ownerdraw CG_AREA_NEW_CHAT
- rect 5 300 600 100
- visible 1
- }
- }
- //*****GAME TIME*****//
- menuDef {
- name "TimerMenu"
- fullScreen MENU_FALSE
- visible MENU_TRUE
- itemDef {
- name "timerfg"
- decoration
- rect 260 431 120 42
- visible 1
- backcolor 0 0.5 1 0.4
- style 1
- }
- itemDef {
- name "TeamTimer"
- textalign 2
- style 0
- rect 266 467 50 12
- visible 1
- textstyle 6
- decoration
- forecolor 1 1 1 1
- textscale .9
- ownerdraw CG_LEVELTIMER
- }
- itemDef {
- name "CARoundTimer"
- textalign 2
- style 0
- rect 258 45 50 12
- visible 1
- textstyle 3
- decoration
- forecolor 1 0 0 1
- textscale .3
- ownerdraw CG_ROUNDTIMER
- ownerdrawflag CG_SHOW_CLAN_ARENA
- }
- }
- //*****CUSTOM CROSSHAIR (1680x1050)*****//
- menuDef {
- fullScreen MENU_FALSE
- visible MENU_TRUE
- rect 320 240 32 32
- itemDef {
- name "Vertical-Top"
- rect -0.75 -4.2 1.5 8.2
- decoration
- visible 1
- style 1
- backcolor 0 0 0 1
- cvarTest "cg_drawcrosshair"
- showCvar { "22" }
- }
- itemDef {
- name "Horizontal-Left"
- rect -3.6 -1 7.1 2
- style 1
- decoration
- visible 1
- backcolor 0 0 0 1
- cvarTest "cg_drawcrosshair"
- showCvar { "22" }
- }
- itemDef {
- name "Vertical-Top"
- rect -0.5 -3.7 1 7.4
- decoration
- visible 1
- style 1
- backcolor 1 1 1 1
- cvarTest "cg_drawcrosshair"
- showCvar { "22" }
- }
- itemDef {
- name "Horizontal-Left"
- rect -3.2 -0.5 6.4 1
- style 1
- decoration
- visible 1
- backcolor 1 1 1 1
- cvarTest "cg_drawcrosshair"
- showCvar { "22" }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement