Fixes food and radiocarbon spectrometer reagent injection.

Fixes #11913. Fixes #12048.
This commit is contained in:
PsiOmegaDelta
2016-01-27 11:22:46 +01:00
parent b4d66210b2
commit 21c8920271
2 changed files with 5 additions and 3 deletions

View File

@@ -4,6 +4,7 @@
desc = "A specialised, complex scanner for gleaning information on all manner of small things."
anchored = 1
density = 1
flags = OPENCONTAINER
icon = 'icons/obj/virology.dmi'
icon_state = "analyser"
@@ -148,15 +149,15 @@
data["radiation"] = round(radiation)
data["t_left_radspike"] = round(t_left_radspike)
data["rad_shield_on"] = rad_shield
// update the ui if it exists, returns null if no ui is passed/found
ui = nanomanager.try_update_ui(user, src, ui_key, ui, data, force_open)
ui = nanomanager.try_update_ui(user, src, ui_key, ui, data, force_open)
if (!ui)
// the ui does not exist, so we'll create a new() one
// for a list of parameters and their descriptions see the code docs in \code\modules\nano\nanoui.dm
ui = new(user, src, ui_key, "geoscanner.tmpl", "High Res Radiocarbon Spectrometer", 900, 825)
// when the ui is first opened this is the data it will use
ui.set_initial_data(data)
ui.set_initial_data(data)
// open the new ui window
ui.open()
// auto update every Master Controller tick