Issue #9: Nisse info panel with work log #13

Merged
claude merged 1 commits from feature/nisse-info-panel into master 2026-03-21 14:22:56 +00:00
Collaborator

What

Clicking a Nisse opens a floating info panel anchored to the top-left corner.

Panel contents

  • Name + AI status (live)
  • Energy bar with percentage (live)
  • Active job with target coordinates (live)
  • Job priority buttons (🪓 🌾 ⛏) — same cycle as the V-panel
  • Work log: last 10 of 20 runtime-only entries (newest first)

Work log events tracked

  • → Walking to chop/mine/farm at (x, y)
  • → Hauling to stockpile
  • → Going to sleep (low energy)
  • ✓ Chopped tree (+2 wood) / ✓ Mined rock (+2 stone) / ✓ Farmed [crop]
  • ✓ Deposited at stockpile
  • 💤 Sleeping... / ✓ Woke up (energy full)

Close behaviour

ESC, ✕ button, or clicking another Nisse (replaces content).

Implementation notes

  • Panel built once on open; only dynamic parts (status, energy, job, log) updated each frame — no full group rebuild per frame
  • Work log stored in VillagerRuntime, max 20 entries, not persisted
  • This branch is based on feature/esc-menu so it includes the ESC priority stack with the Nisse panel at the correct position

Closes #9

## What Clicking a Nisse opens a floating info panel anchored to the top-left corner. ## Panel contents - Name + AI status (live) - Energy bar with percentage (live) - Active job with target coordinates (live) - Job priority buttons (🪓 🌾 ⛏) — same cycle as the V-panel - Work log: last 10 of 20 runtime-only entries (newest first) ## Work log events tracked - `→ Walking to chop/mine/farm at (x, y)` - `→ Hauling to stockpile` - `→ Going to sleep (low energy)` - `✓ Chopped tree (+2 wood)` / `✓ Mined rock (+2 stone)` / `✓ Farmed [crop]` - `✓ Deposited at stockpile` - `💤 Sleeping...` / `✓ Woke up (energy full)` ## Close behaviour ESC, ✕ button, or clicking another Nisse (replaces content). ## Implementation notes - Panel built once on open; only dynamic parts (status, energy, job, log) updated each frame — no full group rebuild per frame - Work log stored in `VillagerRuntime`, max 20 entries, not persisted - This branch is based on `feature/esc-menu` so it includes the ESC priority stack with the Nisse panel at the correct position Closes #9
claude added 2 commits 2026-03-21 14:22:07 +00:00
ESC key follows priority stack: confirm dialog → context menu →
build menu → villager panel → ESC menu → open ESC menu.
Menu items: Save Game, Load Game, Settings (placeholder), New Game
(with confirmation dialog).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Clicking a Nisse opens a top-left panel showing name, AI status,
energy bar, active job, job priority buttons, and a live work log
(last 10 of 20 runtime-only entries). Closes via ESC, ✕, or clicking
another Nisse. Dynamic parts (status/energy/job/log) refresh each
frame without rebuilding the full group.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
claude merged commit bbbb3e1f58 into master 2026-03-21 14:22:56 +00:00
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: tekki/nissefolk#13
No description provided.