I mixed two HUDs from http://qlhud.core.ws/ and something went wrong.
Here's a screenshot:
http://img854.imageshack.us/img854/5985/shot0002me.jpg
As you can see one number of the score is at the wrong place.
This only happens in duel and FFA, in other modes the scores are at the right place.
Anyone can find the mistake?
Here's a screenshot:
http://img854.imageshack.us/img854/5985/shot0002me.jpg
As you can see one number of the score is at the wrong place.
This only happens in duel and FFA, in other modes the scores are at the right place.
#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 .1 // amount to adjust alpha per cycle
shadowX 5 // x amount for shadow offset
shadowY 5 // y amount for shadow offset
shadowColor .1 .1 .1 .25 // shadow color
font "fonts/font" 24 // font
smallFont "fonts/smallfont" 16 // font
bigFont "fonts/bigfont" 48 // font
}
// Notification AREA
menuDef {
name "msgsArea"
fullScreen MENU_FALSE
visible MENU_TRUE
rect 470 4 64 36
itemDef {
name tourneyMsg
rect 0 0 32 32
style 1
background "sprites/foe2.png"
visible 1
ownerdrawflag CG_SHOW_IF_NOTICE_PRESENT
decoration
backcolor 1 1 1 1.0
}
itemDef {
name gotMsg
rect 34 0 32 32
style 1
background "sprites/balloon4.png"
visible 1
ownerdrawflag CG_SHOW_IF_MSG_PRESENT
decoration
backcolor 1 1 1 1.0
}
}
// Graphical Obits
menuDef {
name "obit area"
fullScreen MENU_FALSE
visible MENU_TRUE
rect 10 62 65 12
itemDef {
name hudObit
ownerdraw CG_PLAYER_OBIT
rect 0 250 65 12
visible 1
decoration
textscale .3
}
}
//drawspeed [UPS001]
menuDef
{
name "speedometer"
rect 600 188 20 12
visible 0
itemDef
{
name "ups"
rect -2 98 20 12
visible 1
textStyle 0
textScale 0.30
foreColor 0.8 0.8 0.8 0.85
ownerdraw CG_SPEEDOMETER
}
}
// Chat Area
menuDef {
name "chat area"
fullScreen MENU_FALSE
visible MENU_TRUE
rect 0 312 474 98
itemdef {
name chatWindow
ownerdraw CG_AREA_NEW_CHAT
rect 6 4 430 88
visible 1
decoration
}
}
//*****PLAYER HEALTH*****//
//health value/icon
menuDef {
name "Player"
fullScreen MENU_FALSE
visible MENU_TRUE
rect 252 438 60 25
//THIS TEXT SHOULD BE RIGHT-ALIGNED (currently centered)
itemDef {
name "healthok"
rect 0 0 60 25
visible 1
textalign 2
decoration
textstyle ITEM_TEXTSTYLE_SHADOWEDMORE
forecolor 1 1 1 1
textscale .60
ownerdraw CG_PLAYER_HEALTH
addColorRange -999 30 1 0 0 1
addColorRange -26 100 1 .78 0 1
addColorRange 101 999 1 1 1 1
}
}
menuDef {
name "sepha"
fullScreen MENU_FALSE
visible MENU_TRUE
rect 320 437 2 25
itemDef {
name "a"
rect 0 0 1 35
visible 1
backcolor 1 1 1 1
style 1
decoration
}
}
//*****ARMOR*****//
// armor value/icon
menuDef {
name "Armor"
fullScreen MENU_FALSE
visible MENU_TRUE
rect 330 438 60 25
itemDef {
name "armor2"
rect 0 0 60 25
visible 1
decoration
textstyle ITEM_TEXTSTYLE_SHADOWEDMORE
textscale .56
textalign 0
ownerdraw CG_PLAYER_ARMOR_VALUE
addColorRange -999 99 1 .78 0 1
addColorRange 100 999 1 1 1 1
}
}
// GAME TIME
menudef {
name "timerFrame"
rect 290 170 135 44
fullscreen MENU_FALSE
visible MENU_TRUE
itemDef {
name "Timer"
textalign 2
style 0
rect 0 220 50 12
visible 1
textstyle ITEM_TEXTSTYLE_SHADOWEDMORE
decoration
forecolor 1 1 1 1
textscale .60
ownerdraw CG_LEVELTIMER
}
itemDef {
name "roundTimer"
textalign 2
style 0
rect 5 0 50 12
visible 1
textstyle ITEM_TEXTSTYLE_SHADOWEDMORE
decoration
forecolor 1 1 1 1
textscale .36
ownerdraw CG_ROUNDTIMER
}
}
//*****SCORES*****//
#define SCORES_1ST_POS 0 0
#define SCORES_2ND_POS 0 17
//top
menuDef {
name "TopScoresBG"
fullScreen MENU_FALSE
visible MENU_TRUE
rect SCORES_1ST_POS 50 16
itemDef {
name "SelfTLeft"
rect 0 0 16 16
visible 1
ownerdraw CG_TEAM_COLORIZED
ownerdrawflag CG_SHOW_IF_PLYR_IS_FIRST_PLACE
decoration
style 1
background "ui/assets/hud/teamonl.tga"
}
itemDef {
name "SelfTMid"
rect 16 0 18 16
visible 1
ownerdraw CG_TEAM_COLORIZED
ownerdrawflag CG_SHOW_IF_PLYR_IS_FIRST_PLACE
decoration
style 1
background "ui/assets/hud/teamonm.tga"
}
itemDef {
name "SelfTRight"
rect 34 0 16 16
visible 1
ownerdraw CG_TEAM_COLORIZED
ownerdrawflag CG_SHOW_IF_PLYR_IS_FIRST_PLACE
decoration
style 1
background "ui/assets/hud/teamonr.tga"
}
itemDef {
name "TLeft"
rect 0 0 16 16
visible 1
backcolor 1 1 1 0.25
ownerdrawflag CG_SHOW_IF_PLYR_IS_NOT_FIRST_PLACE
decoration
style 1
background "ui/assets/hud/teamonl.tga"
}
itemDef {
name "TMid"
rect 16 0 18 16
visible 1
backcolor 1 1 1 0.25
ownerdrawflag CG_SHOW_IF_PLYR_IS_NOT_FIRST_PLACE
decoration
style 1
background "ui/assets/hud/teamonm.tga"
}
itemDef {
name "TRight"
rect 34 0 16 16
visible 1
backcolor 1 1 1 0.25
ownerdrawflag CG_SHOW_IF_PLYR_IS_NOT_FIRST_PLACE
decoration
style 1
background "ui/assets/hud/teamonr.tga"
}
}
//bottom
menuDef {
name "BottomScoresBG"
fullScreen MENU_FALSE
visible MENU_TRUE
rect SCORES_2ND_POS 50 16
itemDef {
name "SelfTLeft"
rect 0 0 16 16
visible 1
ownerdraw CG_TEAM_COLORIZED
ownerdrawflag CG_SHOW_IF_PLYR_IS_NOT_FIRST_PLACE
decoration
style 1
background "ui/assets/hud/teamonl.tga"
}
itemDef {
name "SelfTMid"
rect 16 0 18 16
visible 1
ownerdraw CG_TEAM_COLORIZED
ownerdrawflag CG_SHOW_IF_PLYR_IS_NOT_FIRST_PLACE
decoration
style 1
background "ui/assets/hud/teamonm.tga"
}
itemDef {
name "SelfTRight"
rect 34 0 16 16
visible 1
ownerdraw CG_TEAM_COLORIZED
ownerdrawflag CG_SHOW_IF_PLYR_IS_NOT_FIRST_PLACE
decoration
style 1
background "ui/assets/hud/teamonr.tga"
}
itemDef {
name "TLeft"
rect 0 0 16 16
visible 1
backcolor 1 1 1 0.25
ownerdrawflag CG_SHOW_IF_PLYR_IS_FIRST_PLACE
decoration
style 1
background "ui/assets/hud/teamonl.tga"
}
itemDef {
name "TMid"
rect 16 0 18 16
visible 1
backcolor 1 1 1 0.25
ownerdrawflag CG_SHOW_IF_PLYR_IS_FIRST_PLACE
decoration
style 1
background "ui/assets/hud/teamonm.tga"
}
itemDef {
name "TRight"
rect 34 0 16 16
visible 1
backcolor 1 1 1 0.25
ownerdrawflag CG_SHOW_IF_PLYR_IS_FIRST_PLACE
decoration
style 1
background "ui/assets/hud/teamonr.tga"
}
}
// RED TEAM SCORE BAR TOP
menuDef {
name "redTeamScores"
fullScreen MENU_FALSE
visible MENU_TRUE
rect SCORES_1ST_POS 50 16
ownerdrawflag CG_SHOW_IF_RED_IS_FIRST_PLACE
// red team score
itemdef {
name "blueTeamScore"
ownerdraw CG_1STPLACE
rect 28 12 35 9
visible 1
forecolor 1 1 1 0.8
textscale .24
textalign 2
textstyle 2
decoration
ownerdrawflag CG_SHOW_ANYTEAMGAME
}
//TDM marker
itemDef {
name "clanArena"
rect -4 -4 23 23
visible 1
backcolor 1 1 1 1
decoration
style 1
cvartest g_gametype
showcvar { "3" }
background "ui/assets/score/ca_arrow_red.tga"
}
// clan arena count
itemDef {
name "clanArena"
rect 2 2 21 11
visible 1
backcolor 1 1 1 1
decoration
style 1
cvartest g_gametype
showcvar { "4" ; "9" }
background "ui/assets/score/ca_score_red.tga"
}
itemdef {
name "redClanPlayers"
cvartest g_gametype
showcvar { "4" ; "9" }
ownerdraw CG_RED_CLAN_PLYRS
rect 14 11 136 40
visible 1
textscale .18
forecolor 1 1 1 0.65
decoration
}
// ctf icons
itemDef {
name "f"
rect 2 2 11 11
visible 1
bordercolor 1 1 1 1
decoration
style 3
ownerdrawflag CG_SHOW_HARVESTER
background "icons/skull_red.tga"
}
itemDef {
name "redflag"
rect 2 2 11 11
visible 1
decoration
ownerdrawflag CG_SHOW_CTF
ownerdraw CG_RED_FLAGSTATUS
}
itemDef {
name "oneflagstatus"
rect 2 2 11 11
visible 1
decoration
ownerdraw CG_ONEFLAG_STATUS
}
}
// RED TEAM SCORE BAR BOTTOM
menuDef {
name "redTeamScores"
fullScreen MENU_FALSE
visible MENU_TRUE
rect SCORES_2ND_POS 50 16
ownerdrawflag CG_SHOW_IF_BLUE_IS_FIRST_PLACE
// red team score
itemdef {
name "blueTeamScore"
ownerdraw CG_1STPLACE
rect 28 12 35 9
visible 1
forecolor 1 1 1 0.8
textscale .24
textalign 2
textstyle 2
decoration
ownerdrawflag CG_SHOW_ANYTEAMGAME
}
//TDM marker
itemDef {
name "clanArena"
rect -4 -4 23 23
visible 1
backcolor 1 1 1 1
decoration
style 1
cvartest g_gametype
showcvar { "3" }
background "ui/assets/score/ca_arrow_red.tga"
}
// clan arena count
itemDef {
name "clanArena"
rect 2 2 21 11
visible 1
backcolor 1 1 1 1
decoration
style 1
cvartest g_gametype
showcvar { "4" ; "9" }
background "ui/assets/score/ca_score_red.tga"
}
itemdef {
name "redClanPlayers"
cvartest g_gametype
showcvar { "4" ; "9" }
ownerdraw CG_RED_CLAN_PLYRS
rect 14 11 136 40
visible 1
textscale .18
forecolor 1 1 1 0.65
decoration
}
// ctf icons
itemDef {
name "f"
rect 2 2 11 11
visible 1
bordercolor 1 1 1 1
decoration
style 3
ownerdrawflag CG_SHOW_HARVESTER
background "icons/skull_red.tga"
}
itemDef {
name "redflag"
rect 2 2 11 11
visible 1
decoration
ownerdrawflag CG_SHOW_CTF
ownerdraw CG_RED_FLAGSTATUS
}
itemDef {
name "oneflagstatus"
rect 2 2 11 11
visible 1
decoration
ownerdraw CG_ONEFLAG_STATUS
}
}
// BLUE TEAM SCORE BAR TOP
menuDef {
name "blueTeamScores"
fullScreen MENU_FALSE
visible MENU_TRUE
rect SCORES_1ST_POS 50 16
ownerdrawflag CG_SHOW_IF_BLUE_IS_FIRST_PLACE
// blue team score
itemdef {
name "blueTeamScore"
ownerdraw CG_2NDPLACE
rect 28 12 35 9
visible 1
forecolor 1 1 1 0.8
textscale .24
textalign 2
textstyle 2
decoration
ownerdrawflag CG_SHOW_ANYTEAMGAME
}
//TDM marker
itemDef {
name "clanArena"
rect -4 -4 23 23
visible 1
backcolor 1 1 1 1
decoration
style 1
cvartest g_gametype
showcvar { "3" }
background "ui/assets/score/ca_arrow_blue.tga"
}
//clan arena count
itemDef {
name "clanArena"
rect 2 2 21 11
visible 1
backcolor 1 1 1 1
decoration
style 1
cvartest g_gametype
showcvar { "4" ; "9" }
background "ui/assets/score/ca_score_blu.tga"
}
itemdef {
name "blueClanPlayers"
cvartest g_gametype
showcvar { "4" ; "9" }
ownerdraw CG_BLUE_CLAN_PLYRS
rect 14 11 136 40
visible 1
textscale .18
forecolor 1 1 1 0.65
decoration
}
// ctf icons
itemDef {
name "f"
rect 2 2 11 11
visible 1
bordercolor 1 1 1 .75
decoration
style 3
ownerdrawflag CG_SHOW_HARVESTER
background "icons/skull_blue.tga"
}
itemDef {
name "blueflag"
rect 2 2 11 11
visible 1
decoration
ownerdrawflag CG_SHOW_CTF
ownerdraw CG_BLUE_FLAGSTATUS
}
itemDef {
name "oneflagstatus"
rect 2 2 11 11
visible 1
decoration
ownerdraw CG_ONEFLAG_STATUS
}
}
// BLUE TEAM SCORE BAR BOTTOM
menuDef {
name "blueTeamScores"
fullScreen MENU_FALSE
visible MENU_TRUE
rect SCORES_2ND_POS 50 16
ownerdrawflag CG_SHOW_IF_RED_IS_FIRST_PLACE
// blue team score
itemdef {
name "blueTeamScore"
ownerdraw CG_2NDPLACE
rect 28 12 35 9
visible 1
forecolor 1 1 1 0.8
textscale .24
textalign 2
textstyle 2
decoration
ownerdrawflag CG_SHOW_ANYTEAMGAME
}
//TDM marker
itemDef {
name "clanArena"
rect -4 -4 23 23
visible 1
backcolor 1 1 1 1
decoration
style 1
cvartest g_gametype
showcvar { "3" }
background "ui/assets/score/ca_arrow_blue.tga"
}
//clan arena count
itemDef {
name "clanArena"
rect 2 2 21 11
visible 1
backcolor 1 1 1 1
decoration
style 1
cvartest g_gametype
showcvar { "4" ; "9" }
background "ui/assets/score/ca_score_blu.tga"
}
itemdef {
name "blueClanPlayers"
cvartest g_gametype
showcvar { "4" ; "9" }
ownerdraw CG_BLUE_CLAN_PLYRS
rect 14 11 136 40
visible 1
textscale .18
forecolor 1 1 1 0.65
decoration
}
// ctf icons
itemDef {
name "f"
rect 2 2 11 11
visible 1
bordercolor 1 1 1 .75
decoration
style 3
ownerdrawflag CG_SHOW_HARVESTER
background "icons/skull_blue.tga"
}
itemDef {
name "blueflag"
rect 2 2 11 11
visible 1
decoration
ownerdrawflag CG_SHOW_CTF
ownerdraw CG_BLUE_FLAGSTATUS
}
itemDef {
name "oneflagstatus"
rect 2 2 11 11
visible 1
decoration
ownerdraw CG_ONEFLAG_STATUS
}
}
// SCORE - FIRST PLACE
menuDef {
name "1STPlace"
fullScreen MENU_FALSE
visible MENU_TRUE
rect SCORES_1ST_POS 50 16
ownerdrawflag CG_SHOW_ANYNONTEAMGAME
itemDef {
name "1st place"
visible 1
rect -1597 13 1640 40
textscale .26
ownerdraw CG_1ST_PLACE_SCORE
decoration
}
}
// SCORE - SECOND PLACE
menuDef {
name "Trailing"
fullScreen MENU_FALSE
visible MENU_TRUE
rect SCORES_2ND_POS 50 16
ownerdrawflag CG_SHOW_ANYNONTEAMGAME
itemDef {
name "2nd place"
visible 1
rect -6597 13 6640 40
textscale .26
ownerdraw CG_2ND_PLACE_SCORE
decoration
}
// *****Player Pickups*****//
menuDef {
name "powerup"
fullScreen MENU_FALSE
visible MENU_TRUE
rect 550 280 74 156
itemDef {
name "powerupArea"
rect 0 0 40 26
visible 1
style 0
forecolor 0.8 0 0 1
textalign 1
textscale .72
textstyle ITEM_TEXTSTYLE_SHADOWEDMORE
decoration
ownerdraw CG_AREA_POWERUP
special 0 // spacing
align HUD_VERTICAL
}
}
menuDef {
name "pickups"
fullScreen MENU_FALSE
visible MENU_TRUE
rect 575 250 25 32
itemDef {
// runes
name "CTFPOWERUP"
rect 0 0 25 25
visible 1
decoration
ownerdraw CG_CTF_POWERUP
//ownerdraw CG_PLAYER_ITEM
}
itemDef {
// useable pickups
name "playeritem"
rect 30 0 25 25
visible 1
decoration
ownerdraw CG_PLAYER_ITEM
}
}
// player has flag
menuDef {
name "playerHasFlag"
fullScreen MENU_FALSE
visible MENU_TRUE
rect 583 210 385 32
itemDef {
name "playerRect"
rect 0 0 40 36
style 3
background "ui/assets/hud/flag"
visible 1
ownerdrawflag CG_SHOW_IF_PLAYER_HAS_FLAG
}
itemDef {
name "flag"
rect 1 1 34 34
visible 1
decoration
style 1
ownerdraw CG_PLAYER_HASFLAG
}
itemDef {
name "skulls"
rect 1 1 34 34
visible 1
decoration
textaligny 12
textalignx 0
textscale .333
textstyle ITEM_TEXTSTYLE_SHADOWEDMORE
ownerdraw CG_HARVESTER_SKULLS
//ownerdraw CG_PLAYER_ITEM
}
}
}
//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 .1 // amount to adjust alpha per cycle
shadowX 5 // x amount for shadow offset
shadowY 5 // y amount for shadow offset
shadowColor .1 .1 .1 .25 // shadow color
font "fonts/font" 24 // font
smallFont "fonts/smallfont" 16 // font
bigFont "fonts/bigfont" 48 // font
}
// Notification AREA
menuDef {
name "msgsArea"
fullScreen MENU_FALSE
visible MENU_TRUE
rect 470 4 64 36
itemDef {
name tourneyMsg
rect 0 0 32 32
style 1
background "sprites/foe2.png"
visible 1
ownerdrawflag CG_SHOW_IF_NOTICE_PRESENT
decoration
backcolor 1 1 1 1.0
}
itemDef {
name gotMsg
rect 34 0 32 32
style 1
background "sprites/balloon4.png"
visible 1
ownerdrawflag CG_SHOW_IF_MSG_PRESENT
decoration
backcolor 1 1 1 1.0
}
}
// Graphical Obits
menuDef {
name "obit area"
fullScreen MENU_FALSE
visible MENU_TRUE
rect 10 62 65 12
itemDef {
name hudObit
ownerdraw CG_PLAYER_OBIT
rect 0 250 65 12
visible 1
decoration
textscale .3
}
}
//drawspeed [UPS001]
menuDef
{
name "speedometer"
rect 600 188 20 12
visible 0
itemDef
{
name "ups"
rect -2 98 20 12
visible 1
textStyle 0
textScale 0.30
foreColor 0.8 0.8 0.8 0.85
ownerdraw CG_SPEEDOMETER
}
}
// Chat Area
menuDef {
name "chat area"
fullScreen MENU_FALSE
visible MENU_TRUE
rect 0 312 474 98
itemdef {
name chatWindow
ownerdraw CG_AREA_NEW_CHAT
rect 6 4 430 88
visible 1
decoration
}
}
//*****PLAYER HEALTH*****//
//health value/icon
menuDef {
name "Player"
fullScreen MENU_FALSE
visible MENU_TRUE
rect 252 438 60 25
//THIS TEXT SHOULD BE RIGHT-ALIGNED (currently centered)
itemDef {
name "healthok"
rect 0 0 60 25
visible 1
textalign 2
decoration
textstyle ITEM_TEXTSTYLE_SHADOWEDMORE
forecolor 1 1 1 1
textscale .60
ownerdraw CG_PLAYER_HEALTH
addColorRange -999 30 1 0 0 1
addColorRange -26 100 1 .78 0 1
addColorRange 101 999 1 1 1 1
}
}
menuDef {
name "sepha"
fullScreen MENU_FALSE
visible MENU_TRUE
rect 320 437 2 25
itemDef {
name "a"
rect 0 0 1 35
visible 1
backcolor 1 1 1 1
style 1
decoration
}
}
//*****ARMOR*****//
// armor value/icon
menuDef {
name "Armor"
fullScreen MENU_FALSE
visible MENU_TRUE
rect 330 438 60 25
itemDef {
name "armor2"
rect 0 0 60 25
visible 1
decoration
textstyle ITEM_TEXTSTYLE_SHADOWEDMORE
textscale .56
textalign 0
ownerdraw CG_PLAYER_ARMOR_VALUE
addColorRange -999 99 1 .78 0 1
addColorRange 100 999 1 1 1 1
}
}
// GAME TIME
menudef {
name "timerFrame"
rect 290 170 135 44
fullscreen MENU_FALSE
visible MENU_TRUE
itemDef {
name "Timer"
textalign 2
style 0
rect 0 220 50 12
visible 1
textstyle ITEM_TEXTSTYLE_SHADOWEDMORE
decoration
forecolor 1 1 1 1
textscale .60
ownerdraw CG_LEVELTIMER
}
itemDef {
name "roundTimer"
textalign 2
style 0
rect 5 0 50 12
visible 1
textstyle ITEM_TEXTSTYLE_SHADOWEDMORE
decoration
forecolor 1 1 1 1
textscale .36
ownerdraw CG_ROUNDTIMER
}
}
//*****SCORES*****//
#define SCORES_1ST_POS 0 0
#define SCORES_2ND_POS 0 17
//top
menuDef {
name "TopScoresBG"
fullScreen MENU_FALSE
visible MENU_TRUE
rect SCORES_1ST_POS 50 16
itemDef {
name "SelfTLeft"
rect 0 0 16 16
visible 1
ownerdraw CG_TEAM_COLORIZED
ownerdrawflag CG_SHOW_IF_PLYR_IS_FIRST_PLACE
decoration
style 1
background "ui/assets/hud/teamonl.tga"
}
itemDef {
name "SelfTMid"
rect 16 0 18 16
visible 1
ownerdraw CG_TEAM_COLORIZED
ownerdrawflag CG_SHOW_IF_PLYR_IS_FIRST_PLACE
decoration
style 1
background "ui/assets/hud/teamonm.tga"
}
itemDef {
name "SelfTRight"
rect 34 0 16 16
visible 1
ownerdraw CG_TEAM_COLORIZED
ownerdrawflag CG_SHOW_IF_PLYR_IS_FIRST_PLACE
decoration
style 1
background "ui/assets/hud/teamonr.tga"
}
itemDef {
name "TLeft"
rect 0 0 16 16
visible 1
backcolor 1 1 1 0.25
ownerdrawflag CG_SHOW_IF_PLYR_IS_NOT_FIRST_PLACE
decoration
style 1
background "ui/assets/hud/teamonl.tga"
}
itemDef {
name "TMid"
rect 16 0 18 16
visible 1
backcolor 1 1 1 0.25
ownerdrawflag CG_SHOW_IF_PLYR_IS_NOT_FIRST_PLACE
decoration
style 1
background "ui/assets/hud/teamonm.tga"
}
itemDef {
name "TRight"
rect 34 0 16 16
visible 1
backcolor 1 1 1 0.25
ownerdrawflag CG_SHOW_IF_PLYR_IS_NOT_FIRST_PLACE
decoration
style 1
background "ui/assets/hud/teamonr.tga"
}
}
//bottom
menuDef {
name "BottomScoresBG"
fullScreen MENU_FALSE
visible MENU_TRUE
rect SCORES_2ND_POS 50 16
itemDef {
name "SelfTLeft"
rect 0 0 16 16
visible 1
ownerdraw CG_TEAM_COLORIZED
ownerdrawflag CG_SHOW_IF_PLYR_IS_NOT_FIRST_PLACE
decoration
style 1
background "ui/assets/hud/teamonl.tga"
}
itemDef {
name "SelfTMid"
rect 16 0 18 16
visible 1
ownerdraw CG_TEAM_COLORIZED
ownerdrawflag CG_SHOW_IF_PLYR_IS_NOT_FIRST_PLACE
decoration
style 1
background "ui/assets/hud/teamonm.tga"
}
itemDef {
name "SelfTRight"
rect 34 0 16 16
visible 1
ownerdraw CG_TEAM_COLORIZED
ownerdrawflag CG_SHOW_IF_PLYR_IS_NOT_FIRST_PLACE
decoration
style 1
background "ui/assets/hud/teamonr.tga"
}
itemDef {
name "TLeft"
rect 0 0 16 16
visible 1
backcolor 1 1 1 0.25
ownerdrawflag CG_SHOW_IF_PLYR_IS_FIRST_PLACE
decoration
style 1
background "ui/assets/hud/teamonl.tga"
}
itemDef {
name "TMid"
rect 16 0 18 16
visible 1
backcolor 1 1 1 0.25
ownerdrawflag CG_SHOW_IF_PLYR_IS_FIRST_PLACE
decoration
style 1
background "ui/assets/hud/teamonm.tga"
}
itemDef {
name "TRight"
rect 34 0 16 16
visible 1
backcolor 1 1 1 0.25
ownerdrawflag CG_SHOW_IF_PLYR_IS_FIRST_PLACE
decoration
style 1
background "ui/assets/hud/teamonr.tga"
}
}
// RED TEAM SCORE BAR TOP
menuDef {
name "redTeamScores"
fullScreen MENU_FALSE
visible MENU_TRUE
rect SCORES_1ST_POS 50 16
ownerdrawflag CG_SHOW_IF_RED_IS_FIRST_PLACE
// red team score
itemdef {
name "blueTeamScore"
ownerdraw CG_1STPLACE
rect 28 12 35 9
visible 1
forecolor 1 1 1 0.8
textscale .24
textalign 2
textstyle 2
decoration
ownerdrawflag CG_SHOW_ANYTEAMGAME
}
//TDM marker
itemDef {
name "clanArena"
rect -4 -4 23 23
visible 1
backcolor 1 1 1 1
decoration
style 1
cvartest g_gametype
showcvar { "3" }
background "ui/assets/score/ca_arrow_red.tga"
}
// clan arena count
itemDef {
name "clanArena"
rect 2 2 21 11
visible 1
backcolor 1 1 1 1
decoration
style 1
cvartest g_gametype
showcvar { "4" ; "9" }
background "ui/assets/score/ca_score_red.tga"
}
itemdef {
name "redClanPlayers"
cvartest g_gametype
showcvar { "4" ; "9" }
ownerdraw CG_RED_CLAN_PLYRS
rect 14 11 136 40
visible 1
textscale .18
forecolor 1 1 1 0.65
decoration
}
// ctf icons
itemDef {
name "f"
rect 2 2 11 11
visible 1
bordercolor 1 1 1 1
decoration
style 3
ownerdrawflag CG_SHOW_HARVESTER
background "icons/skull_red.tga"
}
itemDef {
name "redflag"
rect 2 2 11 11
visible 1
decoration
ownerdrawflag CG_SHOW_CTF
ownerdraw CG_RED_FLAGSTATUS
}
itemDef {
name "oneflagstatus"
rect 2 2 11 11
visible 1
decoration
ownerdraw CG_ONEFLAG_STATUS
}
}
// RED TEAM SCORE BAR BOTTOM
menuDef {
name "redTeamScores"
fullScreen MENU_FALSE
visible MENU_TRUE
rect SCORES_2ND_POS 50 16
ownerdrawflag CG_SHOW_IF_BLUE_IS_FIRST_PLACE
// red team score
itemdef {
name "blueTeamScore"
ownerdraw CG_1STPLACE
rect 28 12 35 9
visible 1
forecolor 1 1 1 0.8
textscale .24
textalign 2
textstyle 2
decoration
ownerdrawflag CG_SHOW_ANYTEAMGAME
}
//TDM marker
itemDef {
name "clanArena"
rect -4 -4 23 23
visible 1
backcolor 1 1 1 1
decoration
style 1
cvartest g_gametype
showcvar { "3" }
background "ui/assets/score/ca_arrow_red.tga"
}
// clan arena count
itemDef {
name "clanArena"
rect 2 2 21 11
visible 1
backcolor 1 1 1 1
decoration
style 1
cvartest g_gametype
showcvar { "4" ; "9" }
background "ui/assets/score/ca_score_red.tga"
}
itemdef {
name "redClanPlayers"
cvartest g_gametype
showcvar { "4" ; "9" }
ownerdraw CG_RED_CLAN_PLYRS
rect 14 11 136 40
visible 1
textscale .18
forecolor 1 1 1 0.65
decoration
}
// ctf icons
itemDef {
name "f"
rect 2 2 11 11
visible 1
bordercolor 1 1 1 1
decoration
style 3
ownerdrawflag CG_SHOW_HARVESTER
background "icons/skull_red.tga"
}
itemDef {
name "redflag"
rect 2 2 11 11
visible 1
decoration
ownerdrawflag CG_SHOW_CTF
ownerdraw CG_RED_FLAGSTATUS
}
itemDef {
name "oneflagstatus"
rect 2 2 11 11
visible 1
decoration
ownerdraw CG_ONEFLAG_STATUS
}
}
// BLUE TEAM SCORE BAR TOP
menuDef {
name "blueTeamScores"
fullScreen MENU_FALSE
visible MENU_TRUE
rect SCORES_1ST_POS 50 16
ownerdrawflag CG_SHOW_IF_BLUE_IS_FIRST_PLACE
// blue team score
itemdef {
name "blueTeamScore"
ownerdraw CG_2NDPLACE
rect 28 12 35 9
visible 1
forecolor 1 1 1 0.8
textscale .24
textalign 2
textstyle 2
decoration
ownerdrawflag CG_SHOW_ANYTEAMGAME
}
//TDM marker
itemDef {
name "clanArena"
rect -4 -4 23 23
visible 1
backcolor 1 1 1 1
decoration
style 1
cvartest g_gametype
showcvar { "3" }
background "ui/assets/score/ca_arrow_blue.tga"
}
//clan arena count
itemDef {
name "clanArena"
rect 2 2 21 11
visible 1
backcolor 1 1 1 1
decoration
style 1
cvartest g_gametype
showcvar { "4" ; "9" }
background "ui/assets/score/ca_score_blu.tga"
}
itemdef {
name "blueClanPlayers"
cvartest g_gametype
showcvar { "4" ; "9" }
ownerdraw CG_BLUE_CLAN_PLYRS
rect 14 11 136 40
visible 1
textscale .18
forecolor 1 1 1 0.65
decoration
}
// ctf icons
itemDef {
name "f"
rect 2 2 11 11
visible 1
bordercolor 1 1 1 .75
decoration
style 3
ownerdrawflag CG_SHOW_HARVESTER
background "icons/skull_blue.tga"
}
itemDef {
name "blueflag"
rect 2 2 11 11
visible 1
decoration
ownerdrawflag CG_SHOW_CTF
ownerdraw CG_BLUE_FLAGSTATUS
}
itemDef {
name "oneflagstatus"
rect 2 2 11 11
visible 1
decoration
ownerdraw CG_ONEFLAG_STATUS
}
}
// BLUE TEAM SCORE BAR BOTTOM
menuDef {
name "blueTeamScores"
fullScreen MENU_FALSE
visible MENU_TRUE
rect SCORES_2ND_POS 50 16
ownerdrawflag CG_SHOW_IF_RED_IS_FIRST_PLACE
// blue team score
itemdef {
name "blueTeamScore"
ownerdraw CG_2NDPLACE
rect 28 12 35 9
visible 1
forecolor 1 1 1 0.8
textscale .24
textalign 2
textstyle 2
decoration
ownerdrawflag CG_SHOW_ANYTEAMGAME
}
//TDM marker
itemDef {
name "clanArena"
rect -4 -4 23 23
visible 1
backcolor 1 1 1 1
decoration
style 1
cvartest g_gametype
showcvar { "3" }
background "ui/assets/score/ca_arrow_blue.tga"
}
//clan arena count
itemDef {
name "clanArena"
rect 2 2 21 11
visible 1
backcolor 1 1 1 1
decoration
style 1
cvartest g_gametype
showcvar { "4" ; "9" }
background "ui/assets/score/ca_score_blu.tga"
}
itemdef {
name "blueClanPlayers"
cvartest g_gametype
showcvar { "4" ; "9" }
ownerdraw CG_BLUE_CLAN_PLYRS
rect 14 11 136 40
visible 1
textscale .18
forecolor 1 1 1 0.65
decoration
}
// ctf icons
itemDef {
name "f"
rect 2 2 11 11
visible 1
bordercolor 1 1 1 .75
decoration
style 3
ownerdrawflag CG_SHOW_HARVESTER
background "icons/skull_blue.tga"
}
itemDef {
name "blueflag"
rect 2 2 11 11
visible 1
decoration
ownerdrawflag CG_SHOW_CTF
ownerdraw CG_BLUE_FLAGSTATUS
}
itemDef {
name "oneflagstatus"
rect 2 2 11 11
visible 1
decoration
ownerdraw CG_ONEFLAG_STATUS
}
}
// SCORE - FIRST PLACE
menuDef {
name "1STPlace"
fullScreen MENU_FALSE
visible MENU_TRUE
rect SCORES_1ST_POS 50 16
ownerdrawflag CG_SHOW_ANYNONTEAMGAME
itemDef {
name "1st place"
visible 1
rect -1597 13 1640 40
textscale .26
ownerdraw CG_1ST_PLACE_SCORE
decoration
}
}
// SCORE - SECOND PLACE
menuDef {
name "Trailing"
fullScreen MENU_FALSE
visible MENU_TRUE
rect SCORES_2ND_POS 50 16
ownerdrawflag CG_SHOW_ANYNONTEAMGAME
itemDef {
name "2nd place"
visible 1
rect -6597 13 6640 40
textscale .26
ownerdraw CG_2ND_PLACE_SCORE
decoration
}
// *****Player Pickups*****//
menuDef {
name "powerup"
fullScreen MENU_FALSE
visible MENU_TRUE
rect 550 280 74 156
itemDef {
name "powerupArea"
rect 0 0 40 26
visible 1
style 0
forecolor 0.8 0 0 1
textalign 1
textscale .72
textstyle ITEM_TEXTSTYLE_SHADOWEDMORE
decoration
ownerdraw CG_AREA_POWERUP
special 0 // spacing
align HUD_VERTICAL
}
}
menuDef {
name "pickups"
fullScreen MENU_FALSE
visible MENU_TRUE
rect 575 250 25 32
itemDef {
// runes
name "CTFPOWERUP"
rect 0 0 25 25
visible 1
decoration
ownerdraw CG_CTF_POWERUP
//ownerdraw CG_PLAYER_ITEM
}
itemDef {
// useable pickups
name "playeritem"
rect 30 0 25 25
visible 1
decoration
ownerdraw CG_PLAYER_ITEM
}
}
// player has flag
menuDef {
name "playerHasFlag"
fullScreen MENU_FALSE
visible MENU_TRUE
rect 583 210 385 32
itemDef {
name "playerRect"
rect 0 0 40 36
style 3
background "ui/assets/hud/flag"
visible 1
ownerdrawflag CG_SHOW_IF_PLAYER_HAS_FLAG
}
itemDef {
name "flag"
rect 1 1 34 34
visible 1
decoration
style 1
ownerdraw CG_PLAYER_HASFLAG
}
itemDef {
name "skulls"
rect 1 1 34 34
visible 1
decoration
textaligny 12
textalignx 0
textscale .333
textstyle ITEM_TEXTSTYLE_SHADOWEDMORE
ownerdraw CG_HARVESTER_SKULLS
//ownerdraw CG_PLAYER_ITEM
}
}
}
Anyone can find the mistake?
4007 Hits