Closed ty-porter closed 12 months ago
Released in v6.4.0
I just enabled this feature on my 64x32 board and it's great! Unfortunately when both runs AND hits are >9 the record overlaps the runs and when just runs OR hits are >9 there's no empty space between them at all (and once a record includes a 3 digit number that case will overlap as well).
I decided to make a quick edit to only display the record when runs and hits are both <10. It's a pretty simple change for anyone else who wants to do the same:
Open renderers/games/team.py and look for this code (currently lines 64-65):
__render_record_text(canvas, layout, away_colors, away_team, "away", default_colors, away_name_end_pos)
__render_record_text(canvas, layout, home_colors, home_team, "home", default_colors, home_name_end_pos)
Change it to:
if can_use_full_team_names(canvas, True, True, [home_team, away_team]):
__render_record_text(canvas, layout, away_colors, away_team, "away", default_colors, away_name_end_pos)
__render_record_text(canvas, layout, home_colors, home_team, "home", default_colors, home_name_end_pos)
I have no idea if there's enough demand for this to be added as a configurable option and this particular change is a bit of a hack anyway but I figured I'd leave this note here in case anyone else wants to apply it to their board!
As always thanks for the work you guys do on this. It's a very cool project.
EDIT: Another idea would be an option to display the record as a win percentage, like NYY(.673) or something. That's one less character which should be enough room on a 64x32 board even with runs and hits both >9.
This issue is a
From Discord: