From: terencehill Date: Mon, 19 Apr 2021 13:25:03 +0000 (+0200) Subject: Allow showing ALL scoreboard scores (even the ones derived from other scores: sum... X-Git-Tag: xonotic-v0.8.5~439 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=a122b71e81f4b7add343a8a3c282682b7823a458;p=xonotic%2Fxonotic-data.pk3dir.git Allow showing ALL scoreboard scores (even the ones derived from other scores: sum, kdratio and frags) with 'scoreboard_columns_set ALL' --- diff --git a/qcsrc/client/hud/panel/scoreboard.qc b/qcsrc/client/hud/panel/scoreboard.qc index 24b6efe6c..985796044 100644 --- a/qcsrc/client/hud/panel/scoreboard.qc +++ b/qcsrc/client/hud/panel/scoreboard.qc @@ -436,9 +436,16 @@ void Cmd_Scoreboard_SetFields(int argc) cvar_set("scoreboard_columns", SCOREBOARD_DEFAULT_COLUMNS); argc = tokenizebyseparator(strcat("0 1 ", SCOREBOARD_DEFAULT_COLUMNS), " "); } - else if(argv(2) == "all") + else if(argv(2) == "all" || argv(2) == "ALL") { - string s = "ping pl name |"; // scores without a label + string s = "ping pl name |"; // scores without label (not really scores) + if(argv(2) == "ALL") + { + // scores without label + s = strcat(s, " ", "sum"); + s = strcat(s, " ", "kdratio"); + s = strcat(s, " ", "frags"); + } FOREACH(Scores, true, { if(it != ps_primary) if(it != ps_secondary)