MCPcopy Create free account
hub / github.com/Monogatari/Monogatari / displayInitialScreen

Function displayInitialScreen

src/engine/ui.ts:414–431  ·  view source on GitHub ↗
(engine: VisualNovelEngine)

Source from the content-addressed store, hash-verified

412// ============================================================================
413
414export function displayInitialScreen (engine: VisualNovelEngine): void {
415 // Preload all the game assets
416 engine.preload ().then (() => {
417
418 }).catch ((e) => {
419 console.error (e);
420 }).finally (() => {
421 if (engine.label ()) {
422 showSplashScreen (engine);
423 } else {
424 const scriptData = engine.script () as Record<string, unknown> | undefined;
425 FancyError.show ('engine:script:label_not_found', {
426 startLabel: engine.setting ('Label'),
427 availableLabels: Object.keys (scriptData ?? {})
428 });
429 }
430 });
431}

Callers

nothing calls this directly

Calls 7

showSplashScreenFunction · 0.85
preloadMethod · 0.80
labelMethod · 0.80
scriptMethod · 0.80
settingMethod · 0.80
keysMethod · 0.65
showMethod · 0.45

Tested by

no test coverage detected