Update to fix things after PolarisSS13/Polaris#7326 & update nanomap again

This commit is contained in:
ShadowLarkens
2020-07-09 23:04:12 -07:00
parent 2f298c1039
commit 5fa431e37f
6 changed files with 155 additions and 255 deletions
+3 -4
View File
@@ -21,7 +21,7 @@
/datum/tgui_module/crew_monitor/tgui_interact(mob/user, ui_key = "main", datum/tgui/ui = null, force_open = 0, datum/tgui/master_ui = null, datum/tgui_state/state = GLOB.tgui_default_state)
var/z = get_z(tgui_host())
var/list/map_levels = using_map.get_map_levels(z, TRUE)
var/list/map_levels = using_map.get_map_levels(z, TRUE, om_range = DEFAULT_OVERMAP_RANGE)
if(!map_levels.len)
to_chat(user, "<span class='warning'>The crew monitor doesn't seem like it'll work here.</span>")
@@ -31,8 +31,7 @@
ui = SStgui.try_update_ui(user, src, ui_key, ui, force_open)
if(!ui)
// The 557 may seem random, but its the perfectsize for margins on the nanomap
ui = new(user, src, ui_key, "CrewMonitor", name, 1400, 557, master_ui, state)
ui = new(user, src, ui_key, "CrewMonitor", name, 800, 600, master_ui, state)
ui.autoupdate = TRUE
ui.open()
@@ -43,7 +42,7 @@
data["isAI"] = isAI(user)
var/z = get_z(tgui_host())
var/list/map_levels = uniquelist(using_map.get_map_levels(z, TRUE))
var/list/map_levels = uniquelist(using_map.get_map_levels(z, TRUE, om_range = DEFAULT_OVERMAP_RANGE))
data["map_levels"] = map_levels
data["crewmembers"] = list()