Expand description
Assorted tools and UI states that’re useful for applications built to display maps.
Modules
Generic UI tools. Some of this should perhaps be lifted to widgetry.
Structs
Represents the state of a widgetry Canvas.
Choose something from a menu, then feed the answer to a callback.
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.
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.
Prompt for arbitrary text input, then feed the answer to a callback.
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.
A tool to explore all of the turns from a single lane.
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
and home
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
Prompt to download a missing city. On either success or failure (maybe the player choosing to not download, maybe a network error), the new map isn’t automatically loaded or anything; up to the caller to handle that.
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.