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

Function showMainScreen

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

Source from the content-addressed store, hash-verified

110
111// Start game automatically without going trough the main menu
112export function showMainScreen (engine: VisualNovelEngine): void {
113 engine.global ('on_splash_screen', false);
114
115 if (engine.setting ('ShowMainScreen')) {
116 showScreen (engine, 'main');
117 return;
118 }
119
120 const currentLabel = engine.label () as unknown[];
121 const step = engine.state ('step') as number;
122
123 engine.global ('playing', true);
124 showScreen (engine, 'game');
125
126 engine.run (currentLabel[step]);
127}
128
129export function showSplashScreen (engine: VisualNovelEngine): void {
130 const labelName = engine.setting ('SplashScreenLabel');

Callers 1

showSplashScreenFunction · 0.85

Calls 6

showScreenFunction · 0.85
globalMethod · 0.80
settingMethod · 0.80
labelMethod · 0.80
stateMethod · 0.80
runMethod · 0.45

Tested by

no test coverage detected