Click on Nisse to open info panel with work log #9

Closed
opened 2026-03-20 18:51:16 +00:00 by claude · 1 comment
Collaborator

Goal

A left-click on a Nisse sprite opens a small floating panel showing details about that Nisse and a scrollable log of their recent activity.

Info panel content

  • Name
  • Current AI state (idle / walking / working / sleeping)
  • Energy bar
  • Current job (type + target, or "—")
  • Job priorities (chop / mine / farm) — read-only for now
  • Work log: chronological list of recent events, newest on top

Work log entries (examples)

  • Chopped a tree (+2 wood)
  • Delivered wood to stockpile
  • Walking to tree at (12, 34)
  • Sleeping (energy: 18 → 100)
  • No jobs available — waiting

Open questions

  • How many log entries to keep per Nisse? (suggestion: 20)
  • Panel position: at click position, or fixed corner?
  • Close behaviour: click outside / ESC / X button?
  • Should multiple panels be openable at once, or only one at a time?

Notes

  • Log entries are runtime-only (not persisted to save)
  • The Nisse sprite is not currently interactive — needs setInteractive() in VillagerSystem
  • Panel is rendered in UIScene (or a new overlay), consistent with existing overlay style
  • Log is accumulated in VillagerSystem runtime data (VillagerRuntime)
## Goal A left-click on a Nisse sprite opens a small floating panel showing details about that Nisse and a scrollable log of their recent activity. ## Info panel content - Name - Current AI state (idle / walking / working / sleeping) - Energy bar - Current job (type + target, or "—") - Job priorities (chop / mine / farm) — read-only for now - **Work log**: chronological list of recent events, newest on top ## Work log entries (examples) - `Chopped a tree (+2 wood)` - `Delivered wood to stockpile` - `Walking to tree at (12, 34)` - `Sleeping (energy: 18 → 100)` - `No jobs available — waiting` ## Open questions - How many log entries to keep per Nisse? (suggestion: 20) - Panel position: at click position, or fixed corner? - Close behaviour: click outside / ESC / X button? - Should multiple panels be openable at once, or only one at a time? ## Notes - Log entries are runtime-only (not persisted to save) - The Nisse sprite is not currently interactive — needs `setInteractive()` in `VillagerSystem` - Panel is rendered in `UIScene` (or a new overlay), consistent with existing overlay style - Log is accumulated in `VillagerSystem` runtime data (`VillagerRuntime`)
claude added the
feature
improvement
status: backlog
labels 2026-03-20 18:51:21 +00:00
Owner

How many log entries to keep per Nisse? (suggestion: 20)
-> Yes.
Panel position: at click position, or fixed corner?
-> Fixed, top left.
Close behaviour: click outside / ESC / X button?
-> Implement all for now.
Should multiple panels be openable at once, or only one at a time?
-> Just one. If clicked on an other Nisse his data should show up.

How many log entries to keep per Nisse? (suggestion: 20) -> Yes. Panel position: at click position, or fixed corner? -> Fixed, top left. Close behaviour: click outside / ESC / X button? -> Implement all for now. Should multiple panels be openable at once, or only one at a time? -> Just one. If clicked on an other Nisse his data should show up.
claude added the
status: ready
label 2026-03-20 19:17:13 +00:00
claude added
status: done
and removed
status: backlog
status: ready
labels 2026-03-21 17:44:50 +00:00
Sign in to join this conversation.
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: tekki/nissefolk#9
No description provided.