Goonstation 13 - Modules - TypesVar Details - Proc Details

/datum/minimap

Minimap datums are responsible for handling the appearance of the minimap. This includes any displayed markers, the zoom level, and the displayed z-level.

Vars

mapThe minimap, without minimap markers. Kept separate for the purpose of scaling the minimap without scaling the markers.
map_scaleThe current scale of the physical map, as a multiple of the original size (300x300px).
marker_scaleThe desired scale of the minimap markers, as a multiple of the original size (32x32px).
max_zoomThe maximum value which the zoom coefficient should be permitted to zoom to.
min_zoomThe minimum value which the zoom coefficient should be permitted to zoom to.
minimap_holderThe holder for the render of the minimap, allowing for offsets and other effects to be applied to the render without modifying the render itself.
minimap_markersAn associative list of all minimap markers the minimap is currently tracking and displaying, indexed by their target.
minimap_renderThe minimap render to be displayed, containing both the map, dynamic area overlays, and markers.
x_maxThe maximum x coordinate to be rendered, in world coordinates.
x_minThe minimum x coordinate to be rendered, in world coordinates.
y_maxThe maximum y coordinate to be rendered, in world coordinates.
y_minThe minimum y coordinate to be rendered, in world coordinates.
z_levelThe z-level that the minimap is to be rendered from.
zoom_coefficientThe scale that the minimap should be zoomed to; it does not affect the physical size of the minimap, as the alpha mask will take care of any map area scaled outside of the minimap boundaries.

Procs

create_alpha_maskCreate an alpha mask to hide anything outside the bounds of the physical map.
create_minimap_markerCreates a minimap marker from a specified target, icon, and icon state. marker_name will override the marker inheriting the target's name.
initialise_minimap_renderInitialises the raw minimap icons and minimap render.
remove_minimap_markerRemoves a minimap marker from this minimap.
scale_mapScale the map, while retaining the original (x, y) position of the bottom left corner.
set_marker_positionSets the x and y position of a specified minimap marker, in world coordinates.
update_z_levelUpdates the displayed z-level.
zoom_on_pointZooms the minimap by the zoom coefficient while moving the minimap so that the specified point lies at the same position on the displayed minimap as it did prior to the zoom. The alpha mask takes care of any map area scaled outside of the map boundaries.

Var Details

map

The minimap, without minimap markers. Kept separate for the purpose of scaling the minimap without scaling the markers.

map_scale

The current scale of the physical map, as a multiple of the original size (300x300px).

marker_scale

The desired scale of the minimap markers, as a multiple of the original size (32x32px).

max_zoom

The maximum value which the zoom coefficient should be permitted to zoom to.

min_zoom

The minimum value which the zoom coefficient should be permitted to zoom to.

minimap_holder

The holder for the render of the minimap, allowing for offsets and other effects to be applied to the render without modifying the render itself.

minimap_markers

An associative list of all minimap markers the minimap is currently tracking and displaying, indexed by their target.

minimap_render

The minimap render to be displayed, containing both the map, dynamic area overlays, and markers.

x_max

The maximum x coordinate to be rendered, in world coordinates.

x_min

The minimum x coordinate to be rendered, in world coordinates.

y_max

The maximum y coordinate to be rendered, in world coordinates.

y_min

The minimum y coordinate to be rendered, in world coordinates.

z_level

The z-level that the minimap is to be rendered from.

zoom_coefficient

The scale that the minimap should be zoomed to; it does not affect the physical size of the minimap, as the alpha mask will take care of any map area scaled outside of the minimap boundaries.

Proc Details

create_alpha_mask

Create an alpha mask to hide anything outside the bounds of the physical map.

create_minimap_marker

Creates a minimap marker from a specified target, icon, and icon state. marker_name will override the marker inheriting the target's name.

initialise_minimap_render

Initialises the raw minimap icons and minimap render.

remove_minimap_marker

Removes a minimap marker from this minimap.

scale_map

Scale the map, while retaining the original (x, y) position of the bottom left corner.

set_marker_position

Sets the x and y position of a specified minimap marker, in world coordinates.

update_z_level

Updates the displayed z-level.

zoom_on_point

Zooms the minimap by the zoom coefficient while moving the minimap so that the specified point lies at the same position on the displayed minimap as it did prior to the zoom. The alpha mask takes care of any map area scaled outside of the map boundaries.