mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2025-12-10 01:34:01 +00:00
lobby art is mouse transparent on fade out (#91774)
(cherry picked from commit 601654a91c)
This commit is contained in:
@@ -895,10 +895,11 @@ INITIALIZE_IMMEDIATE(/atom/movable/screen/splash)
|
||||
|
||||
holder.screen += src
|
||||
*/ // SKYRAT EDIT END
|
||||
/atom/movable/screen/splash/proc/Fade(out, qdel_after = TRUE)
|
||||
/atom/movable/screen/splash/proc/fade(out, qdel_after = TRUE)
|
||||
if(QDELETED(src))
|
||||
return
|
||||
if(out)
|
||||
mouse_opacity = MOUSE_OPACITY_TRANSPARENT
|
||||
animate(src, alpha = 0, time = 30)
|
||||
else
|
||||
alpha = 0
|
||||
|
||||
@@ -503,7 +503,7 @@ SUBSYSTEM_DEF(ticker)
|
||||
ADD_TRAIT(living, TRAIT_NO_TRANSFORM, SS_TICKER_TRAIT)
|
||||
if(living.client)
|
||||
var/atom/movable/screen/splash/fade_out = new(null, null, living.client, TRUE)
|
||||
fade_out.Fade(TRUE)
|
||||
fade_out.fade(TRUE)
|
||||
living.client.init_verbs()
|
||||
livings += living
|
||||
if(livings.len)
|
||||
|
||||
@@ -60,7 +60,7 @@ SUBSYSTEM_DEF(title)
|
||||
if(!thing)
|
||||
continue
|
||||
var/atom/movable/screen/splash/S = new(null, null, thing, FALSE)
|
||||
S.Fade(FALSE,FALSE)
|
||||
S.fade(FALSE,FALSE)
|
||||
|
||||
/datum/controller/subsystem/title/Recover()
|
||||
icon = SStitle.icon
|
||||
|
||||
@@ -129,7 +129,7 @@
|
||||
/area/shuttle/arrival/on_joining_game(mob/living/boarder)
|
||||
if(SSshuttle.arrivals?.mode == SHUTTLE_CALL)
|
||||
var/atom/movable/screen/splash/Spl = new(null, null, boarder.client, TRUE)
|
||||
Spl.Fade(TRUE)
|
||||
Spl.fade(TRUE)
|
||||
boarder.playsound_local(get_turf(boarder), 'sound/announcer/ApproachingTG.ogg', 25)
|
||||
boarder.update_parallax_teleport()
|
||||
|
||||
|
||||
@@ -77,7 +77,7 @@ INITIALIZE_IMMEDIATE(/mob/dead)
|
||||
var/client/hopper = client
|
||||
to_chat(hopper, span_notice("Sending you to [pick]."))
|
||||
var/atom/movable/screen/splash/fade_in = new(null, null, hopper, FALSE)
|
||||
fade_in.Fade(FALSE)
|
||||
fade_in.fade(FALSE)
|
||||
|
||||
ADD_TRAIT(src, TRAIT_NO_TRANSFORM, SERVER_HOPPER_TRAIT)
|
||||
sleep(2.9 SECONDS) //let the animation play
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
/mob/dead/new_player/Initialize(mapload)
|
||||
if(client && SSticker.state == GAME_STATE_STARTUP)
|
||||
var/atom/movable/screen/splash/fade_out = new(null, null, client, TRUE)
|
||||
fade_out.Fade(TRUE)
|
||||
fade_out.fade(TRUE)
|
||||
|
||||
if(length(GLOB.newplayer_start))
|
||||
forceMove(pick(GLOB.newplayer_start))
|
||||
|
||||
Reference in New Issue
Block a user