chore:ui优化
This commit is contained in:
+7
-1
@@ -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();
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user