TGUI Destination Tagger

This commit is contained in:
ShadowLarkens
2020-08-12 10:11:08 -07:00
parent 3d2010e005
commit 6f9545ea63
7 changed files with 408 additions and 370 deletions

View File

@@ -4,7 +4,7 @@
set desc = "Tag yourself for delivery through the disposals system."
set category = "Robot Commands"
var/new_tag = input("Select the desired destination.", "Set Mail Tag", null) as null|anything in tagger_locations
var/new_tag = input("Select the desired destination.", "Set Mail Tag", null) as null|anything in GLOB.tagger_locations
if(!new_tag)
mail_destination = ""

View File

@@ -53,7 +53,7 @@
data["fabricator"] = dronefab
data["fabPower"] = dronefab?.produce_drones
data["areas"] = tagger_locations
data["areas"] = GLOB.tagger_locations
data["selected_area"] = "[drone_call_area]"
return data
@@ -65,7 +65,7 @@
switch(action)
if("set_dcall_area")
var/t_area = params["area"]
if(!t_area || !(t_area in tagger_locations))
if(!t_area || !(t_area in GLOB.tagger_locations))
return
drone_call_area = t_area