mirror of
https://github.com/vgstation-coders/vgstation13.git
synced 2025-12-09 07:57:50 +00:00
* The TGS thing * Revert the 516 revert * Further segment the world/New() proc * Fixes an issue here
15 lines
440 B
Plaintext
15 lines
440 B
Plaintext
/**
|
|
* tgui state: greyscale menu
|
|
*
|
|
* Checks that the target var of the greyscale menu meets the default can_use_topic criteria
|
|
*/
|
|
|
|
var/datum/ui_state/greyscale_menu_state/greyscale_menu_state = new
|
|
|
|
/datum/ui_state/greyscale_menu_state/can_use_topic(src_object, mob/user)
|
|
var/datum/greyscale_modify_menu/menu = src_object
|
|
if(!isatom(menu.target))
|
|
return UI_INTERACTIVE
|
|
|
|
return global.default_state.can_use_topic(menu.target, user)
|