* not code stuff * other things * global vars, defines, helpers * onclick hud stuff, orphans, world.dm * controllers and datums * game folder * everything not client/mobs in modules * client folder * stage 1 mob stuff * simple animal things * silicons * carbon things * ayylmaos and monkeys * hyoomahn * icons n shit * sprite fixes * compile fixes * some fixes I cherrypicked. * qdel fixes * forgot brain refractors
14 lines
290 B
Plaintext
14 lines
290 B
Plaintext
/**
|
|
* tgui state: observer_state
|
|
*
|
|
* Checks that the user is an observer/ghost.
|
|
**/
|
|
|
|
/var/global/datum/ui_state/observer_state/observer_state = new()
|
|
|
|
/datum/ui_state/observer_state/can_use_topic(src_object, mob/user)
|
|
if(isobserver(user))
|
|
return UI_INTERACTIVE
|
|
return UI_CLOSE
|
|
|