From ba63137311f2e8163a791cac1c91d1290d9aba26 Mon Sep 17 00:00:00 2001 From: SabreML <57483089+SabreML@users.noreply.github.com> Date: Mon, 1 Jan 2024 03:08:35 +0000 Subject: [PATCH] Fixes screen alert tooltips getting stuck open (#5349) # About the pull request Fixes #5344 by making alert tooltips close when the user's mouse exits the alert. (This is how it work on other codebases that I've checked, so I guess it was just accidentally left out when alerts were ported here?) # Explain why it's good for the game Tooltips should be able to open *and* close. # Testing Photographs and Procedure
Screenshots & Videos Put screenshots and videos here with an empty line between the screenshots and the `
` tags.
# Changelog :cl: fix: Fixed screen alert tooltips ('Buckled' indicator and stuff) getting stuck open. /:cl: --- code/modules/maptext_alerts/screen_alerts.dm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/code/modules/maptext_alerts/screen_alerts.dm b/code/modules/maptext_alerts/screen_alerts.dm index 8e59574ecf1f..e0a4d2e4d5b8 100644 --- a/code/modules/maptext_alerts/screen_alerts.dm +++ b/code/modules/maptext_alerts/screen_alerts.dm @@ -242,6 +242,10 @@ if(!QDELETED(src)) openToolTip(usr, src, params, title = name, content = desc, theme = alerttooltipstyle) +/atom/movable/screen/alert/MouseExited(location, control, params) + . = ..() + closeToolTip(usr) + /atom/movable/screen/alert/notify_action name = "Notification" desc = "A new notification. You can enter it."