From 51d1e8d21457480f4dabeda847f27c2cf70dea3d Mon Sep 17 00:00:00 2001 From: Alex Frantz Date: Sun, 2 Aug 2026 05:37:50 -0400 Subject: [PATCH] add injury status --- modes/fantasy.py | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/modes/fantasy.py b/modes/fantasy.py index 521917a..99319e1 100644 --- a/modes/fantasy.py +++ b/modes/fantasy.py @@ -74,11 +74,13 @@ def draw_text_overlay(canvas, players, scroll_x): graphics.DrawText(canvas, font_small, x + 35, 11, rbg(Colors.WHITE.value), player['abbr_name']) graphics.DrawText(canvas, font_small, x + 35, 27, - rbg(Colors.WHITE.value), player['team']) - # graphics.DrawText(canvas, font, x + 40, 13, - # rbg(Colors.WHITE.value), str(game["away_score"])) - # graphics.DrawText(canvas, font, x + 40, 29, - # rbg(Colors.WHITE.value), str(game["home_score"])) + rbg(Colors.WHITE.value), player['position']) + + if player['injury_status'] and player['injury_body_part']: + graphics.DrawText(canvas, font, x + 40, 13, + rbg(Colors.RED.value), str(player['injury_status'])) + graphics.DrawText(canvas, font, x + 40, 29, + rbg(Colors.RED.value), str(player["injury_body_part"])) # # if the time is shown it should be split between lines # # if not, just display the status