mirror of
https://github.com/quotefox/Hyper-Station-13.git
synced 2026-07-15 01:32:22 +01:00
66962a8816
trying to update from TGUI Next to TGUI 3, so we can later upgrade from TGUI 3 to TGUI 4.
13 lines
309 B
Plaintext
13 lines
309 B
Plaintext
/**
|
|
* tgui state: conscious_state
|
|
*
|
|
* Only checks if the user is conscious.
|
|
**/
|
|
|
|
GLOBAL_DATUM_INIT(tgui_conscious_state, /datum/tgui_state/conscious_state, new)
|
|
|
|
/datum/tgui_state/conscious_state/can_use_topic(src_object, mob/user)
|
|
if(user.stat == CONSCIOUS)
|
|
return UI_INTERACTIVE
|
|
return UI_CLOSE
|