Module map_gui::tools [−][src]
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.
Display a message dialog.
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 tool to explore all of the turns from a single lane.
Utilities for reflecting the current map and viewport in the URL on the web. No effect on native.
Constants
Traits
Customize the appearance and behavior of a minimap.
Functions
A button to change maps, with default keybindings
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.
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.
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.