chore:ui优化

This commit is contained in:
Evilom
2026-05-14 23:36:32 +08:00
parent 86ceec98b3
commit 982f92dda3
41 changed files with 4862 additions and 941 deletions
+7 -1
View File
@@ -5,7 +5,9 @@ import './ui/UIManager';
import { modManager } from './mods/ModManager';
import { dataRegistry } from './data/DataRegistry';
import { titleMenuUI } from './ui/components/TitleMenuUI';
import { CharacterCreationUI } from './ui/components/CharacterCreationUI';
import { eventBus } from './core/EventBus';
import './systems/AudioManager';
injectGlobalTheme();
@@ -22,6 +24,11 @@ async function initGame(): Promise<void> {
// Listen for title menu actions
eventBus.on('game:newGame', () => {
const creationUI = new CharacterCreationUI();
creationUI.show();
});
eventBus.on('game:start', () => {
startGame();
});
@@ -30,7 +37,6 @@ async function initGame(): Promise<void> {
});
eventBus.on('game:loadMenu', () => {
// For now, just start game - full load menu would show save list
startGame();
});