mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-30 12:04:08 +00:00
This ports TGUI, and makes the old nano crew monitor and the disposal bins use it as first examples.
16 lines
376 B
Plaintext
16 lines
376 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 STATUS_INTERACTIVE
|
|
if(check_rights(R_ADMIN, 0, src))
|
|
return STATUS_INTERACTIVE
|
|
return STATUS_CLOSE
|
|
|