Machine var shim (#18644)

* removal of machine var

* shimsham

* deprecation warnings

* COMSIG_LIVING_HANDLE_VISION signal

* improved

* more cleanup

* more fixes

* this is fine

* fixed radios

* notices for now, tgui fix

* cleaned up hud and vision parent calls, adds COMSIG_LIVING_HANDLE_HUD

* radios use tgui now

* guestpass does not need machine anymore

* cloning machine doesn't use it

* this arcade machine is tgui too

* autolathe does not need machine

* remaining cleanup

* doc fix

* fix

* logout handling

---------

Co-authored-by: Cameron Lennox <killer65311@gmail.com>
This commit is contained in:
Will
2025-10-27 02:06:29 -04:00
committed by GitHub
co-authored by Cameron Lennox
parent cccd2280a7
commit 1dfae07494
63 changed files with 304 additions and 221 deletions
+1 -1
View File
@@ -177,7 +177,7 @@
if(!current_uav)
return
if(user.machine != tgui_host())
if(!user.check_current_machine(tgui_host()))
user.set_machine(tgui_host())
current_uav.add_master(user)
LAZYDISTINCTADD(viewers, WEAKREF(user))
+1 -1
View File
@@ -31,7 +31,7 @@
/datum/tgui_module/ship/tgui_status(mob/user)
. = ..()
if(viewing_overmap(user) && (user.machine != src))
if(viewing_overmap(user) && (!user.check_current_machine(src)))
user.reset_perspective()
/datum/tgui_module/ship/tgui_close(mob/user)
+3
View File
@@ -175,6 +175,9 @@
if(user.client)
terminate_byondui_elements()
// Unset machine just to be sure.
user.unset_machine()
state = null
if(parent_ui)
parent_ui.children -= src