map_gui

Module tools

Source
Expand description

Assorted tools and UI states that’re useful for applications built to display maps.

Modules§

Structs§

  • Represents the state of a widgetry Canvas.
  • Lets the player switch maps.
  • Track the last map used, to resume next session.
  • Labels roads when unzoomed. Label size and frequency depends on the zoom level.
  • Draws labels in map-space that roughly fit on the roads. Don’t change behavior during zooming; labels are only meant to be legible when zoomed in.
  • A 2D grid containing some arbitrary data.
  • Click to add waypoints, drag them, see the list on a panel and delete them. The caller owns the Panel and the World, since there’s probably more stuff there too.
  • Executes a command and displays STDOUT and STDERR in a loading screen window. Only works on native, of course.
  • A title screen shared among all of the A/B Street apps.
  • Save sequences of waypoints as named trips. Basic file management – save, load, browse. This is useful to define “test cases,” then edit the bike network and “run the tests” to compare results.

Enums§

Constants§

Traits§

Functions§