Clicks refactor (#20321)

Added various events to the dcs system in regards to click handling.
Refactored various mouse related procs.
Fixed MUI mask.
Fixed AI jump on double click.
Fixed some runtimes with the click handler system.
Updated the click handler system.
Fixed fireman carry.
This commit is contained in:
Fluffy
2025-01-09 23:04:48 +00:00
committed by GitHub
parent db6d55b759
commit 457a091d9a
31 changed files with 661 additions and 310 deletions
+1 -1
View File
@@ -17,7 +17,7 @@
QDEL_LIST(actions)
. = ..()
/datum/component/eye/proc/look(var/mob/new_looker, var/list/eye_args)
/datum/component/eye/proc/look(mob/new_looker, list/eye_args)
if(new_looker.eyeobj || current_looker)
return FALSE
LAZYINSERT(eye_args, get_turf(current_looker), 1) //Make sure that a loc is provided to the eye
+8 -6
View File
@@ -1,12 +1,14 @@
//For mobs connecting to the station's cameranet without needing AI procs
/**
* Freelook eye component
*
* For mobs connecting to the station's cameranet without needing AI procs
*
* For mobs connecting to other visualnets, call set_visualnet() with the visualnet to use
*/
/datum/component/eye/freelook
eye_type = /mob/abstract/eye/freelook
//For mobs connecting to other visualnets. Pass visualnet as eye_args in look()
/datum/component/eye/freelook
eye_type = /mob/abstract/eye
/datum/component/eye/freelook/proc/set_visualnet(var/datum/visualnet/net)
/datum/component/eye/freelook/proc/set_visualnet(datum/visualnet/net = GLOB.cameranet)
if(component_eye)
var/mob/abstract/eye/eye = component_eye
if(istype(eye))