mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-22 12:29:46 +01:00
Refactored movement observable away (#20083)
Refactored movement observable away, use only the signal. Some tweaks to the signal.
This commit is contained in:
@@ -68,7 +68,7 @@
|
||||
/obj/item/storage/slide_projector/proc/stop_projecting()
|
||||
if(projection)
|
||||
QDEL_NULL(projection)
|
||||
GLOB.moved_event.unregister(src, src, PROC_REF(check_projections))
|
||||
UnregisterSignal(src, COMSIG_MOVABLE_MOVED)
|
||||
set_light(0)
|
||||
update_icon()
|
||||
|
||||
@@ -83,7 +83,7 @@
|
||||
break
|
||||
projection = new projection_type(target)
|
||||
projection.set_source(current_slide)
|
||||
GLOB.moved_event.register(src, src, PROC_REF(check_projections))
|
||||
RegisterSignal(src, COMSIG_MOVABLE_MOVED, PROC_REF(check_projections))
|
||||
set_light(1.4, 0.1, COLOR_WHITE) //Bit of light
|
||||
update_icon()
|
||||
|
||||
|
||||
@@ -9,12 +9,12 @@
|
||||
|
||||
/obj/structure/easel/Initialize(ml, _mat, _reinf_mat)
|
||||
. = ..()
|
||||
GLOB.moved_event.register(src, src, PROC_REF(move_painting))
|
||||
RegisterSignal(src, COMSIG_MOVABLE_MOVED, PROC_REF(move_painting))
|
||||
material = SSmaterials.get_material_by_name(MATERIAL_WOOD)
|
||||
|
||||
/obj/structure/easel/Destroy()
|
||||
painting = null
|
||||
GLOB.moved_event.unregister(src, src, PROC_REF(move_painting))
|
||||
UnregisterSignal(src, COMSIG_MOVABLE_MOVED)
|
||||
return ..()
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user