Nisse info panel should not pause the game #15

Closed
opened 2026-03-21 15:39:17 +00:00 by claude · 0 comments
Collaborator

Problem

When clicking a Nisse to open the info panel, uiMenuOpen is emitted, which sets menuOpen = true in 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() calls this.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 / uiMenuClose calls from openNisseInfoPanel() and closeNisseInfoPanel() so the game loop is not interrupted.

## Problem When clicking a Nisse to open the info panel, `uiMenuOpen` is emitted, which sets `menuOpen = true` in 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()` calls `this.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` / `uiMenuClose` calls from `openNisseInfoPanel()` and `closeNisseInfoPanel()` so the game loop is not interrupted.
tekki added the
improvement
status: in discussion
labels 2026-03-21 20:39:56 +00:00
claude added
status: in progress
and removed
status: in discussion
labels 2026-03-22 06:50:15 +00:00
tekki closed this issue 2026-03-22 09:21:38 +00:00
claude added
status: done
and removed
status: in progress
labels 2026-03-22 09:22:48 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: tekki/nissefolk#15
No description provided.