brief webedit to remove hardcoded checks for specific titlescreen sizes for centering

This commit is contained in:
deathride58
2022-06-01 22:54:03 -04:00
committed by GitHub
parent c5e0048efd
commit 6180b9fba0
+1 -5
View File
@@ -76,7 +76,6 @@
desc = null
icon = 'icons/blanks/blank_title.png'
icon_state = ""
pixel_x = -64
plane = SPLASHSCREEN_PLANE
bullet_bounce_sound = null
@@ -93,10 +92,7 @@ INITIALIZE_IMMEDIATE(/turf/closed/indestructible/splashscreen)
/turf/closed/indestructible/splashscreen/proc/handle_generic_titlescreen_sizes()
var/icon/size_check = icon(SStitle.icon, icon_state)
var/width = size_check.Width()
if(width == 480) // 480x480 is nonwidescreen
pixel_x = 0
else if(width == 608) // 608x480 is widescreen
pixel_x = -64
pixel_x = (672 - width) * 0.5 //The title screen is mapped with the expectation that it's 672x480. Should probably turn the title screen size into a define some time!
/turf/closed/indestructible/splashscreen/vv_edit_var(var_name, var_value)
. = ..()