[Bug]: Scale change with hex grids not keeping hexes properly.

Open
#6,040 2 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
Half a day
Newbie friendliness
64/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Quiet
Tech stack
java
Domain
desktop, game-dev

Research direction

Reproduce on a hex-grid map via Map Menu → Adjust Grid: mouse-wheel on Grid Size should keep the second hex dimension in proportion, while typing or using the spinner arrows should not. Locate the Adjust Grid UI handlers for Grid Size versus wheel input and the hex-grid size fields they update. Done when both input paths scale the second size with the first so hexes stay symmetrical, matching the wheel behavior.

Written by the indexing model from the issue text.

Description

bug
Describe the Bug

When using "Adjust Grid" on a map with hexes, if you use a mouse wheel to change the grid size, things behave as expected. However if you use the "Grid Size" box to put in a value to get more precise control, the "Second Size" value does not change, leading to progressively more distorted hexes.

To Reproduce
  1. Create a map and set hexes as the grid type. Either type of hex will work.
  2. Open the Map Menu and Select "Adjust Grid".
  3. Change the Grid Size either by putting in a different value (it will be most visible if you make a large reduction, such as 100 to 80) either manually, or with the toggle arrows (this will not occur if you use a mousewheel)
  4. The hexes will be distorted, as the 2nd Value will not change.
Expected Behaviour

What should occur (and does with use of the mouse wheel) is the 2nd value should change in proportion to primary value, leaving more or less symmetrical hexes.

Screenshots
Image Image
MapTool Info

Windows: 1.18.6

Desktop

No response

Additional Context

No response

Dominant language
Java
Stars
927
Forks
286
Avg merge
3d 17h
Merged PRs (30d)
94

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from RPTools/maptool

All issues in RPTools/maptool

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.