From 124fc81cdbea643df4cdebc9b21caf2fd449190d Mon Sep 17 00:00:00 2001 From: Remie Richards Date: Wed, 21 Oct 2015 13:23:49 +0100 Subject: [PATCH] Adds tooltips to Screen Alerts, showing their name and their helptext, shift-click remains in in-case you want the information without keeping your mouse over the alert. --- code/_onclick/hud/alert.dm | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/code/_onclick/hud/alert.dm b/code/_onclick/hud/alert.dm index 4ee0bcd5d29..145296d6852 100644 --- a/code/_onclick/hud/alert.dm +++ b/code/_onclick/hud/alert.dm @@ -85,6 +85,14 @@ var/severity = 0 +/obj/screen/alert/MouseEntered(location,control,params) + openToolTip(usr,params,title = name,content = desc) + + +/obj/screen/alert/MouseExited() + closeToolTip(usr) + + //Gas alerts /obj/screen/alert/oxy name = "Choking (No O2)"