diff --git a/modular_ss220/title_screen/_title_screen.dme b/modular_ss220/title_screen/_title_screen.dme index e7740ff637de..c74fb84de9bb 100644 --- a/modular_ss220/title_screen/_title_screen.dme +++ b/modular_ss220/title_screen/_title_screen.dme @@ -3,7 +3,8 @@ #include "code/_title_screen_defines.dm" #include "code/dead.dm" #include "code/living.dm" -#include "code/mob.dm" +#include "code/asset_lobby.dm" +#include "code/title_screen_datum.dm" #include "code/new_player.dm" #include "code/title_screen_controls.dm" #include "code/title_screen_subsystem.dm" diff --git a/modular_ss220/title_screen/code/_title_screen_defines.dm b/modular_ss220/title_screen/code/_title_screen_defines.dm index 02bb9871eb24..e9961e1391a8 100644 --- a/modular_ss220/title_screen/code/_title_screen_defines.dm +++ b/modular_ss220/title_screen/code/_title_screen_defines.dm @@ -1,4 +1,4 @@ -#define DEFAULT_TITLE_SCREEN_IMAGE 'modular_ss220/title_screen/icons/default.dmi' +#define DEFAULT_TITLE_SCREEN_IMAGE_PATH 'modular_ss220/title_screen/icons/default.gif' #define DEFAULT_TITLE_HTML {" diff --git a/modular_ss220/title_screen/code/asset_lobby.dm b/modular_ss220/title_screen/code/asset_lobby.dm new file mode 100644 index 000000000000..8475ba529038 --- /dev/null +++ b/modular_ss220/title_screen/code/asset_lobby.dm @@ -0,0 +1,4 @@ +/datum/asset/simple/lobby_fonts + assets = list( + "FixedsysExcelsior3.01Regular.ttf" = 'modular_ss220/title_screen/html/browser/FixedsysExcelsior3.01Regular.ttf', + ) diff --git a/modular_ss220/title_screen/code/dead.dm b/modular_ss220/title_screen/code/dead.dm index ab33d670ae81..fcf61c94c3ab 100644 --- a/modular_ss220/title_screen/code/dead.dm +++ b/modular_ss220/title_screen/code/dead.dm @@ -1,3 +1,3 @@ /mob/dead/Login() . = ..() - hide_title_screen() + SStitle.hide_title_screen_from(client) diff --git a/modular_ss220/title_screen/code/living.dm b/modular_ss220/title_screen/code/living.dm index 9b96cbd348d0..4383fe0e3a02 100644 --- a/modular_ss220/title_screen/code/living.dm +++ b/modular_ss220/title_screen/code/living.dm @@ -1,3 +1,3 @@ /mob/living/Login() . = ..() - hide_title_screen() + SStitle.hide_title_screen_from(client) diff --git a/modular_ss220/title_screen/code/mob.dm b/modular_ss220/title_screen/code/mob.dm deleted file mode 100644 index 316772269203..000000000000 --- a/modular_ss220/title_screen/code/mob.dm +++ /dev/null @@ -1,57 +0,0 @@ -#define TITLE_SCREEN_BG_FILE_NAME "bg_file_name" - -/** - * Shows the titlescreen to a new player. - */ -/mob/proc/show_title_screen() - if(!client) - return - winset(src, "title_browser", "is-disabled=true;is-visible=true") - winset(src, "status_bar", "is-visible=false") - - var/datum/asset/assets = get_asset_datum(/datum/asset/simple/lobby) //Sending pictures to the client - assets.send(src) - - update_title_screen() - -/** - * Get the HTML of title screen. - */ -/mob/proc/get_title_html() - var/dat = SStitle.title_html - dat += {""} - - if(SStitle.current_notice) - dat += {" -