From: terencehill Date: Sun, 21 Nov 2010 09:55:11 +0000 (+0100) Subject: Display an example of rankings in hud_configure mode X-Git-Tag: xonotic-v0.5.0~401 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=0b10a0b8f69f1f8b81f962a383ebcf4c5348c0f6;p=xonotic%2Fxonotic-data.pk3dir.git Display an example of rankings in hud_configure mode --- diff --git a/qcsrc/client/hud.qc b/qcsrc/client/hud.qc index 3f22c83f5..dd6b9c829 100644 --- a/qcsrc/client/hud.qc +++ b/qcsrc/client/hud.qc @@ -3617,7 +3617,7 @@ void HUD_Score(void) drawstring_aspect(pos, timer, eX * 0.75 * mySize_x + eY * mySize_y, '1 1 1', panel_fg_alpha, DRAWFLAG_NORMAL); drawfont = hud_font; } else if (!teamplay) { // non-teamgames - if (spectatee_status == -1 || cvar("hud_panel_score_rankings")) + if ((spectatee_status == -1 && !autocvar__hud_configure) || cvar("hud_panel_score_rankings")) { #define SCOREPANEL_MAX_ENTRIES 6 #define SCOREPANEL_ASPECTRATIO 2 @@ -3629,11 +3629,41 @@ void HUD_Score(void) vector rgb; rgb = '1 1 1'; + float name_size = mySize_x*0.75; + float i, me_printed; + string s; + if (autocvar__hud_configure) + { + score = 10 + SCOREPANEL_MAX_ENTRIES * 3; + for (i=0; i