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