feat: pannable chunk map with always-visible scroll arrows - #51
Merged
Conversation
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
|
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



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:
Internally the
ViewModeenum is replaced by explicit(viewDx, viewDz)viewport coordinates, which is whatChunkMap.cells()already supported.Adds 4 locale keys (
pan-north/south/east/west) to en-US and all 17 translations.Test plan
🤖 Generated with Claude Code
https://claude.ai/code/session_01QWvvUY9ZZJHxUYm1UyjdwK