Skip to content

feat: pannable chunk map with always-visible scroll arrows - #51

Merged
tastybento merged 2 commits into
developfrom
feature/pannable-chunk-map
Aug 24, 2026
Merged

feat: pannable chunk map with always-visible scroll arrows#51
tastybento merged 2 commits into
developfrom
feature/pannable-chunk-map

Conversation

@tastybento

@tastybento tastybento commented Aug 24, 2026

Copy link
Copy Markdown
Member

Summary

Follow-up to #49. Players expected the map arrows to always be there so they could move around the map — instead the arrow only appeared when a jump target was off-screen, and the two snap views couldn't reach the corners of a large island at all.

The control row is now:

[◎] ─ ─ ─ [◀] [▲] [•] [▼] [▶] ─ ─ ─ [◇]
  • ◀ ▲ ▼ ▶ — always-visible pan arrows; each click slides the viewport 6 chunks (half a screen), so every part of the map is reachable. An arrow turns into a spacer at the map edge.
  • — jump to the island center; — jump to your position. Filled white when the view is already there.
  • — the middle indicator keeps its old job: it becomes a gold arrow pointing at the island center (or aqua at you) when that target is panned off-screen; clicking it jumps there.
  • Clicking a chunk no longer resets the view — the panned position is kept.
  • The viewport clamps so the outermost screen ends exactly on the last claimable ring.

Internally the ViewMode enum is replaced by explicit (viewDx, viewDz) viewport coordinates, which is what ChunkMap.cells() already supported.

Adds 4 locale keys (pan-north/south/east/west) to en-US and all 17 translations.

Test plan

  • 752 tests pass (12 in ChunksDialogTest, including new clamp/pan tests)
  • On test server (protection-range 240): pan across the whole 29×29 map with the arrows; verify arrows vanish at edges, ◎/◇ jump correctly, the indicator points home after panning away, and clicking a chunk keeps the position

🤖 Generated with Claude Code

https://claude.ai/code/session_01QWvvUY9ZZJHxUYm1UyjdwK

tastybento and others added 2 commits August 24, 2026 07:33
The scrollable map's two snap views (island/player) left players unable
to reach parts of a large island's map, and the direction arrow only
appeared when a jump target was off-screen — players expected arrows
they could click to move around. The control row is now:

  [◎] ─ ─ ─ [◀] [▲] [•] [▼] [▶] ─ ─ ─ [◇]

- ◀ ▲ ▼ ▶ pan the viewport 6 chunks (half a screen) per click and
  disappear at the map edge
- ◎ jumps to the island center, ◇ jumps to the player's position
  (filled white when the view is already there)
- the middle indicator still points at the island center or player
  when off-screen and jumps there on click
- clicking a chunk keeps the panned position
- the viewport clamps so the last screen ends on the outermost ring

ViewMode is replaced by explicit (viewDx, viewDz) viewport coordinates.
Adds 4 pan tooltip locale keys, synced to all 17 translations.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QWvvUY9ZZJHxUYm1UyjdwK
1.4.0 has been released; the pannable map targets 1.4.1.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QWvvUY9ZZJHxUYm1UyjdwK
@sonarqubecloud

Copy link
Copy Markdown

@tastybento
tastybento merged commit 073894f into develop Aug 24, 2026
3 checks passed
@tastybento tastybento mentioned this pull request Aug 27, 2026
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