From ed6f13fc080dc645cb7e1599a3ca4c7e5050de20 Mon Sep 17 00:00:00 2001 From: terencehill Date: Sun, 14 Nov 2010 23:19:13 +0100 Subject: [PATCH] hud_panel_score_rankings 1 always show my own score; 2 pure rankings --- defaultXonotic.cfg | 2 +- qcsrc/client/hud.qc | 33 +++++++++++++++++++++- qcsrc/menu/xonotic/dialog_hudpanel_score.c | 5 +++- 3 files changed, 37 insertions(+), 3 deletions(-) diff --git a/defaultXonotic.cfg b/defaultXonotic.cfg index bb5dfcf87..c67bf29ef 100644 --- a/defaultXonotic.cfg +++ b/defaultXonotic.cfg @@ -1395,7 +1395,7 @@ seta hud_panel_radar_rotation 0 "rotation mode: you set what points up. 0 = play seta hud_panel_radar_zoommode 0 "zoom mode: 0 = zoomed by default, 1 = zoomed when +zoom, 2 = always zoomed, 3 = always zoomed out" alias hud_panel_radar_rotate "toggle hud_panel_radar_rotation 0 1 2 3 4" -seta hud_panel_score_rankings 0 "show rankings in non-team games instead of the distribution" +seta hud_panel_score_rankings 0 "show rankings in non-team games instead of the score difference: 1 always show my own score; 2 pure rankings" seta hud_panel_engineinfo_framecounter_time 0.1 "time between framerate display updates" seta hud_panel_engineinfo_framecounter_decimals 0 "amount of decimals to show" diff --git a/qcsrc/client/hud.qc b/qcsrc/client/hud.qc index 30d0406f2..db87ef418 100644 --- a/qcsrc/client/hud.qc +++ b/qcsrc/client/hud.qc @@ -3576,6 +3576,7 @@ void HUD_Radar(void) // Score (#7) // +void HUD_UpdatePlayerTeams(); void HUD_Score(void) { if(!autocvar__hud_configure && !autocvar_hud_panel_score) @@ -3645,10 +3646,40 @@ void HUD_Score(void) vector fontsize = '0.9 0.9 0' * height; pos_y += height * (1 - 0.9) / 2; + vector rgb; + rgb = '1 1 1'; + + if (!scoreboard_fade_alpha) // the scoreboard too calls HUD_UpdatePlayerTeams + HUD_UpdatePlayerTeams(); + float name_size = mySize_x*0.75; - float i, name_pos; + float i, me_printed; for (pl = players.sort_next, i=0; pl && i