From a7347e25894527397c96529cda4a066f84cfe6c6 Mon Sep 17 00:00:00 2001 From: NovaBot <154629622+NovaBot13@users.noreply.github.com> Date: Tue, 6 Feb 2024 16:07:48 -0500 Subject: [PATCH] [MIRROR] Fix `/datum/ui_state/greyscale_menu_state` for non-atom datums (#791) * Fix `/datum/ui_state/greyscale_menu_state` for non-atom datums (#81310) ## About The Pull Request `can_use_topic` returns a UI define like `UI_INTERACTIVE`, not `TRUE` / `FALSE` This line is intended to allow greyscale menus to be used when targeting non-atoms, however it prevents that entirely. #77322 ## Changelog Not necessary since _we_ don't have any GAGS menu usage that targets a datum... currently. * Fix `/datum/ui_state/greyscale_menu_state` for non-atom datums --------- Co-authored-by: MrMelbert <51863163+MrMelbert@users.noreply.github.com> --- code/modules/tgui/states/greyscale_menu.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/modules/tgui/states/greyscale_menu.dm b/code/modules/tgui/states/greyscale_menu.dm index 9de6140e709..b08c0b8c980 100644 --- a/code/modules/tgui/states/greyscale_menu.dm +++ b/code/modules/tgui/states/greyscale_menu.dm @@ -9,6 +9,6 @@ GLOBAL_DATUM_INIT(greyscale_menu_state, /datum/ui_state/greyscale_menu_state, ne /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 TRUE + return UI_INTERACTIVE return GLOB.default_state.can_use_topic(menu.target, user)