add injury status

This commit is contained in:
2026-08-02 05:37:50 -04:00
parent 4d9bb2d3dc
commit 51d1e8d214
+7 -5
View File
@@ -74,11 +74,13 @@ def draw_text_overlay(canvas, players, scroll_x):
graphics.DrawText(canvas, font_small, x + 35, 11, graphics.DrawText(canvas, font_small, x + 35, 11,
rbg(Colors.WHITE.value), player['abbr_name']) rbg(Colors.WHITE.value), player['abbr_name'])
graphics.DrawText(canvas, font_small, x + 35, 27, graphics.DrawText(canvas, font_small, x + 35, 27,
rbg(Colors.WHITE.value), player['team']) rbg(Colors.WHITE.value), player['position'])
# graphics.DrawText(canvas, font, x + 40, 13,
# rbg(Colors.WHITE.value), str(game["away_score"])) if player['injury_status'] and player['injury_body_part']:
# graphics.DrawText(canvas, font, x + 40, 29, graphics.DrawText(canvas, font, x + 40, 13,
# rbg(Colors.WHITE.value), str(game["home_score"])) 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 the time is shown it should be split between lines
# # if not, just display the status # # if not, just display the status