/tg/ pref datums (part 1) (#16219)

* TG Prefs (Step 1: JSON savefiles)

* TG Prefs (Step 2: Preference Datum Code)

* TG Prefs (Step 3: Convert /datum/client_preferences)

* TG Prefs (Step 4: Clean up and finishing touches)

* Fix some weird compile errors from the rebase
This commit is contained in:
ShadowLarkens
2024-08-31 07:09:05 +10:00
committed by GitHub
parent 0cfc6e9e94
commit faac97e352
184 changed files with 4968 additions and 2198 deletions
+6 -8
View File
@@ -1305,20 +1305,18 @@
return TRUE
/mob/MouseEntered(location, control, params)
if(usr != src && usr.is_preference_enabled(/datum/client_preference/mob_tooltips) && src.will_show_tooltip())
openToolTip(user = usr, tip_src = src, params = params, title = get_nametag_name(usr), content = get_nametag_desc(usr))
..()
if(usr != src && will_show_tooltip())
if(usr?.read_preference(/datum/preference/toggle/mob_tooltips))
openToolTip(usr, src, params, title = get_nametag_name(usr), content = get_nametag_desc(usr))
. = ..()
/mob/MouseDown()
closeToolTip(usr) //No reason not to, really
..()
. = ..()
/mob/MouseExited()
closeToolTip(usr) //No reason not to, really
..()
. = ..()
// Manages a global list of mobs with clients attached, indexed by z-level.
/mob/proc/update_client_z(new_z) // +1 to register, null to unregister.