mirror of
https://github.com/ChuckBuilds/LEDMatrix.git
synced 2026-04-11 13:23:00 +00:00
adjust odds scroll delay and font size of team ticker odds
This commit is contained in:
@@ -113,7 +113,7 @@
|
|||||||
"enabled_leagues": ["mlb"],
|
"enabled_leagues": ["mlb"],
|
||||||
"update_interval": 3600,
|
"update_interval": 3600,
|
||||||
"scroll_speed": 1,
|
"scroll_speed": 1,
|
||||||
"scroll_delay": 0.001
|
"scroll_delay": 0.01
|
||||||
},
|
},
|
||||||
"calendar": {
|
"calendar": {
|
||||||
"enabled": true,
|
"enabled": true,
|
||||||
|
|||||||
@@ -384,7 +384,7 @@ class OddsTickerManager:
|
|||||||
|
|
||||||
# Fonts
|
# Fonts
|
||||||
team_font = self.fonts['medium']
|
team_font = self.fonts['medium']
|
||||||
odds_font = self.fonts['small']
|
odds_font = self.fonts['medium']
|
||||||
vs_font = self.fonts['medium']
|
vs_font = self.fonts['medium']
|
||||||
|
|
||||||
# Get team logos
|
# Get team logos
|
||||||
@@ -416,8 +416,8 @@ class OddsTickerManager:
|
|||||||
away_team_odds = odds.get('away_team_odds', {})
|
away_team_odds = odds.get('away_team_odds', {})
|
||||||
|
|
||||||
# Determine the favorite and get the spread
|
# Determine the favorite and get the spread
|
||||||
home_spread = home_team_odds.get('point_spread')
|
home_spread = home_team_odds.get('spread_odds')
|
||||||
away_spread = away_team_odds.get('point_spread')
|
away_spread = away_team_odds.get('spread_odds')
|
||||||
|
|
||||||
# Check for valid spread values before comparing
|
# Check for valid spread values before comparing
|
||||||
home_favored = isinstance(home_spread, (int, float)) and home_spread < 0
|
home_favored = isinstance(home_spread, (int, float)) and home_spread < 0
|
||||||
@@ -481,7 +481,7 @@ class OddsTickerManager:
|
|||||||
current_x += team_info_width + section_padding
|
current_x += team_info_width + section_padding
|
||||||
|
|
||||||
# Odds (stacked)
|
# Odds (stacked)
|
||||||
odds_font_height = odds_font.size if hasattr(odds_font, 'size') else 6
|
odds_font_height = odds_font.size if hasattr(odds_font, 'size') else 8
|
||||||
odds_y_away = 2
|
odds_y_away = 2
|
||||||
odds_y_home = height - odds_font_height - 2
|
odds_y_home = height - odds_font_height - 2
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user