centers any kind of nanomap (#17794)

* centers any kind of nanomap

* delay that

* Make nanomaps work properly with mouse zooming

* Update NanoMap.tsx

---------

Co-authored-by: ShadowLarkens <shadowlarkens@gmail.com>
This commit is contained in:
Kashargul
2025-06-04 22:04:39 +02:00
committed by GitHub
co-authored by ShadowLarkens
parent 6934727f2b
commit 9899a1d2e7
10 changed files with 55 additions and 35 deletions
@@ -67,7 +67,6 @@
"y" = alarm.y,
"z" = alarm.z)
.["alarms"] = alarms
.["zoomScale"] = world.maxx + world.maxy
/datum/tgui_module/atmos_control/tgui_data(mob/user)
var/list/data = list()
@@ -47,10 +47,6 @@
ui.autoupdate = TRUE
ui.open()
/datum/tgui_module/crew_monitor/tgui_static_data(mob/user)
. = ..()
.["zoomScale"] = world.maxx + world.maxy
/datum/tgui_module/crew_monitor/tgui_data(mob/user)
var/data[0]
+4
View File
@@ -286,6 +286,10 @@
//"refreshing" = refreshing,
"refreshing" = FALSE,
"mapZLevel" = map_z_level,
"mapInfo" = list(
"maxx" = world.maxx,
"maxy" = world.maxy,
),
"window" = list(
"key" = window_key,
"size" = window_size,