Goonstation 13 - Modules - TypesVar Details - Proc Details

Map Controller

Minimap controllers are responsible for handling player manipulation of minimaps, including panning and zooming the map, managing minimap marker visibility, and creating and deleting markers.

Vars

controlled_minimapThe controlled minimap object.
displayed_minimapThe minimap to be displayed, mostly identical to the controlled minimap with the exception that the scale will always be 1. Used to circumvent a bug.
marker_silhouetteA semi-transparent minimap marker used to communicate where the marker will be placed on the minimap.
selected_iconThe icon that the marker silouette should use.
selected_xThe sampled x coordinate.
selected_yThe sampled y coordinate.
selecting_coordinatesWhether the next click will sample coordinates at the clicked point.
start_click_pos_xThe "starting" x position of the drag/pan, allowing for distance moved in the x axis to be calculated and applied to the minimap.
start_click_pos_yThe "starting" y position of the drag/pan, allowing for distance moved in the y axis to be calculated and applied to the minimap.

Procs

delete_markerDeletes a minimap marker and removes it on the minimap.
initialise_minimap_controllerSet up this minimap controller's displayed minimap datum and click overlay.
new_markerCreates a new minimap marker and displays it on the minimap.
pan_mapPans the minimap by a specified number of pixels.
reset_scaleResets the minimap to the defaut offset and zoom.
toggle_visibilityToggles the visibility of a specified minimap marker.
toggle_visibility_allToggles the visibility of all minimap markers.

Var Details

controlled_minimap

The controlled minimap object.

displayed_minimap

The minimap to be displayed, mostly identical to the controlled minimap with the exception that the scale will always be 1. Used to circumvent a bug.

marker_silhouette

A semi-transparent minimap marker used to communicate where the marker will be placed on the minimap.

selected_icon

The icon that the marker silouette should use.

selected_x

The sampled x coordinate.

selected_y

The sampled y coordinate.

selecting_coordinates

Whether the next click will sample coordinates at the clicked point.

start_click_pos_x

The "starting" x position of the drag/pan, allowing for distance moved in the x axis to be calculated and applied to the minimap.

start_click_pos_y

The "starting" y position of the drag/pan, allowing for distance moved in the y axis to be calculated and applied to the minimap.

Proc Details

delete_marker

Deletes a minimap marker and removes it on the minimap.

initialise_minimap_controller

Set up this minimap controller's displayed minimap datum and click overlay.

new_marker

Creates a new minimap marker and displays it on the minimap.

pan_map

Pans the minimap by a specified number of pixels.

reset_scale

Resets the minimap to the defaut offset and zoom.

toggle_visibility

Toggles the visibility of a specified minimap marker.

toggle_visibility_all

Toggles the visibility of all minimap markers.