Expand description
Assorted tools and UI states that’re useful for applications built to display maps.
Modules§
- camera 🔒
- colors 🔒
- command 🔒
- heatmap 🔒
- icons 🔒
- importer 🔒
- labels 🔒
- minimap 🔒
- navigate 🔒
- polygon 🔒
- ui 🔒Generic UI tools. Some of this should perhaps be lifted to widgetry.
- updater 🔒
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§
- Customize the appearance and behavior of a minimap.
Functions§
- A standard way to group a home button back to the title screen, the title of the current app, and a button to change maps. Callers must handle the
change map
andhome
click events. - A button to change maps, with default keybindings
- Less is better
- Shorter is better
- Shorter is better
- Thresholds are Durations, in units of seconds
- Returns the path to an executable. Native-only.
- Draw a goal marker pointing at something.
- Make it clear the map can’t be interacted with right now.
- A button to return to the title screen
- Draw a start marker pointing at something.
- Modify the current URL to set the first free parameter to the current map name.
- Returns the version of A/B Street to link to. When building for a release, this points to that new release. Otherwise it points to the current dev version.