mirror of
https://github.com/ChuckBuilds/LEDMatrix.git
synced 2026-04-10 21:03:01 +00:00
adjust NFL Live scorebug positioning
This commit is contained in:
@@ -622,7 +622,7 @@ class NFLLiveManager(BaseNFLManager): # Renamed class
|
||||
score_text = f"{away_score}-{home_score}"
|
||||
score_width = draw_overlay.textlength(score_text, font=self.fonts['score'])
|
||||
score_x = (self.display_width - score_width) // 2
|
||||
score_y = (self.display_height // 2) - 5 #centered #from 14 # Position score higher
|
||||
score_y = (self.display_height // 2) - 3 #centered #from 14 # Position score higher
|
||||
self._draw_text_with_outline(draw_overlay, score_text, (score_x, score_y), self.fonts['score'])
|
||||
|
||||
# Period/Quarter and Clock (Top center)
|
||||
@@ -639,7 +639,7 @@ class NFLLiveManager(BaseNFLManager): # Renamed class
|
||||
if down_distance and game.get("is_live"): # Only show if live and available
|
||||
dd_width = draw_overlay.textlength(down_distance, font=self.fonts['detail'])
|
||||
dd_x = (self.display_width - dd_width) // 2
|
||||
dd_y = score_y + 12 # Below the status/clock line
|
||||
dd_y = self.display_height #score_y + 12 # Below the status/clock line
|
||||
self._draw_text_with_outline(draw_overlay, down_distance, (dd_x, dd_y), self.fonts['detail'], fill=(200, 200, 0)) # Yellowish text
|
||||
|
||||
# Timeouts (Bottom corners) - 3 small bars per team
|
||||
|
||||
Reference in New Issue
Block a user