Skip to content

Scoreboard: cut field names exceeding a certain (configurable) width

terencehill requested to merge terencehill/scoreboard_field_names into master

By cutting long field names it's now less important to shorten them by hand and we can use correct (even if slightly longer) names for a couple scoreboard fields:

  • "dmg taken" -> "damage taken"
  • "destroyed" -> "destructions" for keys destroyed by pushing them into void: consistent with other keyhunt field names "losses", "pickups", "caps", "pushes", all of them referring to keys
  • "caps" -> "generators" for generators destroyed (this field is never shown though): no need to specify "destroyed" as it's implicit
  • "objectives" can stay as is for objectives destroyed: no need to specify "destroyed" as it's implicit

This patch also handles localized names better since in many languages words are longer than the English ones. If desired the max field width can be configured via hud_panel_scoreboard_table_fieldtitle_maxwidth

This MR supersede !1221 (closed)

Edited by terencehill

Merge request reports