mirror of
https://github.com/quotefox/Hyper-Station-13.git
synced 2026-07-11 07:42:29 +01:00
66962a8816
trying to update from TGUI Next to TGUI 3, so we can later upgrade from TGUI 3 to TGUI 4.
14 lines
305 B
Plaintext
14 lines
305 B
Plaintext
/**
|
|
* tgui state: observer_state
|
|
*
|
|
* Checks that the user is an observer/ghost.
|
|
**/
|
|
|
|
GLOBAL_DATUM_INIT(tgui_observer_state, /datum/tgui_state/observer_state, new)
|
|
|
|
/datum/tgui_state/observer_state/can_use_topic(src_object, mob/user)
|
|
if(isobserver(user))
|
|
return UI_INTERACTIVE
|
|
return UI_CLOSE
|
|
|