Show long nicknames in scoreboard.

Show fulli nicknames in scoreboard.
This commit is contained in:
Night Owl 2017-07-20 10:33:39 +05:00
parent d062757f52
commit 14e75025bb

View File

@ -92,7 +92,7 @@ We have a minimum width of 1-320 - we could have the field widths scale with it?
// X positions // X positions
// relative to the side of the scoreboard // relative to the side of the scoreboard
#define NAME_RANGE_MIN 20 #define NAME_RANGE_MIN -100
#define NAME_RANGE_MAX 145 #define NAME_RANGE_MAX 145
#define KILLS_RANGE_MIN 130 #define KILLS_RANGE_MIN 130
#define KILLS_RANGE_MAX 170 #define KILLS_RANGE_MAX 170
@ -145,7 +145,7 @@ int CHudScoreboard::Draw( float fTime )
int xpos = NAME_RANGE_MIN + xpos_rel; int xpos = NAME_RANGE_MIN + xpos_rel;
FAR_RIGHT = can_show_packetloss ? PL_RANGE_MAX : PING_RANGE_MAX; FAR_RIGHT = can_show_packetloss ? PL_RANGE_MAX : PING_RANGE_MAX;
FAR_RIGHT += 5; FAR_RIGHT += 125;
if( cl_scoreboard_bg && cl_scoreboard_bg->value ) if( cl_scoreboard_bg && cl_scoreboard_bg->value )
gHUD.DrawDarkRectangle( xpos - 5, ypos - 5, FAR_RIGHT, ROW_RANGE_MAX ); gHUD.DrawDarkRectangle( xpos - 5, ypos - 5, FAR_RIGHT, ROW_RANGE_MAX );
if( !gHUD.m_Teamplay ) if( !gHUD.m_Teamplay )
@ -340,7 +340,7 @@ int CHudScoreboard::DrawPlayers( int xpos_rel, float list_slot, int nameoffset,
} }
FAR_RIGHT = can_show_packetloss ? PL_RANGE_MAX : PING_RANGE_MAX; FAR_RIGHT = can_show_packetloss ? PL_RANGE_MAX : PING_RANGE_MAX;
FAR_RIGHT += 5; FAR_RIGHT += 125;
// draw the players, in order, and restricted to team if set // draw the players, in order, and restricted to team if set
while( 1 ) while( 1 )