From 47a0622ccbb26f21779fcda38c491e8ab11e1f69 Mon Sep 17 00:00:00 2001 From: Leshana Date: Fri, 26 May 2017 18:11:08 -0400 Subject: [PATCH] Temporarily adjust our holomap overrides to account for the incoming enhancements. --- code/modules/holomap/holomap_zlevel.dm | 26 +------------------------- 1 file changed, 1 insertion(+), 25 deletions(-) diff --git a/code/modules/holomap/holomap_zlevel.dm b/code/modules/holomap/holomap_zlevel.dm index 8f76ced3d7c..cdc0d314989 100644 --- a/code/modules/holomap/holomap_zlevel.dm +++ b/code/modules/holomap/holomap_zlevel.dm @@ -1,30 +1,6 @@ // -// An enhancement to /datum/map to store more and better meta-info about Z-levels +// TODO - Remove this temporary hack and convert to using the new /datum/map_z_level system // - -// Structure to hold zlevel info together in one nice convenient package. -// Wouldn't this be nicer than having to do those dumb arrays? -/datum/map_z_level - var/name // Friendly name of the zlevel - var/z = -1 // Actual z-index of the zlevel. This had better be right! - var/holomap_offset_x = 0 // Number of pixels to offset right (for centering) - var/holomap_offset_y = 0 // Number of pixels to offset up (for centering) - var/holomap_legend_x = 96 // x position of the holomap legend for this z - var/holomap_legend_y = 96 // y position of the holomap legend for this z - -/datum/map_z_level/New(z, name, holomap_zoom = initial(holomap_zoom), holomap_offset_x = initial(holomap_offset_x), holomap_offset_y = initial(holomap_offset_y)) - src.z = z - src.name = name - src.holomap_offset_x = holomap_offset_x - src.holomap_offset_y = holomap_offset_y - -// Map datum stuff we need -// TODO - Put this into ~map_system/maps.dm -/datum/map - var/list/zlevels = list() - -// LEGACY - This is how /vg does it, and how the code uses it. I'm in transition to use my new way (above) -// but for now lets just initialize this stuff so the code works. /datum/map var/list/holomap_smoosh // List of lists of zlevels to smoosh into single icons var/list/holomap_offset_x = list()