-
Notifications
You must be signed in to change notification settings - Fork 786
Feat: Alphanumeric Coordinate Grid on Alternate View #2938
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
WalkthroughAdds a Coordinate Grid feature: two new translation keys, user-setting getter/toggler, UI toggles in user/settings modals, a new CoordinateGridLayer, and composition of that layer into the renderer to draw an alphanumeric overlay in Alternate View. Changes
Sequence DiagramsequenceDiagram
participant User as User
participant Modal as SettingsModal
participant Settings as UserSettings
participant Renderer as GameRenderer
participant Layer as CoordinateGridLayer
participant Canvas as Canvas
User->>Modal: toggle Coordinate Grid
Modal->>Settings: toggleCoordinateGrid()
Settings->>Settings: update coordinateGridEnabled
Renderer->>Layer: render cycle
Layer->>Settings: coordinateGridEnabled()?
alt enabled
Layer->>Layer: compute grid bounds & labels
Layer->>Canvas: draw grid lines
Layer->>Canvas: draw labels
else disabled
Layer->>Canvas: skip drawing
end
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Already mentioned in the discord (and I know you reacted to it already) but going to repeat it here for anyone else: It would be great to get the letters on the exact edge of the map (worried about ultrawide) and just being too far away from the map |
@ryanbarlow97 awesome suggestion, just added that in! Screen.Recording.2026-01-18.172805.mp4 |
|
Put back into draft until #2946 is merged so we can make the grid view a hotkey instead of being part of Alternate View |


Description:
Adds a coordinate grid to the Alternate View (holding spacebar) using numbers on the X-axis, and letters on the Y-axis. No more "he's attacking you in that—well, the little peninsula thing... next to the island! which island? uhh..." moments when playing with friends. Optimally maps have letters A-J (just like in the Battleships board game) but special maps like Amazon River dynamically resize to only have 2 letters so as to not have too many number columns. This feature overall can be toggled via the settings menu.
Also saw it requested on the official discord a couple times, thought it was a neat idea.
World Map
Scales correctly when zoomed in
Amazon River
Enable/Disable via settings
Screen.Recording.2026-01-17.034212.mp4
Please complete the following:
Please put your Discord username so you can be contacted if a bug or regression is found:
bijx