-
Notifications
You must be signed in to change notification settings - Fork 104
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add option to display team record on game screen #486
Conversation
I was working on a version here: https://github.com/WardBrian/mlb-led-scoreboard/tree/feature/pregame-record as the name suggests I was only having it on the pregame screen, but I stopped really developing after I realized it wouldn’t fit my layout |
I think any board at least 64-wide would be able to show them during the pregame when there are no scores Edit: when does the "warmup" layout get applied? |
It looks like the main renderer is checking mlb-led-scoreboard/renderers/main.py Lines 121 to 131 in 5dcc41f
mlb-led-scoreboard/renderers/games/pregame.py Lines 9 to 19 in 5dcc41f
It should be fine for the team renderer to make that |
I meant the
I don't think anyone uses this, but in theory it works like the no-hitter layout where you can do custom coordinates for that state of game but not others. It looks like this is literally done only for the |
I think this is my hangup here, I'm not convinced adding this for only the If we need that I think that can be a follow-on? |
As long as there is an "enabled" flag in the coordinates, individual users could enable it in the warmup layout state if they wanted to. I think we should consider adding more layout states like "pregame", but that can definitely be a follow-on |
Addresses #485
Still undergoing testing. This adds the layout keys needed to render the team record on the game screen. By default, the record will render off screen since it takes up quite a bit of space (8 max):
Requested behavior can be achieved with a custom coordinates file and the following config setting:
Future enhancements may need to specify smaller font sizes to fit in smaller