Fix inventory hands clickable areas & confusing overlay (#26212)

* Remove confusing hand overlay

Co-Authored-By: Serge K Lebedev <hello@sergelebe.dev>

* Fix clickable areas of equipped items

Co-Authored-By: Serge K Lebedev <hello@sergelebe.dev>

---------

Co-authored-by: Serge K Lebedev <hello@sergelebe.dev>
This commit is contained in:
dj-34
2024-07-22 07:43:05 +00:00
committed by GitHub
co-authored by Serge K Lebedev
parent 093cf3dd4d
commit d51c3cf478
3 changed files with 6 additions and 2 deletions
+2
View File
@@ -476,6 +476,7 @@ GLOBAL_DATUM_INIT(welding_sparks, /mutable_appearance, mutable_appearance('icons
if((flags & NODROP) && !(initial(flags) & NODROP)) // Remove NODROP if dropped. Probably from delimbing.
flags &= ~NODROP
in_inventory = FALSE
mouse_opacity = initial(mouse_opacity)
remove_outline()
SEND_SIGNAL(src, COMSIG_ITEM_DROPPED,user)
if(!silent)
@@ -522,6 +523,7 @@ GLOBAL_DATUM_INIT(welding_sparks, /mutable_appearance, mutable_appearance('icons
// for items that can be placed in multiple slots
// Initial is used to indicate whether or not this is the initial equipment (job datums etc) or just a player doing it
/obj/item/proc/equipped(mob/user, slot, initial = FALSE)
mouse_opacity = MOUSE_OPACITY_OPAQUE
SEND_SIGNAL(src, COMSIG_ITEM_EQUIPPED, user, slot)
for(var/X in actions)
var/datum/action/A = X
@@ -534,7 +534,6 @@
I.maptext = ""
I.on_exit_storage(src)
update_icon()
I.mouse_opacity = initial(I.mouse_opacity)
return TRUE
/obj/item/storage/Exited(atom/A, loc)