Skip to content
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

Shared priority queue screen rotation PoC #524

Open
wants to merge 18 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ venv.bak/
.mypy_cache/

# Ignore our customized config.json
/config*.json
config*.json
emulator_config.json

# Ignore any customized coordinate configs
Expand Down
Binary file added rewrite/assets/logo/mlb-w128h32.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added rewrite/assets/logo/mlb-w128h64.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added rewrite/assets/logo/mlb-w32h32.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added rewrite/assets/logo/mlb-w64h32.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added rewrite/assets/logo/mlb-w64h64.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions rewrite/colors/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
These JSON files are used to determine the colors for pretty much every element that's renderered.

# Custom Colors

You can edit these colors to display parts of the scoreboard in any way you choose. Simply copy the file corresponding to the colors you wish to customize to the same filename without the `.example` extension. These JSON files only need to contain the parts you wish to override but it's often easier to just make a copy of the full example file and edit the values you want to change.

## Examples
If you want to edit the color of some of the teams, copy `teams.json.example` to a new file called `teams.json`, then edit the `"r"`, `"g"` and `"b"` values for the colors you wish to change in that new file. If you want to customize the color of the scrolling text on the final screen, copy `scoreboard.json.example` to `scoreboard.json` and edit the `"final"->"scrolling_text"` keys to your liking. Your customized colors will always take precedence.
306 changes: 306 additions & 0 deletions rewrite/colors/scoreboard.json.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,306 @@
{
"bases": {
"1B": {
"r": 255,
"g": 235,
"b": 59
},
"2B": {
"r": 255,
"g": 235,
"b": 59
},
"3B": {
"r": 255,
"g": 235,
"b": 59
}
},
"final": {
"inning": {
"r": 255,
"g": 235,
"b": 59
},
"scrolling_text": {
"r": 255,
"g": 235,
"b": 59
},
"nohit_text": {
"r": 255,
"g": 50,
"b": 50
}
},
"inning": {
"break": {
"number": {
"r": 255,
"g": 235,
"b": 59
},
"text": {
"r": 255,
"g": 235,
"b": 59
},
"due_up": {
"r": 255,
"g": 235,
"b": 59
},
"due_up_divider": {
"r": 255,
"g": 235,
"b": 59
},
"due_up_names": {
"r": 255,
"g": 235,
"b": 59
}
},
"number": {
"r": 255,
"g": 235,
"b": 59
},
"arrow": {
"up": {
"r": 255,
"g": 235,
"b": 59
},
"down": {
"r": 255,
"g": 235,
"b": 59
}
}
},
"outs": {
"fill": {
"1": {
"r": 255,
"g": 235,
"b": 59
}
},
"1": {
"r": 255,
"g": 235,
"b": 59
},
"2": {
"r": 255,
"g": 235,
"b": 59
},
"3": {
"r": 255,
"g": 235,
"b": 59
}
},
"atbat": {
"batter": {
"r": 255,
"g": 235,
"b": 59
},
"pitcher": {
"r": 255,
"g": 235,
"b": 59
},
"pitch": {
"r": 255,
"g": 255,
"b": 255
},
"pitch_count": {
"r": 255,
"g": 255,
"b": 255
},
"play_result": {
"r": 255,
"g": 235,
"b": 59
},
"strikeout": {
"r": 255,
"g": 0,
"b": 0
}
},
"batter_count": {
"r": 255,
"g": 235,
"b": 59
},
"nohit_text": {
"r": 255,
"g": 110,
"b": 110
},
"perfect_game_text": {
"r": 255,
"g": 110,
"b": 110
},
"pregame": {
"matchup": {
"r": 255,
"g": 235,
"b": 59
},
"scrolling_text": {
"r": 255,
"g": 235,
"b": 59
},
"start_time": {
"r": 255,
"g": 235,
"b": 59
},
"warmup_text": {
"r": 255,
"g": 235,
"b": 59
}
},
"status": {
"text": {
"r": 255,
"g": 235,
"b": 59
},
"scrolling_text": {
"r": 255,
"g": 235,
"b": 59
}
},
"standings": {
"nl": {
"divider": {
"r": 0,
"g": 0,
"b": 255
}
},
"al": {
"divider": {
"r": 255,
"g": 0,
"b": 0
}
},
"background": {
"r": 37,
"g": 102,
"b": 30
},
"divider": {
"r": 13,
"g": 35,
"b": 11
},
"stat": {
"r": 171,
"g": 181,
"b": 170
},
"team": {
"name": {
"r": 171,
"g": 181,
"b": 170
},
"elim": {
"r": 190,
"g": 180,
"b": 160
},
"clinched": {
"r": 180,
"g": 210,
"b": 175
},
"stat": {
"r": 171,
"g": 181,
"b": 170
}
}
},
"offday": {
"scrolling_text": {
"r": 255,
"g": 235,
"b": 59
},
"time": {
"r": 255,
"g": 235,
"b": 59
},
"conditions": {
"r": 255,
"g": 235,
"b": 59
},
"temperature": {
"r": 255,
"g": 235,
"b": 59
},
"wind_speed": {
"r": 255,
"g": 235,
"b": 59
},
"wind_dir": {
"r": 255,
"g": 235,
"b": 59
},
"wind": {
"r": 255,
"g": 235,
"b": 59
},
"weather_icon": {
"r": 255,
"g": 235,
"b": 59
}
},
"network": {
"background": {
"r": 255,
"g": 0,
"b": 0
},
"text": {
"r": 255,
"g": 255,
"b": 255
}
},
"default": {
"background": {
"r": 7,
"g": 14,
"b": 25
},
"text": {
"r": 255,
"g": 235,
"b": 59
}
}
}
Loading
Loading