Nisse info panel should not pause the game #15
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
When clicking a Nisse to open the info panel,
uiMenuOpenis emitted, which setsmenuOpen = truein GameScene and pauses all game updates (Nisse AI, farming, camera, etc.).The info panel is an observational overlay — the game should keep running while it is open.
Expected behaviour
Opening the Nisse info panel does not pause the game. Nisse continue moving and working, the work log fills up in real time.
Root cause
UIScene.openNisseInfoPanel()callsthis.scene.get("Game").events.emit("uiMenuOpen"), which should only be used for menus that require exclusive input (build menu, villager panel, ESC menu, etc.).Fix
Remove the
uiMenuOpen/uiMenuClosecalls fromopenNisseInfoPanel()andcloseNisseInfoPanel()so the game loop is not interrupted.