From a20e09f77ec46a121d1ce8f026a97b097d3719d0 Mon Sep 17 00:00:00 2001 From: MikeKuwait <141964539+MikeKuwait@users.noreply.github.com> Date: Mon, 28 Aug 2023 23:33:42 +0300 Subject: [PATCH] Fixes camera console not closing if you move away (#4276) # About the pull request fixes #4243 # Explain why it's good for the game # Testing Photographs and Procedure
Screenshots & Videos Put screenshots and videos here with an empty line between the screenshots and the `
` tags.
# Changelog :cl: fix: Camera console should now close if you step away from it /:cl: --- code/game/machinery/computer/camera_console.dm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/code/game/machinery/computer/camera_console.dm b/code/game/machinery/computer/camera_console.dm index 10c2bcc309eb..281c548227b0 100644 --- a/code/game/machinery/computer/camera_console.dm +++ b/code/game/machinery/computer/camera_console.dm @@ -83,6 +83,10 @@ if(inoperable()) return UI_DISABLED +//Closes UI if you move away from console. +/obj/structure/machinery/computer/cameras/ui_state(mob/user) + return GLOB.not_incapacitated_and_adjacent_strict_state + /obj/structure/machinery/computer/cameras/tgui_interact(mob/user, datum/tgui/ui) // Update UI ui = SStgui.try_update_ui(user, src, ui)