экран настроек. черные рамки

This commit is contained in:
azykov@mail.ru
2026-09-09 19:32:25 +03:00
parent 43f6004fb0
commit 7e6b50d1bc
7 changed files with 210 additions and 16 deletions
+7
View File
@@ -7,6 +7,7 @@ import { GameStore } from '../game/GameStore';
import { clearSave, hasSave } from '../game/persistence';
import { GameScreen } from './GameScreen';
import { createMainMenu } from './MainMenu';
import { createSettingsScreen } from './SettingsScreen';
/** Top-level screen controller (menu <-> game) — the plain-TS replacement for App.tsx. Owns the
* GameStore/Analytics singletons for the page's whole lifetime, same as the original module-level
@@ -46,10 +47,16 @@ export class App {
this.analytics,
() => this.handleNewGame(),
() => this.handleContinue(),
() => this.showSettings(),
);
this.root.replaceChildren(menu);
}
private showSettings(): void {
const settings = createSettingsScreen(() => this.showMenu());
this.root.replaceChildren(settings);
}
private showGame(): void {
this.gameScreen = new GameScreen(
this.store,