mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-22 03:27:05 +01:00
turns hover over tooltips for inventory items into a preference (#18570)
* turns hover over tooltips into a preference this allows people to toggle the tooltip boxes that appear when hovering over items * adds up the bitflags in preferences.dm oops * coding late at night be like fixes the bitflag, a variable location and the define name * better wording and removes a var cooler code
This commit is contained in:
@@ -715,14 +715,14 @@ GLOBAL_DATUM_INIT(welding_sparks, /mutable_appearance, mutable_appearance('icons
|
||||
/obj/item/MouseEntered(location, control, params)
|
||||
. = ..()
|
||||
if(in_inventory || in_storage)
|
||||
var/timedelay = 8
|
||||
var/mob/user = usr
|
||||
tip_timer = addtimer(CALLBACK(src, .proc/openTip, location, control, params, user), timedelay, TIMER_STOPPABLE)
|
||||
if(!(user.client.prefs.toggles2 & PREFTOGGLE_2_HIDE_ITEM_TOOLTIPS))
|
||||
tip_timer = addtimer(CALLBACK(src, .proc/openTip, location, control, params, user), 8, TIMER_STOPPABLE)
|
||||
if(QDELETED(src))
|
||||
return
|
||||
var/mob/living/L = user
|
||||
if(!(user.client.prefs.toggles2 & PREFTOGGLE_2_SEE_ITEM_OUTLINES))
|
||||
return
|
||||
var/mob/living/L = user
|
||||
if(istype(L) && HAS_TRAIT(L, TRAIT_HANDS_BLOCKED))
|
||||
apply_outline(L, COLOR_RED_GRAY) //if they're dead or handcuffed, let's show the outline as red to indicate that they can't interact with that right now
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user