@@ -353,7 +353,7 @@ if true then --Cryptid.enabled["Menu"] then
353353 Game .main_menu = function (change_context )
354354 local ret = oldfunc (change_context )
355355 -- adds a Cryptid spectral to the main menu
356- local newcard = create_card ( " Spectral " , G .title_top , nil , nil , nil , nil , " c_cryptid" , " elial1 " )
356+ local newcard = Card ( G . title_top . T . x , G .title_top . T . y , G . CARD_W , G . CARD_H , G . P_CARDS . empty , G . P_CENTERS . c_cryptid , { bypass_discovery_center = true } )
357357 -- recenter the title
358358 G .title_top .T .w = G .title_top .T .w * 1.7675
359359 G .title_top .T .x = G .title_top .T .x - 0.8
@@ -362,6 +362,7 @@ if true then --Cryptid.enabled["Menu"] then
362362 newcard .T .w = newcard .T .w * 1.1 * 1.2
363363 newcard .T .h = newcard .T .h * 1.1 * 1.2
364364 newcard .no_ui = true
365+ newcard .states .visible = false
365366
366367 -- make the title screen use different background colors
367368 G .SPLASH_BACK :define_draw_steps ({
@@ -375,6 +376,23 @@ if true then --Cryptid.enabled["Menu"] then
375376 },
376377 },
377378 })
379+
380+ G .E_MANAGER :add_event (Event ({
381+ trigger = ' after' ,
382+ delay = 0 ,
383+ blockable = false ,
384+ blocking = false ,
385+ func = (function ()
386+ if change_context == ' splash' then
387+ newcard .states .visible = true
388+ newcard :start_materialize ({G .C .WHITE ,G .C .WHITE }, true , 2.5 )
389+ else
390+ newcard .states .visible = true
391+ newcard :start_materialize ({G .C .WHITE ,G .C .WHITE }, nil , 1.2 )
392+ end
393+ return true
394+ end )}))
395+
378396 return ret
379397 end
380398end
0 commit comments