POLARIS: Tooltip framework, and mob tooltips

This commit is contained in:
Arokha Sieyes
2018-03-20 22:42:16 -04:00
committed by Leshana
parent 70ac478aea
commit de6da4a86c
31 changed files with 531 additions and 0 deletions
+11
View File
@@ -1143,3 +1143,14 @@ mob/proc/yank_out_object()
//Throwing stuff
/mob/proc/throw_item(atom/target)
return
/mob/MouseEntered(location, control, params)
if(usr != src && usr.is_preference_enabled(/datum/client_preference/mob_tooltips))
openToolTip(user = usr, tip_src = src, params = params, title = make_nametag_name(usr), content = make_nametag_desc(usr))
..()
/mob/MouseExited()
closeToolTip(usr) //No reason not to, really
..()