Actions API
Charted's quick actions, for shortcut wheels and command palettes.
ChartedActions offers Charted's quick actions to shortcut wheels and command palettes: the world map, the minimap, zoom, a new waypoint and the list. Ids are never renamed; the list may grow. From Charted 0.1.0.
Show them on a wheel #
for (String id : ChartedActions.ids()) {
// label(id) for the text, icon(id) for the picture,
// isOn(id) to draw a switch as on or off.
wheel.add(ChartedActions.label(id), ChartedActions.icon(id), () -> ChartedActions.run(id));
}The actions #
| Id | What it does | Switch |
|---|---|---|
charted:world_map | Opens the world map | no |
charted:minimap | Shows or hides the minimap | yes |
charted:minimap_zoom_out / charted:minimap_zoom_in | Zooms the minimap | no |
charted:minimap_rotate | Turns the minimap with the player, or keeps north up | yes |
charted:add_waypoint | Opens a new waypoint where the player stands | no |
charted:waypoints | Opens the waypoint list | no |
charted:waypoints_in_world | Shows or hides waypoints in the world | yes |
charted:waypoints_on_minimap | Shows or hides waypoints on the minimap | yes |
Reference #
| ChartedActions | What it does |
|---|---|
ids() | Every action id. |
label(id) | Its name, to show. |
icon(id) | Its icon. |
isOn(id) | For a switch: whether it is on now. |
run(id) | Does it. |
Something missing or wrong on this page? Say so on Discord.