void centerprint_SetDuelTitle(string left, string right, string div)
{
- strcpy(centerprint_title_left, left);
- strcpy(centerprint_title_right, right);
- centerprint_SetTitle(sprintf("^BG%s^BG %s %s", left, div, right));
+ float namesize = autocvar_hud_panel_scoreboard_namesize * hud_fontsize.x;
+ strcpy(centerprint_title_left, textShortenToWidth(left, namesize, hud_fontsize, stringwidth_colors));
+ strcpy(centerprint_title_right, textShortenToWidth(right, namesize, hud_fontsize, stringwidth_colors));
+ centerprint_SetTitle(sprintf("^BG%s^BG %s %s", centerprint_title_left, div, centerprint_title_right));
}
void centerprint_SetTitle(string title)
float autocvar_hud_panel_scoreboard_table_highlight_alpha_self = 0.4;
float autocvar_hud_panel_scoreboard_table_highlight_alpha_eliminated = 0.6;
float autocvar_hud_panel_scoreboard_bg_teams_color_team = 0;
-float autocvar_hud_panel_scoreboard_namesize = 15;
float autocvar_hud_panel_scoreboard_team_size_position = 0;
float autocvar_hud_panel_scoreboard_spectators_position = 1;
bool autocvar_cl_deathscoreboard;
string autocvar_scoreboard_columns;
+float autocvar_hud_panel_scoreboard_namesize = 15;
bool scoreboard_showscores;