From 2123f78dad783920f28b9927ea6d1f4e5c87b89b Mon Sep 17 00:00:00 2001 From: Chuck <33324927+ChuckBuilds@users.noreply.github.com> Date: Wed, 10 Sep 2025 13:12:57 -0400 Subject: [PATCH] adjust spacing in Odds Manager ticker when Baseball is live, to reduce space between graphic and gameplay stats --- LEDMatrix.wiki | 2 +- src/odds_ticker_manager.py | 10 +++++++--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/LEDMatrix.wiki b/LEDMatrix.wiki index a01c72e1..8d2c1439 160000 --- a/LEDMatrix.wiki +++ b/LEDMatrix.wiki @@ -1 +1 @@ -Subproject commit a01c72e156b46c08a5ef1c67db79acd73300a6f7 +Subproject commit 8d2c143954db2589d9241b73ce2aaef17aa2ddab diff --git a/src/odds_ticker_manager.py b/src/odds_ticker_manager.py index 67d61c78..ec7e1491 100644 --- a/src/odds_ticker_manager.py +++ b/src/odds_ticker_manager.py @@ -1178,8 +1178,8 @@ class OddsTickerManager: if sport == 'baseball': is_baseball_live = True # Draw graphical bases instead of text - # Position bases at the left side of odds column to be closer to scores - bases_x = current_x + 12 # Position at left side, offset by half cluster width (24/2 = 12) + # Position bases closer to the right edge of odds column to reduce gap to gameplay stats + bases_x = current_x + odds_width - 12 # Position at right side, offset by half cluster width (24/2 = 12) # Shift bases down a bit more for better positioning bases_y = (height // 2) + 2 # Move down 2 pixels from center @@ -1197,7 +1197,11 @@ class OddsTickerManager: draw.text((current_x, odds_y_away), away_odds_text, font=odds_font, fill=odds_color) draw.text((current_x, odds_y_home), home_odds_text, font=odds_font, fill=odds_color) - current_x += odds_width + h_padding + # For baseball live games, use reduced padding to bring gameplay stats closer to bases + if is_baseball_live: + current_x += odds_width + (h_padding // 2) # Use half padding for baseball games + else: + current_x += odds_width + h_padding # Datetime (stacked, 3 rows) - Center justified datetime_font_height = datetime_font.size if hasattr(datetime_font, 'size') else 6