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.

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.

Draws one of two versions of something, based on whether the app is zoomed in past a threshold.

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.

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.