[MIRROR] Mouse drag & drop refactored attack chain (#28156)

* Mouse drag & drop refactored attack chain

* fex

---------

Co-authored-by: SyncIt21 <110812394+SyncIt21@users.noreply.github.com>
Co-authored-by: Gandalf <9026500+Gandalf2k15@users.noreply.github.com>
This commit is contained in:
SkyratBot
2024-06-15 18:09:14 +01:00
committed by GitHub
co-authored by SyncIt21 Gandalf
parent 573ddb5f5f
commit df90e547cc
84 changed files with 377 additions and 343 deletions
+2 -4
View File
@@ -129,8 +129,7 @@ GLOBAL_LIST_EMPTY(light_debugged_atoms)
last_hovored_ref = WEAKREF(over_object)
over_object.MouseEntered(over_location, over_control, params)
/atom/movable/screen/light_button/MouseDrop(over_object)
. = ..()
/atom/movable/screen/light_button/mouse_drop_dragged(atom/over, mob/user, src_location, over_location, params)
last_hovored_ref = null
/atom/movable/screen/light_button/MouseEntered(location, control, params)
@@ -330,8 +329,7 @@ GLOBAL_LIST_EMPTY(light_debugged_atoms)
icon_state = "light_move"
mouse_drag_pointer = 'icons/effects/mouse_pointers/light_drag.dmi'
/atom/movable/screen/light_button/move/MouseDrop(over_object)
. = ..()
/atom/movable/screen/light_button/move/mouse_drop_dragged(atom/over_object)
if(!ismovable(loc))
return
var/atom/movable/movable_owner = loc