mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-26 22:50:26 +01:00
[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:
co-authored by
SyncIt21
Gandalf
parent
573ddb5f5f
commit
df90e547cc
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user