mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-27 06:54:18 +01:00
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:
@@ -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
|
||||
|
||||
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user