mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2026-01-19 13:54:51 +00:00
13 lines
319 B
Plaintext
13 lines
319 B
Plaintext
/**
|
|
* tgui state: ticket_state
|
|
*
|
|
* Grants the user UI_INTERACTIVE, if a ticket is open.
|
|
*/
|
|
|
|
GLOBAL_DATUM_INIT(tgui_ticket_state, /datum/tgui_state/ticket_state, new)
|
|
|
|
/datum/tgui_state/ticket_state/can_use_topic(src_object, mob/user)
|
|
if(user.client.current_ticket)
|
|
return STATUS_INTERACTIVE
|
|
return STATUS_CLOSE
|