Feat: Alphanumeric Coordinate Grid on Alternate View#2938
Feat: Alphanumeric Coordinate Grid on Alternate View#2938
Conversation
WalkthroughA coordinate grid overlay feature was added: translations, a user setting and keybind (KeyM), an emitted toggle event, and a new rendering layer integrated into the renderer to draw alphanumeric grid lines and labels. Changes
Sequence DiagramsequenceDiagram
actor User
participant InputHandler
participant UserSettings
participant EventBus
participant CoordinateGridLayer
participant GameRenderer
User->>InputHandler: Press KeyM
InputHandler->>UserSettings: toggleCoordinateGrid()
UserSettings-->>InputHandler: new enabled state
InputHandler->>EventBus: Emit ToggleCoordinateGridEvent(enabled)
EventBus->>CoordinateGridLayer: Notify toggle
CoordinateGridLayer->>CoordinateGridLayer: Update visibility
GameRenderer->>CoordinateGridLayer: renderLayer(context)
CoordinateGridLayer->>CoordinateGridLayer: computeGrid()
CoordinateGridLayer->>CoordinateGridLayer: draw lines & labels
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~22 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