mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-25 22:12:58 +01:00
Update SSOverlays (ported from Baystation) (#19051)
Our SSOverlays system is outdated, and is likely the cause of many of the issues seen in #18895. It has also been linked to a massive server performance decrease. This brings an updated system from Baystation, hopefully with speed increases. Should be testmerged, ideally with #18895. --------- Co-authored-by: Cody Brittain <cbrittain10@live.com>
This commit is contained in:
co-authored by
Cody Brittain
parent
405a05b819
commit
9983fca311
@@ -153,7 +153,7 @@
|
||||
|
||||
/obj/screen/new_player/selection/MouseEntered(location, control, params)
|
||||
if(hud_arrow)
|
||||
add_overlay(hud_arrow, force_compile = TRUE)
|
||||
AddOverlays(hud_arrow)
|
||||
else
|
||||
var/matrix/M = matrix()
|
||||
M.Scale(1.1, 1)
|
||||
@@ -162,7 +162,7 @@
|
||||
|
||||
/obj/screen/new_player/selection/MouseExited(location,control,params)
|
||||
if(hud_arrow)
|
||||
cut_overlays(force_compile = TRUE)
|
||||
ClearOverlays()
|
||||
else
|
||||
animate(src, color = null, transform = null, time = 3, easing = CUBIC_EASING)
|
||||
return ..()
|
||||
|
||||
@@ -227,7 +227,7 @@ Works together with spawning an observer, noted above.
|
||||
|
||||
/mob/proc/ghostize(var/can_reenter_corpse = TRUE, var/should_set_timer = TRUE)
|
||||
if(ckey)
|
||||
cut_overlay(image('icons/effects/effects.dmi', "zzz_glow")) // not very efficient but ghostize isn't called /too/ often.
|
||||
CutOverlays(image('icons/effects/effects.dmi', "zzz_glow")) // not very efficient but ghostize isn't called /too/ often.
|
||||
var/mob/abstract/observer/ghost = new(src) //Transfer safety to observer spawning proc.
|
||||
ghost.can_reenter_corpse = can_reenter_corpse
|
||||
ghost.timeofdeath = src.stat == DEAD ? src.timeofdeath : world.time
|
||||
|
||||
Reference in New Issue
Block a user