Repository navigation
What's Changed
- Gracefully handle invalid themes by @ur-fault in #133
- Option for listing style options by @ur-fault in #135
- Integrated style browser by @ur-fault in #137
- New drawing API by @ur-fault in #138
- Built-in terminal schemes by @ur-fault in #139
- Rework settings/config by @ur-fault in #142
Full Changelog: 1.17.1...1.18.0
New Settings
Settings went through a lot lately.
- Gained almost-complete UI with support for persisting options.
- We differentiate between user's config and UI config in
.manageddirectory. - These two "configs" are merged during runtime.
- We differentiate between user's config and UI config in
- New config model, and with that, config format editions, along with config metadata.
- New model is structured, not just a flat dictionary of options.
- Current edition of format is specified in
meta.format_versionin the config. - When version is unspecified, we default to
1, but warn the user to migrate. - Game can gracefully read older versions, but it's possible the option is removed or changed in an incompatible manner.
New settings format example
{
"meta": {
"format_version": 2,
},
"general": {
"appearance": {
"theme": "github.json",
},
"logging": {
"normal": "warn",
}
},
"game": {
"camera_mode": {
"mode": "EdgeFollow",
"x": 0.25,
"y": 0.25
},
"player_smoothing": 0.5,
},
}