Skip to content

Add screenshot export for full world view#7

Open
AbdullahSAhmad wants to merge 1 commit intomasterfrom
strata/wi-1-ed88
Open

Add screenshot export for full world view#7
AbdullahSAhmad wants to merge 1 commit intomasterfrom
strata/wi-1-ed88

Conversation

@AbdullahSAhmad
Copy link
Collaborator

Summary

  • New canvas-export.ts module that captures all 9 zones as a PNG using Pixi v8's renderer.extract.canvas() API
  • Screenshot button with camera icon added to top bar .tb-actions area (before notifications button)
  • Day/night overlay temporarily hidden during capture for clear screenshots
  • Camera transform reset during capture to ensure full world is captured regardless of current zoom/pan
  • Double-click guard prevents multiple simultaneous captures
  • Filename format: agent-move-screenshot-YYYY-MM-DDTHH-MM-SS.png

Test plan

  • Click screenshot button — verify PNG downloads with correct filename
  • Capture with day/night overlay active — verify overlay is excluded from screenshot
  • Capture while zoomed/panned — verify full world is captured (not just viewport)
  • Double-click rapidly — verify only one download occurs
  • Capture with no agents — verify empty world captures correctly
  • Capture with multiple agents in different zones — verify all visible

🤖 Generated with Claude Code

New canvas-export module captures all 9 zones via Pixi v8 renderer.extract API,
temporarily hides day/night overlay for clarity, resets camera transform to capture
the full world, and triggers an immediate PNG download. Screenshot button added to
top bar actions area with camera icon.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant