CMSS Lobby Screen (#17581)

* Establish base working new_player tgui

* Tweak to fit virgo

* .

* fix that

* split that

* no as import

* clean up old code

* .

* .

---------

Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
ShadowLarkens
2025-04-26 23:52:01 +02:00
committed by GitHub
co-authored by Kashargul
parent 4df82c3789
commit e627fb8d1d
29 changed files with 959 additions and 400 deletions
-45
View File
@@ -706,51 +706,6 @@
/obj/screen/setup_preview/bg/Click(params)
pref?.bgstate = next_in_list(pref.bgstate, pref.bgstate_options)
pref?.update_preview_icon()
/obj/screen/splash
screen_loc = "1,1"
layer = LAYER_HUD_ABOVE
plane = PLANE_PLAYER_HUD_ABOVE
var/client/holder
INITIALIZE_IMMEDIATE(/obj/screen/splash)
/obj/screen/splash/Initialize(mapload, visible)
. = ..()
if(!isclient(loc))
return INITIALIZE_HINT_QDEL
holder = loc
if(!visible)
alpha = 0
if(!lobby_image)
return INITIALIZE_HINT_QDEL
icon = lobby_image.icon
icon_state = lobby_image.icon_state
holder.screen += src
/obj/screen/splash/proc/Fade(out, qdel_after = TRUE)
if(QDELETED(src))
return
if(out)
animate(src, alpha = 0, time = 30)
else
alpha = 0
animate(src, alpha = 255, time = 30)
if(qdel_after)
QDEL_IN(src, 30)
/obj/screen/splash/Destroy()
if(holder)
holder.screen -= src
holder = null
return ..()
/**
* This object holds all the on-screen elements of the mapping unit.
* It has a decorative frame and onscreen buttons. The map itself is drawn