Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Top-level graph parameters in YAML
Working towards #378 , this PR provides a new
graphs
top-level dict in the YAML files. Entries in this dict can map graphs (currently only identified by their integer ID) to human-readable names. Graphs can also have a default lane width, to avoid having to set lane width on each individual lane segment. Thisgraphs
top-level dict is optional; there will be no change when viewing or saving existing files. Adding GUI widgets to add or edit these parameters will come in a subsequent PR; for now, you can hand-edit the YAML.Better font scaling for vertex names
Previously, vertex names were rendered with a hard-coded font size. This made them seem too-small or too-large depending on the map scale. The
Level::draw()
function now computes a reasonable font size and reuses it for eachVertex::draw()
call; previously it was creating a hard-coded font and throwing it away after rendering each vertex, which was slow when rendering very large maps.