(engine: VisualNovelEngine)
| 110 | |
| 111 | // Start game automatically without going trough the main menu |
| 112 | export 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 | |
| 129 | export function showSplashScreen (engine: VisualNovelEngine): void { |
| 130 | const labelName = engine.setting ('SplashScreenLabel'); |
no test coverage detected