Skip to content
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

[Bug]: States display weirdly on hex grid. #5298

Open
Tdue21 opened this issue Mar 11, 2025 · 0 comments
Open

[Bug]: States display weirdly on hex grid. #5298

Tdue21 opened this issue Mar 11, 2025 · 0 comments
Labels

Comments

@Tdue21
Copy link
Contributor

Tdue21 commented Mar 11, 2025

Describe the Bug

State types, like Circle and Dot, are not rendered correctly in some cases on hex maps.
E.g. if a map has vertical hex grid, the circle state is drawn as a vertical oval, whereas it is horizontal on a ... well, horizontal grid.

Image

Likewise, other states may look strange, depending on the orientation of the grid. E.g. the Dot state type is shown correctly on a vertical grid, but is cut off on a horizontal.

Image

I am thinking these issues are most likely caused by the dimensions of a hex grid cell, as the length of a horizontal cell will be larger than the vertical, and vice versa.

To Reproduce

  1. Set up a map with a hex grid.
  2. Place one or several tokens on the map.
  3. Define one or more states with various types, like Circle and Dot.
  4. Set state on the tokens to one or more of these.
  5. Observe.

Expected Behaviour

Since the token image itself is rendered correctly, I expect the state overlays to be rendered correctly as well.
I suspect the solution could be fairly simple, but simply using the lower value of height and width for both, when placing and drawing and the various state overlays.

Screenshots

To ensure a common understanding of horizontal and vertical hex grid, this is a vertical grid:

Image

MapTool Info

1.15.2

Desktop

Windows 11

Additional Context

No response

@Tdue21 Tdue21 added the bug label Mar 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant