🐛 fix nisse info panel no longer pauses the game
Removes uiMenuOpen/uiMenuClose calls from openNisseInfoPanel() and closeNisseInfoPanel() — the info panel is an observational overlay and should not interrupt the game loop. Closes #15. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -692,7 +692,6 @@ export class UIScene extends Phaser.Scene {
|
|||||||
private openNisseInfoPanel(villagerId: string): void {
|
private openNisseInfoPanel(villagerId: string): void {
|
||||||
this.nisseInfoId = villagerId
|
this.nisseInfoId = villagerId
|
||||||
this.nisseInfoVisible = true
|
this.nisseInfoVisible = true
|
||||||
this.scene.get('Game').events.emit('uiMenuOpen')
|
|
||||||
this.buildNisseInfoPanel()
|
this.buildNisseInfoPanel()
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -703,7 +702,6 @@ export class UIScene extends Phaser.Scene {
|
|||||||
this.nisseInfoId = null
|
this.nisseInfoId = null
|
||||||
this.nisseInfoGroup.destroy(true)
|
this.nisseInfoGroup.destroy(true)
|
||||||
this.nisseInfoGroup = this.add.group()
|
this.nisseInfoGroup = this.add.group()
|
||||||
this.scene.get('Game').events.emit('uiMenuClose')
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user