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.

This commit is contained in:
Remie Richards
2015-10-21 13:23:49 +01:00
parent 910f280a3b
commit 124fc81cdb
+8
View File
@@ -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)"