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

Token image layout offset changes when pasting token to map with different pixels/grid setting #1859

Closed
Phergus opened this issue May 16, 2020 · 2 comments

Comments

@Phergus
Copy link
Contributor

Phergus commented May 16, 2020

Describe the bug
When a token has the image offset (via Config tab of Edit Token dialog), copy/pasting to a map with a different grid size (pixels/grid cell) the offset is kept constant instead of adjusting to the new grid size.

To Reproduce
Steps to reproduce the behavior:

  1. Create a Map at 50 Pixels per Cell.
  2. Add a Token suitable for use as a familiar such as Devin's familiarSummons_07
  3. Open the Edit Token dialog for that otken and go to the Config tab.
  4. In Layout section, reduce size and reposition to a corner of the grid cell.
  5. Click on OK to close dialog
  6. Add the Hero token and place the Familiar token on top.
  7. Select both and hit Ctrl-C to copy them.
  8. Add a New Map at 100 pixels per cell.
  9. Paste copied tokens. Note that familiar is now nearer the center of the cell.
  10. Add a New Map at 10 pixels per cell. Zoom in some.
  11. Paste copied tokens. Note that familiar is now positioned outside of cell.

Expected behavior
Layout offset should be preserved as a percentage of grid size.

Screenshots
Familiar token in Layout
image

Placed over Hero token on 50 pixels/cell map.
image

Copied to 10 pixels/cell map
image

Copied to 100 pixels per cell map
image

MapTool Info

  • Version: 1.6.1, 1.7.0-b3
  • Install: Any

Desktop (please complete the following information):

  • OS: Windows, MacOS (by misterz)
  • Version: 10

Additional context
Reported by misterz on Discord.

Example 1.7.0b3 campaign with maps and tokens.
LayoutErrorGridSetting.zip

@Phergus Phergus added the bug label May 16, 2020
@melek
Copy link
Collaborator

melek commented May 16, 2020

Is this the same as #997 ?

I would love to see this patched!

@Phergus
Copy link
Contributor Author

Phergus commented May 16, 2020

Yes it is. Forgot all about that one.

Closing as duplicate.

@Phergus Phergus closed this as completed May 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants